boostorg / exception

Boost.org exception module
http://boost.org/libs/exception
Boost Software License 1.0
15 stars 46 forks source link

Guard diagnostic_information against null what() #22

Closed Oberon00 closed 5 years ago

Oberon00 commented 5 years ago

Printing a char* nullptr to an std::ostream is UB. Since diagnostic_information is used for debugging, I guess it would be good for it to be as robust as possible.

zajo commented 5 years ago

Yes, very good. Thank you!