From 42f34d3788c5455425d4c0a7b482de6dd4c8fc8a Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Tue, 12 Aug 2014 07:47:08 +0000 Subject: [PATCH] [KMTESTS:RTL] - Fix a stack buffer overflow in the RtlMemory test svn path=/trunk/; revision=63870 --- rostests/kmtests/rtl/RtlMemory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rostests/kmtests/rtl/RtlMemory.c b/rostests/kmtests/rtl/RtlMemory.c index 154ce8e925d..1f5bfa10d11 100644 --- a/rostests/kmtests/rtl/RtlMemory.c +++ b/rostests/kmtests/rtl/RtlMemory.c @@ -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);