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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:78198b6021a9695054dab039340202170b88423c

commit r11-3889-g78198b6021a9695054dab039340202170b88423c
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed Oct 14 18:55:14 2020 +0100

    libstdc++: Fix unspecified comparison to null pointer [PR 97415]

    The standard doesn't guarantee that null pointers compare less than
    non-null pointers. AddressSanitizer complains about the pptr()> egptr()
    comparison in basic_stringbuf::str() when egptr() is null.

    libstdc++-v3/ChangeLog:

            PR libstdc++/97415
            * include/std/sstream (basic_stringbuf::str()): Check for
            null egptr() before comparing to non-null pptr().

Reply via email to