Change #246161
Category | None |
Changed by | Daniel Stenberg <daniel | @haxx.se>
Changed at | Sun 19 Oct 2025 23:47:00 |
Repository | https://api.github.com/repos/curl/curl |
Project | curl/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
- src/tool_operate.c