Fix CVE-2023-38545

pull/286/head
SChernykh 2023-10-11 08:17:35 +02:00
parent 011d05f7b6
commit 5988acb12b
1 changed files with 2 additions and 0 deletions

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