[Bug libstdc++/66327] -fsanitize=nonnull-attribute errors in stl_algobase.h

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 29 13:29:00 GMT 2015


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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri May 29 13:28:54 2015
New Revision: 223865

URL: https://gcc.gnu.org/viewcvs?rev=223865&root=gcc&view=rev
Log:
        PR libstdc++/66327
        * include/bits/stl_algobase.h (__equal<true>::equal): Do not call
        memcmp with null pointers.
        (__lexicographical_compare<true>::__lc): Do not call memcmp for empty
        ranges.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_algobase.h



More information about the Gcc-bugs mailing list