This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/61897] sanitizer internal compiler error: in build2_stat, at tree.c:4160


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61897

--- Comment #5 from ygribov at gcc dot gnu.org ---
Author: ygribov
Date: Thu Oct 16 13:53:33 2014
New Revision: 216332

URL: https://gcc.gnu.org/viewcvs?rev=216332&root=gcc&view=rev
Log:
2014-10-16  Yury Gribov  <y.gribov@samsung.com>

    Backport from mainline
    2014-09-01  Yury Gribov  <y.gribov@samsung.com>

    PR sanitizer/61897
    PR sanitizer/62140

    * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
    (build_check_stmt): Likewise.
    (instrument_strlen_call): Likewise.
    (asan_expand_check_ifn): Likewise and fix types.
    (maybe_cast_to_ptrmode): New function.

    * c-c++-common/asan/pr62140-1.c: New test.
    * c-c++-common/asan/pr62140-2.c: New test.

Added:
    branches/gcc-4_9-branch/gcc/testsuite/c-c++-common/asan/pr62140-1.c
    branches/gcc-4_9-branch/gcc/testsuite/c-c++-common/asan/pr62140-2.c
Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/asan.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]