Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3650: Text Serialization crashes when istream close unexpectedly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-30 11:28:11
#3650: Text Serialization crashes when istream close unexpectedly
-------------------------------------+--------------------------------------
Reporter: Doug Wallas | Owner: ramey
Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: serialization
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------+--------------------------------------
Comment(by Doug Wallas):
The problem seems to be on the >> operator.
The library do read from the stream, but does not check after reading that
the stream had not encoutered an error while reading. The >> operator then
starts creating a new object from what he just read and sigfaults :(
I may be wrong, but i think the fail() is updated after a read, so the
check on _stream->fail() would be ok (the library already does one in
internal) and the crash would still occur.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3650#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:50:01 UTC