Fix CVE-2023-38545

This commit is contained in:
SChernykh 2023-10-11 08:17:35 +02:00
parent 011d05f7b6
commit 5988acb12b

View file

@ -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);