]> git.ipfire.org Git - thirdparty/curl.git/commit
urlapi: reject short file URLs
authorDaniel Stenberg <daniel@haxx.se>
Mon, 22 Nov 2021 09:11:59 +0000 (10:11 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 23 Nov 2021 07:45:21 +0000 (08:45 +0100)
commit3e6eb18fcea96dfb33af3a2f03ce65444e710ff0
tree3547859b8bc6a5cde7745401463135b7244f00f5
parentffb6a9e8a6a13c4fdd8df2134f64e377a57e25be
urlapi: reject short file URLs

file URLs that are 6 bytes or shorter are not complete. Return
CURLUE_MALFORMED_INPUT for those. Extended test 1560 to verify.

Triggered by #8041
Closes #8042
lib/urlapi.c
tests/libtest/lib1560.c