From 20486fd1b76e4309717d0eb68716d393ec502805 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Fri, 11 Oct 2013 16:31:35 +0000 Subject: [PATCH] [SOFT386] Clear the memory block before it's used. svn path=/branches/ntvdm/; revision=60612 --- lib/soft386/opcodes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/soft386/opcodes.c b/lib/soft386/opcodes.c index 1e8d501565e..bb32977d24a 100644 --- a/lib/soft386/opcodes.c +++ b/lib/soft386/opcodes.c @@ -6341,6 +6341,9 @@ SOFT386_OPCODE_HANDLER(Soft386OpcodeIns) ULONG Count = OperandSize ? State->GeneralRegs[SOFT386_REG_ECX].Long : State->GeneralRegs[SOFT386_REG_ECX].LowWord; + /* Clear the memory block */ + RtlZeroMemory(Block, sizeof(Block)); + /* Transfer until finished */ while (Count) {