Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#3801 closed Bugs (fixed)

NULL pointer access in archive/detail/oserializer.hpp

Reported by: williamspatrick@… Owned by: Robert Ramey
Milestone: Boost 1.46.0 Component: serialization
Version: Boost 1.42.0 Severity: Problem
Keywords: Cc:

Description

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.

Change History (4)

comment:1 by Robert Ramey, 13 years ago

Resolution: fixed
Status: newclosed

I've addressed this in my local copy. Eventually this will migrate to trunk then release.

Robert Ramey

comment:2 by andrew@…, 12 years ago

Milestone: Boost 1.42.0Boost 1.46.0
Resolution: fixed
Status: closedreopened
Version: Boost 1.41.0Boost 1.42.0

There is the same issue in archive/detail/oserializer.hpp:

BOOST_ASSERT(NULL != bpos); if(NULL == bpos)

boost::serialization::throw_exception(

archive_exception(

archive_exception::unregistered_class, bpos->get_debug_info()

)

);

Also exists in trunk.

comment:3 by Robert Ramey, 12 years ago

Resolution: fixed
Status: reopenedclosed

something must be out of sync.

I've checked my local copy - same as trunk and don't find this in archive/detail/oserializer.hpp

Robert Ramey

in reply to:  3 comment:4 by andrew@…, 12 years ago

Replying to ramey:

something must be out of sync.

I've checked my local copy - same as trunk and don't find this in archive/detail/oserializer.hpp

Robert Ramey

Please recheck here https://svn.boost.org/svn/boost/trunk/boost/archive/detail/oserializer.hpp at the end of void save_pointer_type::polymorphic::save(Archive &ar, T & t).

Note: See TracTickets for help on using tickets.