update boost
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include <boost/beast/core/detail/config.hpp>
|
||||
#include <boost/beast/core/buffer_traits.hpp>
|
||||
#include <boost/beast/core/detail/buffer.hpp>
|
||||
#include <boost/beast/core/detail/clamp.hpp>
|
||||
#include <boost/beast/http/error.hpp>
|
||||
#include <boost/beast/http/message.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
@@ -89,9 +90,9 @@ struct basic_dynamic_body
|
||||
error_code& ec)
|
||||
{
|
||||
auto const n = buffer_bytes(buffers);
|
||||
if(body_.size() > body_.max_size() - n)
|
||||
if(beast::detail::sum_exceeds(body_.size(), n, body_.max_size()))
|
||||
{
|
||||
ec = error::buffer_overflow;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::buffer_overflow);
|
||||
return 0;
|
||||
}
|
||||
auto const mb =
|
||||
|
||||
Reference in New Issue
Block a user