Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #246167

Category curl
Changed by Daniel Stenberg <danielohnoyoudont@haxx.se>
Changed at Sun 19 Oct 2025 23:47:00
Repository https://github.com/curl/curl.git
Project curl
Branch master
Revision 4c636b2dc1fb94e554f8885e595888a20cca11fc

Comments

tool_operate: return error on strdup() failure
In src/tool_operate.c inside the Windows safe-search branch (#ifdef
CURL_CA_SEARCH_SAFE), the code assigns config->cacert = strdup(cacert);
at line 2076 without checking whether strdup returned NULL.

This would allow the code to continue with the wrong value set, causing
possible confusion.

Pointed out by ZeroPath
Closes #19145

Changed files