[Boost-bugs] [Boost C++ Libraries] #3801: NULL pointer access in archive/detail/oserializer.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #3801: NULL pointer access in archive/detail/oserializer.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-28 23:12:52


#3801: NULL pointer access in archive/detail/oserializer.hpp
---------------------------------------+------------------------------------
 Reporter: williamspatrick@… | Owner: ramey
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: serialization
  Version: Boost 1.41.0 | Severity: Problem
 Keywords: |
---------------------------------------+------------------------------------
 archive/detail/oserializer.hpp has the following code:

             if(NULL == true_type){
                 boost::serialization::throw_exception(
                     archive_exception(
                         archive_exception::unregistered_class,
                         true_type->get_debug_info()
                     )
                 );
             }

 This tries to access a NULL pointer (get_debug_info()). I believe this
 should be changed to 'this_type->get_debug_info()'.

 I verified this exists in trunk.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3801>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC