Author: aandrejevic
Date: Fri Oct 11 16:31:35 2013
New Revision: 60612
URL:
http://svn.reactos.org/svn/reactos?rev=60612&view=rev
Log:
[SOFT386]
Clear the memory block before it's used.
Modified:
branches/ntvdm/lib/soft386/opcodes.c
Modified: branches/ntvdm/lib/soft386/opcodes.c
URL:
http://svn.reactos.org/svn/reactos/branches/ntvdm/lib/soft386/opcodes.c?rev…
==============================================================================
--- branches/ntvdm/lib/soft386/opcodes.c [iso-8859-1] (original)
+++ branches/ntvdm/lib/soft386/opcodes.c [iso-8859-1] Fri Oct 11 16:31:35 2013
@@ -6341,6 +6341,9 @@
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)
{