boostorg / asio

Boost.org asio module
http://boost.org/libs/asio
1.25k stars 418 forks source link

Double std::move() in promise. #414

Open Hentacler opened 1 year ago

Hentacler commented 1 year ago

Please check the following block:

https://github.com/boostorg/asio/blob/1fa30958e51a4b540b9e95256c4a2c3fc4134c65/include/boost/asio/experimental/impl/promise.hpp#L228

After this std::move(), the completion handler is called with invalid args (line 232).