]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Fix more unspecified comparisons to null pointer [PR 97415]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 10 Nov 2020 15:46:02 +0000 (15:46 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 10 Nov 2020 19:21:55 +0000 (19:21 +0000)
commitced70ebaa372945ec8d73703d81e4a10d6d51c9b
tree3f584d11eb7896258a16c0edc46351b38d7fcc4c
parent8b9a92f794b8ad8011e6beb11a609efa635c4600
libstdc++: Fix more unspecified comparisons to null pointer [PR 97415]

This adds some more null checks to avoid a relational comparison with a
null pointer, similar to 78198b6021a9695054dab039340202170b88423c.

libstdc++-v3/ChangeLog:

PR libstdc++/97415
* include/std/sstream (basic_stringbuf::_M_update_egptr)
(basic_stringbuf::__xfer_bufptrs::__xfer_bufptrs): Check for
null before comparing pointers.
libstdc++-v3/include/std/sstream
This page took 0.051021 seconds and 5 git commands to generate.