[Boost-bugs] [Boost C++ Libraries] #1141: Dangerious operator<< for wostream

Subject: [Boost-bugs] [Boost C++ Libraries] #1141: Dangerious operator<< for wostream
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-08-05 11:38:23


#1141: Dangerious operator<< for wostream
--------------------------------+-------------------------------------------
 Reporter: pop.atry_at_[hidden] | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.34.1 | Severity: Problem
 Keywords: |
--------------------------------+-------------------------------------------
 {{{
 #include <boost/archive/xml_woarchive.hpp>
 #include <sstream>
 int main()
 {
   using namespace std;
   using namespace boost;
   using namespace boost::archive;
   wstringstream s;
   s << ".....................................";
 }
 }}}
 The code causes memory corrupt because there is a dangerious operator<<
 declare in xml_woarchive.hpp.
 {{{
 BOOST_WARCHIVE_DECL(std::wostream &)
 operator<<(std::wostream &os, const char *t);
 }}}
 If this operator is only used internal, it should not be exported.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1141>
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:56 UTC