Re: [Boost-bugs] [Boost C++ Libraries] #3650: Text Serialization crashes when istream close unexpectedly

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3650: Text Serialization crashes when istream close unexpectedly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-06 22:12:33


#3650: Text Serialization crashes when istream close unexpectedly
--------------------------------------+-------------------------------------
  Reporter: Doug Wallas | Owner: ramey
      Type: Bugs | Status: closed
 Milestone: Boost 1.42.0 | Component: serialization
   Version: Boost Development Trunk | Severity: Problem
Resolution: wontfix | Keywords:
--------------------------------------+-------------------------------------
Changes (by ramey):

  * status: reopened => closed
  * resolution: => wontfix

Comment:

 {{{
  boost::archive::text_iarchive ia(*_stream);
  do{
      boost::shared_ptr<Message> msg;
      // check here that the stream is OK. That is, if the stream
      // has been unexpected closed - deal with it here!
      if(_stream->eof() or stream-> ?)
          break;
      ia >> msg; // sigfaults
      if(_stream->fail()) // Wont be called
          throw ...
  }while(! _stream->eof()) {

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3650#comment:7>
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:02 UTC