This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][alpha] Fix ____longjmp_chk


You can use the various C implementations of ____longjmp_chk as a model,
they are known working.  The point of the test is to look whether
longjmp jumps back to a stack frame that is already left, ie. the
function containing setjmp has already returned.  It does not (and
cannot) check whether longjmp jumps to some random frame that may be
part of a different thread's stack, for example.  The sigaltstack check
is needed to allow jumping out of a signal frame on the alternate signal
stack.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]