coroutine_error returns dangling exception message pointer
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.
Change History
(11)
Resolution: |
→ fixed
|
Status: |
new → closed
|
Component: |
coroutine → inspection script
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Type: |
Bugs → Tasks
|
Component: |
coroutine → inspection script
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Type: |
Bugs → Tasks
|
Component: |
coroutine → inspection script
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Type: |
Bugs → Tasks
|
Component: |
coroutine → inspection script
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Type: |
Bugs → Tasks
|
Component: |
coroutine → inspection script
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Type: |
Bugs → Tasks
|
Component: |
coroutine → inspection script
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Type: |
Bugs → Tasks
|
Component: |
coroutine → inspection script
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Type: |
Bugs → Tasks
|
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
|
Resolution: |
→ fixed
|
Status: |
reopened → closed
|
thx, patch is merged at branch develop sorry for the delay - I was too busy (preparation for C++ meeting at Lenexa)