Boost C++ Libraries: Ticket #7384: Serializing binary object to text or xml reads outside specified memory https://svn.boost.org/trac10/ticket/7384 <p> When writing a binary object (using make_binary_object) to a text or xml archive, the serialization seems to read beyond the specified size. Initially this error was reported by valgrind, and I then confirmed the file written by the archive changes when the data beyond the specified size varies. So it is reading at least 1 byte beyond the size specified to make_binary_object. </p> <p> I have seen this on boost 1.49.0 and the current svn version. </p> <p> A small program that reproduces this problem is attached, as well as the valgrind output I get when running this program if the extraSpace variable is set to 0. This program tests all of the possible values for the memory beyond the serializedSize and write them to files. The last letter (before the ==) then varies from A-P. </p> <p> This was tested on linux. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7384 Trac 1.4.3 anonymous Mon, 17 Sep 2012 21:18:57 GMT attachment set https://svn.boost.org/trac10/ticket/7384 https://svn.boost.org/trac10/ticket/7384 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boostSerializationTest.cpp</span> </li> </ul> Ticket anonymous Mon, 17 Sep 2012 21:19:09 GMT attachment set https://svn.boost.org/trac10/ticket/7384 https://svn.boost.org/trac10/ticket/7384 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">valgrindOut.txt</span> </li> </ul> Ticket Robert Ramey Wed, 12 Dec 2012 21:58:45 GMT <link>https://svn.boost.org/trac10/ticket/7384#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7384#comment:1</guid> <description> <p> I've made changes to code to address this specific issue. I've checked in the changes to the trunk. Please check to see that this problem is addressed. </p> <p> Robert Ramey </p> </description> <category>Ticket</category> </item> <item> <author>cjgreen@…</author> <pubDate>Thu, 13 Dec 2012 15:35:52 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7384#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7384#comment:2</guid> <description> <p> That fixed my issue. Thank you. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Wed, 06 Feb 2013 20:42:06 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7384#comment:3 https://svn.boost.org/trac10/ticket/7384#comment:3 <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> Ticket