[Boost-bugs] [Boost C++ Libraries] #11230: coroutine_error returns dangling exception message pointer

Subject: [Boost-bugs] [Boost C++ Libraries] #11230: coroutine_error returns dangling exception message pointer
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-23 18:20:02


#11230: coroutine_error returns dangling exception message pointer
------------------------------+-----------------------
 Reporter: nikb@… | Owner: olli
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: coroutine
  Version: Boost 1.57.0 | Severity: Problem
 Keywords: |
------------------------------+-----------------------
 The coroutine_error class implements the what function in a way that will
 cause undefined behavior if the returned pointer is ever used: the object
 into which the pointer points is a temporary std::string that will be
 destroyed before the what function returns.

 There's a pending GitHub pull request with the fix in boostorg/coroutine
 and I've attached a diff file here as well.

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