Skip to content

Commit c8bb87f

Browse files
committed
Default json reader to max expected size.
1 parent c3f3fa6 commit c8bb87f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/bitcoin/network/impl/messages/json_body.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void CLASS::reader::init(const http::length_type& length,
3535
boost_code& ec) NOEXCEPT
3636
{
3737
BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
38-
const auto value = length.get_value_or(zero);
38+
const auto value = length.get_value_or(max_size_t);
3939
BC_POP_WARNING()
4040

4141
using namespace system;

0 commit comments

Comments
 (0)