[Bug c++/53330] new() operator can return NULL on a zero-length allocation

kilobyte at angband dot pl gcc-bugzilla@gcc.gnu.org
Fri Mar 29 13:13:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53330

--- Comment #2 from Adam Borowski <kilobyte at angband dot pl> 2013-03-29 13:13:21 UTC ---
Created attachment 29750
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29750
updated testcase

Updated testcase: it checks for invalid pointers (by freeing them), and returns
an exit code (if it won't crash first).



More information about the Gcc-bugs mailing list