mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Check for valid stack frame in longjmp.
If longjmp restores the stack frame to an address which is beyond the stack frame at the time of the longjmp call it would install an uninitialized stack frame. If compiled with _FORTIFY_SOURCE defined, longjmp will now bail out in this situation.
This commit is contained in:
@ -90,7 +90,8 @@ extern int __gen_tempname (char *__tmpl, int __flags, int __kind);
|
||||
extern void __libc_fatal (__const char *__message)
|
||||
__attribute__ ((__noreturn__));
|
||||
extern void __libc_message (int do_abort, __const char *__fnt, ...);
|
||||
extern void __fortify_fail (const char *msg) __attribute__ ((noreturn));
|
||||
extern void __fortify_fail (const char *msg)
|
||||
__attribute__ ((__noreturn__)) internal_function;
|
||||
libc_hidden_proto (__fortify_fail)
|
||||
|
||||
/* Acquire ownership of STREAM. */
|
||||
|
Reference in New Issue
Block a user