mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[coverity] 1543228 Out-of-bounds read
This commit is contained in:
committed by
Martin Fleisz
parent
61062128e2
commit
cf5df96c14
@@ -592,6 +592,7 @@ static void fips_expand_key_bits(const BYTE* in, size_t in_len, BYTE* out, size_
|
||||
}
|
||||
else
|
||||
{
|
||||
WINPR_ASSERT(p + 1 < sizeof(buf));
|
||||
/* c is accumulator */
|
||||
BYTE c = (BYTE)(buf[p] << r) & 0xFF;
|
||||
c |= buf[p + 1] >> (8 - r);
|
||||
|
||||
Reference in New Issue
Block a user