forked from wolfSSL/wolfssl
src/internal.c: add codepath in _DtlsUpdateWindowGTSeq() to avoid a word32 overshift.
This commit is contained in:
@@ -15380,7 +15380,10 @@ static void _DtlsUpdateWindowGTSeq(word32 diff, word32* window)
|
||||
else {
|
||||
temp |= (oldWindow[i-idx] << diff);
|
||||
window[i] = temp;
|
||||
temp = oldWindow[i-idx] >> (DTLS_WORD_BITS - diff);
|
||||
if (diff > 0)
|
||||
temp = oldWindow[i-idx] >> (DTLS_WORD_BITS - diff);
|
||||
else
|
||||
temp = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user