]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_operate: Fix error codes on bad URL & OOM
authorDan Fandrich <dan@coneharvesters.com>
Sun, 5 Feb 2023 00:05:35 +0000 (16:05 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 7 Feb 2023 07:20:04 +0000 (08:20 +0100)
commit349c5391f2121ee0338dcf5a61dafde7bc83be57
tree4d87c540ce1b54a85ea23088f537994d863ea768
parenta0adda4b47d653cd079df22b9a749279678ada04
tool_operate: Fix error codes on bad URL & OOM

curl would erroneously report CURLE_OUT_OF_MEMORY in some cases instead
of CURLE_URL_MALFORMAT. In other cases, it would erroneously return
CURLE_URL_MALFORMAT instead of CURLE_OUT_OF_MEMORY.  Add a test case to
test the former condition.

Fixes #10130
Closes #10414
src/tool_operate.c
src/tool_operhlp.c
src/tool_operhlp.h
tests/data/Makefile.inc
tests/data/test1469 [new file with mode: 0644]