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/79572] [6/7 Regression] reference binding to null pointer not reported with -fsanitize=undefined


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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
                 CC|                            |dodji at gcc dot gnu.org,
                   |                            |dvyukov at gcc dot gnu.org,
                   |                            |jakub at gcc dot gnu.org,
                   |                            |kcc at gcc dot gnu.org
          Component|c++                         |sanitizer
         Resolution|INVALID                     |---
            Summary|[6/7 Regression] Segfault   |[6/7 Regression] reference
                   |with -O1 and higher on null |binding to null pointer not
                   |reference                   |reported with
                   |                            |-fsanitize=undefined

--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
This is an -fsanitize=undefined regression.

5.4.1 gives:
  runtime error: reference binding to null pointer of type 'const int
6 and trunk:
 No runtime error is reported.

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