How can operator new to throw std::bad_alloc upon allocation failure?

18 views
Skip to first unread message

xfan

unread,
Jun 21, 2019, 5:03:49 PM6/21/19
to address-sanitizer
My code actually has the catch block. But with address sanitizer, it crashed instead of going to the catch block. 
Seems it is in the TODO list

Is there a way to solve it now? 
I am using RedHat Linux, gcc 8.3. Thanks!

Xingyan

Reply all
Reply to author
Forward
0 new messages