#3801 closed Bugs (fixed)
NULL pointer access in archive/detail/oserializer.hpp
Reported by: | 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 , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 12 years ago
Milestone: | Boost 1.42.0 → Boost 1.46.0 |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
Version: | Boost 1.41.0 → Boost 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.
follow-up: 4 comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
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
comment:4 by , 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).
I've addressed this in my local copy. Eventually this will migrate to trunk then release.
Robert Ramey