From 5988acb12b767f7237650840a8bc7e47114a4684 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Wed, 11 Oct 2023 08:17:35 +0200 Subject: [PATCH] Fix CVE-2023-38545 --- src/json_rpc_request.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/json_rpc_request.cpp b/src/json_rpc_request.cpp index 36ca7b7..a6a4152 100644 --- a/src/json_rpc_request.cpp +++ b/src/json_rpc_request.cpp @@ -176,6 +176,8 @@ CurlContext::CurlContext(const std::string& address, int port, const std::string } \ } while (0) + curl_easy_setopt_checked(m_handle, CURLOPT_BUFFERSIZE, 102400L); + curl_easy_setopt_checked(m_handle, CURLOPT_WRITEFUNCTION, write_func); curl_easy_setopt_checked(m_handle, CURLOPT_WRITEDATA, this);