[Serialization] 1.42.0 oserializer.hpp:394 bug?

File: serialization/oserializer.hpp, line 394: if(NULL == true_type){ boost::serialization::throw_exception( archive_exception( archive_exception::unregistered_class, true_type->get_debug_info() ) ); } I think, that if true_type is NULL, then true_type->get_debug_info() is UB.

On Fri, May 7, 2010 at 4:21 PM, Krzysztof Czainski <1czajnik@gmail.com> wrote:
File: serialization/oserializer.hpp, line 394: if(NULL == true_type){ boost::serialization::throw_exception( archive_exception( archive_exception::unregistered_class, true_type->get_debug_info() ) ); }
Just a friendly note to Robert, if you use boost::throw_exception, get_debug_info could be integrated with boost::diagnostic_information, which is used to print debug info from most exceptions emitted by Boost (specifically, those that were thrown by boost::throw_exception.) Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode

I think this is fixed in 1.43 Robert Ramey Krzysztof Czainski wrote:
File: serialization/oserializer.hpp, line 394: if(NULL == true_type){ boost::serialization::throw_exception( archive_exception( archive_exception::unregistered_class, true_type->get_debug_info() ) ); }
I think, that if true_type is NULL, then true_type->get_debug_info() is UB. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (3)
-
Emil Dotchevski
-
Krzysztof Czainski
-
Robert Ramey