Re: [Boost-bugs] [Boost C++ Libraries] #1481: transform_width may cause buffer overruns

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1481: transform_width may cause buffer overruns
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-11-30 12:27:35


#1481: transform_width may cause buffer overruns
-------------------------------+--------------------------------------------
  Reporter: anonymous | Owner: ramey
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: serialization
   Version: release 1.34.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Changes (by kostic):

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

Comment:

 Yes, I realise this. However, there's a simple solution, albeit it changes
 the interface. The solution is for transform_width to take a pair of
 iterators (begin and end), not one, so that it knows exactly when to stop
 and not go over the end.

 I have seen a lot of people using transform_width for base64 encoding with
 std::copy, which with current implementation is what one should not do.
 Well, it should either not compile at all or should work as expected (in
 the most intuitive way)

 Thanks for a quick response by the way

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