summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-06-13 13:08:39 +0200
committerFlorian Weimer <fweimer@redhat.com>2016-06-13 16:36:46 +0200
commit2c41b52901331f5c761015af786a3976e225d779 (patch)
tree01a09edb1fb8aeb35cc5ad8525be286d08e181ca /ChangeLog
parentf5c77f78ec03363d5e550c4996deb75ee3f2e32a (diff)
downloadglibc-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--ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 53ab8ca7e8..7f8da5ceb5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]