Skip to content

Conversation

@bagder
Copy link
Member

@bagder bagder commented Oct 19, 2025

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

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
@bagder bagder marked this pull request as ready for review October 19, 2025 14:14
@testclutch
Copy link

Analysis of PR #19145 at a28ee13a:

Test ../../tests/http/test_07_upload.py::TestUpload::test_07_22_upload_parallel_fail[h3] failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 2 different CI jobs (the link just goes to one of them).

Generated by Testclutch

@bagder bagder closed this in 4c636b2 Oct 19, 2025
@bagder bagder deleted the bagder/tool-strdup-fail branch October 19, 2025 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants