[Boost-bugs] [Boost C++ Libraries] #4635: segmentation fault in text_oarchive::save_binary()

Subject: [Boost-bugs] [Boost C++ Libraries] #4635: segmentation fault in text_oarchive::save_binary()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-08 00:42:04


#4635: segmentation fault in text_oarchive::save_binary()
--------------------------------------------+-------------------------------
 Reporter: Mark Heuser <mlheuser@…> | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.43.0 | Severity: Problem
 Keywords: |
--------------------------------------------+-------------------------------
 It appears that text_oarchive::save_binary() reads one byte too many. In
 other words, save_binary(addr,len) appears to read byte addr+len. The
 attached program, which runs on Linux, allocates a page of zeroes with
 mmap(2) and then serializes the last few bytes of the page with
 text_oarchive::save_binary(). The result is a segmentation fault.

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