Re: [Boost-bugs] [Boost C++ Libraries] #3549: Crash from serializing an unregistered class

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3549: Crash from serializing an unregistered class
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-23 16:32:01


#3549: Crash from serializing an unregistered class
----------------------------------------------+-----------------------------
 Reporter: jeff.jackowski@… | Owner: ramey
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: serialization
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: |
----------------------------------------------+-----------------------------

Comment(by jeff.jackowski@…):

 Replying to [comment:1 ramey]:
> Hmmm - where exactly does this crash?
>
> archive_exception.cpp line # 40 constructs this exception and
> it explicitly checks for a null pointer.
>
> Need more information here.
>
> Robert Ramey

 It crashes before it can construct the exception. The code I'm looking at
 (boost/archive/detail/oserializer.hpp, line 376) is:

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

 Evaluating the second parameter to archive_exception will dereference a
 null pointer.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3549#comment:2>
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:01 UTC