Author: tfaber Date: Tue Aug 12 07:47:08 2014 New Revision: 63870
URL: http://svn.reactos.org/svn/reactos?rev=63870&view=rev Log: [KMTESTS:RTL] - Fix a stack buffer overflow in the RtlMemory test
Modified: trunk/rostests/kmtests/rtl/RtlMemory.c
Modified: trunk/rostests/kmtests/rtl/RtlMemory.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/rtl/RtlMemory.c?re... ============================================================================== --- trunk/rostests/kmtests/rtl/RtlMemory.c [iso-8859-1] (original) +++ trunk/rostests/kmtests/rtl/RtlMemory.c [iso-8859-1] Tue Aug 12 07:47:08 2014 @@ -316,7 +316,7 @@ 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);