[Boost-bugs] [Boost C++ Libraries] #7384: Serializing binary object to text or xml reads outside specified memory

Subject: [Boost-bugs] [Boost C++ Libraries] #7384: Serializing binary object to text or xml reads outside specified memory
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-09-17 21:17:41


#7384: Serializing binary object to text or xml reads outside specified memory
-----------------------------------------+----------------------------------
 Reporter: cjgreen@… | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.51.0 | Severity: Problem
 Keywords: binary object serialization |
-----------------------------------------+----------------------------------
 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.

 I have seen this on boost 1.49.0 and the current svn version.

 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.

 This was tested on linux.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7384>
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:10 UTC