Opened 7 years ago

Closed 7 years ago

#11230 closed Tasks (fixed)

coroutine_error returns dangling exception message pointer

Reported by: nikb@… Owned by: olli
Milestone: Boost 1.58.0 Component: inspection script
Version: Boost.Build-M3 Severity: Regression
Keywords: cloudd <b420fbfbcd3536159bc10e33b4e47249 Cc:

Description

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.

Attachments (1)

coro_exception.diff​ (334 bytes ) - added by nikb@… 7 years ago.

Download all attachments as: .zip

Change History (11)

by nikb@…, 7 years ago

Attachment: coro_exception.diff​ added

comment:1 by olli, 7 years ago

Resolution: → fixed
Status: new → closed

thx, patch is merged at branch develop sorry for the delay - I was too busy (preparation for C++ meeting at Lenexa)

comment:2 by anonymous, 7 years ago

Component: coroutine → inspection script
Resolution: fixed
Status: closed → reopened
Type: Bugs → Tasks

comment:2 by anonymous, 7 years ago

Component: coroutine → inspection script
Resolution: fixed
Status: closed → reopened
Type: Bugs → Tasks

comment:2 by anonymous, 7 years ago

Component: coroutine → inspection script
Resolution: fixed
Status: closed → reopened
Type: Bugs → Tasks

comment:2 by anonymous, 7 years ago

Component: coroutine → inspection script
Resolution: fixed
Status: closed → reopened
Type: Bugs → Tasks

comment:2 by anonymous, 7 years ago

Component: coroutine → inspection script
Resolution: fixed
Status: closed → reopened
Type: Bugs → Tasks

comment:2 by anonymous, 7 years ago

Component: coroutine → inspection script
Resolution: fixed
Status: closed → reopened
Type: Bugs → Tasks

comment:2 by anonymous, 7 years ago

Component: coroutine → inspection script
Resolution: fixed
Status: closed → reopened
Type: Bugs → Tasks

comment:2 by anonymous, 7 years ago

Component: coroutine → inspection script
Keywords: cloudd <b420fbfbcd3536159bc10e33b4e47249 added
Milestone: To Be Determined → Boost 1.58.0
Resolution: fixed
Severity: Problem → Regression
Status: closed → reopened
Type: Bugs → Tasks
Version: Boost 1.57.0 → Boost.Build-M3

comment:3 by olli, 7 years ago

Resolution: → fixed
Status: reopened → closed

no idea why it was reopened (without a comment)

Note: See TracTickets for help on using tickets.