Re: [Boost-bugs] [Boost C++ Libraries] #1849: Deserialization of std::string overwrites non-copied contents.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1849: Deserialization of std::string overwrites non-copied contents.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-06-09 10:11:51


#1849: Deserialization of std::string overwrites non-copied contents.
-------------------------------------------------------------+--------------
  Reporter: Siegfried Kettlitz <dev_at_[hidden]> | Owner: ramey
      Type: Bugs | Status: assigned
 Milestone: Boost 1.35.1 | Component: serialization
   Version: Boost 1.35.0 | Severity: Showstopper
Resolution: | Keywords:
-------------------------------------------------------------+--------------
Comment (by dev_at_[hidden]):

 Added the string.hpp and got the same result.

 Using g++ version 4.3.1 also got the same result. (don't know if the 4.3.1
 stdlib from gcc-snapshot is automatically used when switching the compiler
 in kdevelop)

 Adding a character to "BarST" -> "BarSTx" leads to _no_ overwriting.
 Removing a character from "BarST" -> "BarS" leads to _no_ overwriting.

 So this problem only exists when the _lengths of the strings match_ like
 they did in my program when the bug first occured to me.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1849#comment:3>
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:49:58 UTC