Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Tue, 12 Jan 2016 17:49:03 -0500
From: Mark Mossberg <>
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


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.