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

Change #246135

Category None
Changed by Daniel Stenberg <danielohnoyoudont@haxx.se>
Changed at Sun 19 Oct 2025 16:12:56
Repository https://api.github.com/repos/curl/curl
Project curl/curl
Branch bagder/tool-strdup-fail
Revision a28ee13abadf81eeffde0288d3728f7f59d4ba0d

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

Changed files