Subject: [Boost-bugs] [Boost C++ Libraries] #3370: async_client.cpp example can eat all available VM
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-08-27 08:32:19
#3370: async_client.cpp example can eat all available VM
-------------------------------+--------------------------------------------
Reporter: egor@⦠| Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: asio
Version: Boost 1.39.0 | Severity: Problem
Keywords: |
-------------------------------+--------------------------------------------
As found at http://www.rsdn.ru/forum/cpp.applied/3517122.aspx, in russian:
{{{
boost::asio::async_read_until(socket_, response_, "\r\n",
boost::bind(&client::handle_read_status_line, this,
boost::asio::placeholders::error));
}}}
What if the server won't ever return "\r\n" - will response_ grow up to
all available RAM?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3370> 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:01 UTC