src/internal.c: add codepath in _DtlsUpdateWindowGTSeq() to avoid a word32 overshift.

This commit is contained in:
Daniel Pouzzner
2022-07-07 19:36:20 -05:00
parent 4e1e1e922a
commit b952c2f777

View File

@@ -15380,7 +15380,10 @@ static void _DtlsUpdateWindowGTSeq(word32 diff, word32* window)
else {
temp |= (oldWindow[i-idx] << diff);
window[i] = temp;
if (diff > 0)
temp = oldWindow[i-idx] >> (DTLS_WORD_BITS - diff);
else
temp = 0;
}
}
}