Fix OP_MOVS to not clobber random memory (bug 5868, r=psychonic).

This commit is contained in:
David Anderson 2013-08-19 12:59:10 -07:00
parent e970c36419
commit 582162460f

View File

@ -1020,8 +1020,9 @@ Compiler::emitOp(OPCODE op)
__ cld();
__ push(esi);
__ push(edi);
__ lea(esi, Operand(dat, pri, NoScale));
// Note: set edi first, since we need esi.
__ lea(edi, Operand(dat, alt, NoScale));
__ lea(esi, Operand(dat, pri, NoScale));
if (dwords) {
__ movl(ecx, dwords);
__ rep_movsd();