mirror of
https://github.com/reactos/wine.git
synced 2025-01-24 21:10:50 +00:00
advapi32: Fix one byte array overflow during DES unhash.
This commit is contained in:
parent
c5339be92b
commit
25142a27d0
@ -200,9 +200,9 @@ static void KeyShiftRight( unsigned char *key, const int numbits )
|
||||
{
|
||||
int j;
|
||||
|
||||
for (j = 7; j >= 0; j--)
|
||||
for (j = 6; j >= 0; j--)
|
||||
{
|
||||
if (j!=7 && (key[j] & 0x01))
|
||||
if (j!=6 && (key[j] & 0x01))
|
||||
key[j+1] |= 0x80;
|
||||
key[j] >>= 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user