- Fix over-reading the input buffer (sometimes by even more than 400 bytes), and hashing random pool contents instead of the specified buffer.

svn path=/trunk/; revision=35831
This commit is contained in:
Aleksey Bragin 2008-08-31 11:55:17 +00:00
parent b93a09c0b1
commit e1b80cf07e

View file

@ -84,8 +84,9 @@ ObpHash(IN PVOID Buffer,
/* Setup aligned and byte buffers */
p = Buffer;
pb = (PUCHAR)p;
ppb = (PUCHAR)((ULONG_PTR)Buffer + Length);
pp = (PULONG)ALIGN_DOWN(p + Length, ULONG);
pp = (PULONG)ALIGN_DOWN(pb + Length, ULONG);
/* Loop aligned data */
while (p < pp)