Skip to contentSkip to conversation

fix call near emulation

PATCH Applied Gleb Natapov 2 participants 2 messages Apr 2, 2009 – Apr 5, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix call near emulation

The length of pushed on to the stack return address depends on operand size not address size.

arch/x86/kvm/x86_emulate.c +0 -1
index ca91749..d7c9f6f 100644
@@ -1792,7 +1792,6 @@ special_insn:
 		}
 		c->src.val = (unsigned long) c->eip;
 		jmp_rel(c, rel);
-		c->op_bytes = c->ad_bytes;
 		emulate_push(ctxt);
 		break;
 	}

--
Gleb.

Applied
#1 lore raw
Quoted 3 lines · Gleb Natapov

The length of pushed on to the stack return address depends on operand size not address size.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function