[Bug sanitizer/65367] [5 Regression] indefinite loop occurs with sanitize enabled and certain optimization options

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 10 15:58:00 GMT 2015


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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Mar 10 15:57:45 2015
New Revision: 221325

URL: https://gcc.gnu.org/viewcvs?rev=221325&root=gcc&view=rev
Log:
    PR sanitizer/65367
    * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
    when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
    separately.

    * c-c++-common/ubsan/pr65367.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/ubsan/pr65367.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/ubsan.c



More information about the Gcc-bugs mailing list