Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [day] [month] [year] [list]
Date: Tue, 12 Jan 2016 17:49:03 -0500
From: Mark Mossberg <mark.mossberg@...il.com>
To: musl@...ts.openwall.com
Subject: Possible redundant `mov` in i386/x86_64 longjmp()?

Hi all,

I was recently perusing musl’s implementation of longjmp() for i386 and I saw that esp was restored via:

	mov 16(%edx),%ecx
	mov     %ecx,%esp

To me, it seems like the intermediary mov to %ecx is unnecessary. Could the code instead be the following?

	mov 16(%edx), %esp

Thanks,
Mark

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ