http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374



--- Comment #22 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-30 
18:06:09 UTC ---

Author: jakub

Date: Wed Jan 30 18:05:53 2013

New Revision: 195585



URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195585

Log:

    PR sanitizer/55374

    * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if

    LIBASAN_EARLY_SPEC is defined.

    (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.

    (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,

    before %o.

    * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.



    * g++.dg/asan/large-func-test-1.C: Allow both _Zna[jm] in addition

    to _Znw[jm] in the backtrace.  Allow _Zna[jm] to be the first frame

    printed in backtrace.

    * g++.dg/asan/deep-stack-uaf-1.C: Use malloc instead of operator new

    to avoid errors about mismatched allocation vs. deallocation.



Modified:

    trunk/gcc/ChangeLog

    trunk/gcc/config/gnu-user.h

    trunk/gcc/gcc.c

    trunk/gcc/testsuite/ChangeLog

    trunk/gcc/testsuite/g++.dg/asan/deep-stack-uaf-1.C

    trunk/gcc/testsuite/g++.dg/asan/large-func-test-1.C

Reply via email to