mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[KMTESTS:RTL]
- Fix a stack buffer overflow in the RtlMemory test svn path=/trunk/; revision=63870
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user