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 libstdc++/66354] [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument


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

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Jun  8 14:42:02 2015
New Revision: 224233

URL: https://gcc.gnu.org/viewcvs?rev=224233&root=gcc&view=rev
Log:
        PR libstdc++/66354
        * include/bits/stl_algobase.h (__fill_a): Check length before calling
        memset.

        PR libstdc++/66327
        * include/bits/stl_algobase.h (__equal<true>::equal): Do not call
        memcmp for empty ranges.
        (__lexicographical_compare<true>::__lc): Likewise.

Modified:
    branches/gcc-4_9-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_9-branch/libstdc++-v3/include/bits/stl_algobase.h


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