diff --git a/ChangeLog b/ChangeLog index e6ac778685..42b2938a9c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-03-13 Mike Frysinger + + * debug/tst-longjmp_chk2.c: Update header comment. + (stackoverflow_handler): Add comment. Call assert on pass value. + 2014-03-13 Igor Zamyatin * config.h.in (HAVE_AVX512_SUPPORT): New #undef. diff --git a/debug/tst-longjmp_chk2.c b/debug/tst-longjmp_chk2.c index 22d8bf0941..dae9ca01e5 100644 --- a/debug/tst-longjmp_chk2.c +++ b/debug/tst-longjmp_chk2.c @@ -1,4 +1,6 @@ -/* Test case mostly written by Paolo Bonzini . */ +/* Verify longjmp fortify checking does not reject signal stacks. + + Test case mostly written by Paolo Bonzini . */ #include #include #include @@ -18,7 +20,10 @@ static void stackoverflow_handler (int sig) { stack_t altstack; + /* Sanity check to keep test from looping forever (in case the longjmp + chk code is slightly broken). */ pass++; + assert (pass < 5); sigaltstack (NULL, &altstack); /* Using printf is not really kosher in signal handlers but we know it will work. */