[KMTESTS:RTL]

- Fix a stack buffer overflow in the RtlMemory test

svn path=/trunk/; revision=63870
This commit is contained in:
Thomas Faber 2014-08-12 07:47:08 +00:00
parent 29813c1b0b
commit 42f34d3788

View file

@ -316,7 +316,7 @@ START_TEST(RtlMemory)
KeRaiseIrql(HIGH_LEVEL, &Irql);
/* RtlCompareMemoryUlong */
MakeBuffer(Buffer, 8, 0x55, Size - 4, 0, 0);
MakeBuffer(Buffer, 8, 0x55, Size - 8, 0, 0);
RetSize = RtlCompareMemoryUlong(Buffer, sizeof(ULONG), 0x55555555LU);
ok_eq_size(RetSize, 4);
RetSize = RtlCompareMemoryUlong(Buffer + 1, sizeof(ULONG), 0x55555555LU);