Commit 25142a27 authored by Alasdair Sinclair's avatar Alasdair Sinclair Committed by Alexandre Julliard

advapi32: Fix one byte array overflow during DES unhash.

parent c5339be9
...@@ -200,9 +200,9 @@ static void KeyShiftRight( unsigned char *key, const int numbits ) ...@@ -200,9 +200,9 @@ static void KeyShiftRight( unsigned char *key, const int numbits )
{ {
int j; 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] |= 0x80;
key[j] >>= 1; key[j] >>= 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment