mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 05:54:05 +00:00
[KMTESTS:RTL]
- Fix a stack buffer overflow in the RtlMemory test svn path=/trunk/; revision=63870
This commit is contained in:
parent
29813c1b0b
commit
42f34d3788
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue