Boost C++ Libraries: Ticket #3801: NULL pointer access in archive/detail/oserializer.hpp https://svn.boost.org/trac10/ticket/3801 <p> archive/detail/oserializer.hpp has the following code: </p> <blockquote> <p> if(NULL == true_type){ </p> <blockquote> <p> boost::serialization::throw_exception( </p> <blockquote> <p> archive_exception( </p> <blockquote> <p> archive_exception::unregistered_class, true_type-&gt;get_debug_info() </p> </blockquote> <p> ) </p> </blockquote> <p> ); </p> </blockquote> <p> } </p> </blockquote> <p> This tries to access a NULL pointer (get_debug_info()). I believe this should be changed to 'this_type-&gt;get_debug_info()'. </p> <p> I verified this exists in trunk. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3801 Trac 1.4.3 Robert Ramey Wed, 30 Dec 2009 18:03:33 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3801#comment:1 https://svn.boost.org/trac10/ticket/3801#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> I've addressed this in my local copy. Eventually this will migrate to trunk then release. </p> <p> Robert Ramey </p> Ticket andrew@… Wed, 01 Dec 2010 14:51:36 GMT status, version, milestone changed; resolution deleted https://svn.boost.org/trac10/ticket/3801#comment:2 https://svn.boost.org/trac10/ticket/3801#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.41.0</span> → <span class="trac-field-new">Boost 1.42.0</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.42.0</span> → <span class="trac-field-new">Boost 1.46.0</span> </li> </ul> <p> There is the same issue in archive/detail/oserializer.hpp: </p> <p> BOOST_ASSERT(NULL != bpos); if(NULL == bpos) </p> <blockquote> <p> boost::serialization::throw_exception( </p> <blockquote> <p> archive_exception( </p> <blockquote> <p> archive_exception::unregistered_class, bpos-&gt;get_debug_info() </p> </blockquote> <p> ) </p> </blockquote> <p> ); </p> </blockquote> <p> Also exists in trunk. </p> Ticket Robert Ramey Mon, 06 Dec 2010 19:52:26 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3801#comment:3 https://svn.boost.org/trac10/ticket/3801#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> something must be out of sync. </p> <p> I've checked my local copy - same as trunk and don't find this in archive/detail/oserializer.hpp </p> <p> Robert Ramey </p> Ticket andrew@… Mon, 06 Dec 2010 20:29:45 GMT <link>https://svn.boost.org/trac10/ticket/3801#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3801#comment:4</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/3801#comment:3" title="Comment 3">ramey</a>: </p> <blockquote class="citation"> <p> something must be out of sync. </p> <p> I've checked my local copy - same as trunk and don't find this in archive/detail/oserializer.hpp </p> <p> Robert Ramey </p> </blockquote> <p> Please recheck here <a class="ext-link" href="https://svn.boost.org/svn/boost/trunk/boost/archive/detail/oserializer.hpp"><span class="icon">​</span>https://svn.boost.org/svn/boost/trunk/boost/archive/detail/oserializer.hpp</a> at the end of void save_pointer_type::polymorphic::save(Archive &amp;ar, T &amp; t). </p> </description> <category>Ticket</category> </item> </channel> </rss>