libstdc++/5258: Assigning a null char * to a std::string causes seg fault

pme@gcc.gnu.org pme@gcc.gnu.org
Wed Jan 2 12:47:00 GMT 2002


Synopsis: Assigning a null char * to a std::string causes seg fault

State-Changed-From-To: open->closed
State-Changed-By: pme
State-Changed-When: Wed Jan  2 12:47:37 2002
State-Changed-Why:
    Thank you for your bug report.
    
    The C++ standard requires that the user not pass a null
    pointer as the initial string, so this is user error,
    not a library bug.
    
    One of my hopes to have some kind of "debugging mode"
    for libstdc++, which would sacrifice speed in return for
    doing a lot of this kind of extra checking.  Something for
    3.2, maybe.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5258



More information about the Gcc-bugs mailing list