diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-06-13 13:08:39 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-06-13 16:36:46 +0200 |
commit | 2c41b52901331f5c761015af786a3976e225d779 (patch) | |
tree | 01a09edb1fb8aeb35cc5ad8525be286d08e181ca /ChangeLog | |
parent | f5c77f78ec03363d5e550c4996deb75ee3f2e32a (diff) | |
download | glibc-2c41b52901331f5c761015af786a3976e225d779.tar glibc-2c41b52901331f5c761015af786a3976e225d779.tar.gz glibc-2c41b52901331f5c761015af786a3976e225d779.tar.bz2 glibc-2c41b52901331f5c761015af786a3976e225d779.zip |
debug/tst-longjmp_chk2: Make signal handler more conservative [BZ #20248]
Currently, printf needs more stack space than what is available with
SIGSTKSZ. This commit use the the write system call directly instead.
Also use sig_atomic_t for the “pass” variable (for general
correctness), and restore signal handlers to their defaults, to avoid
masking crashes.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,12 @@ +2016-06-13 Florian Weimer <fweimer@redhat.com> + + [BZ #20248] + * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t. + (write_message): New function. + (stackoverflow_handler): Call it instead of printf, to avoid + excessive stack usage by printf. + (do_test): Restore SIGSEGV, SIGBUS default handlers. + 2016-06-13 Adhemerval Zanella <adhemerval.zanella@linaro.org> * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI] |