]> git.ipfire.org Git - thirdparty/curl.git/commit
curl_path: make sure just whitespace is illegal
authorDaniel Stenberg <daniel@haxx.se>
Sun, 19 Oct 2025 13:06:39 +0000 (15:06 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 19 Oct 2025 14:26:01 +0000 (16:26 +0200)
commit976333dd4052855c22369e89e60a80a9cf925161
treea6b9285d898bbc819dedd6fca1e0027d3dc4c9b8
parent769ccb4d4261a75c8a4236fbe7dc3e27956db1c9
curl_path: make sure just whitespace is illegal

This function could previously accidentally return true and a NULL path
if only whitespace was provided as argument.

Also, make it stricter and do not allow CR or LF within the string.

Use more strparse parsing.

Drop the comment saying this is from OpenSSH as it has now been
rewritten since then.

Closes #19141
lib/vssh/curl_path.c
tests/unit/unit2604.c