diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-10-25 23:53:30 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-10-26 13:37:45 +0200 |
commit | f0364f7e3191c930008de0736ae00ef28d42bd91 (patch) | |
tree | 124961f0cd32f9b27773551c4fb6dcb3fa08d22f /tests/data/test1162 | |
parent | 7b11c5dbe612e152e4ee1b61bac872a7e7958578 (diff) |
curl_fnmatch: return error on illegal wildcard pattern
... instead of doing an infinite loop!
Added test 1162 to verify.
Reported-by: Max Dymond
Fixes #2015
Closes #2017
Diffstat (limited to 'tests/data/test1162')
-rw-r--r-- | tests/data/test1162 | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/data/test1162 b/tests/data/test1162 new file mode 100644 index 000000000..73e4646e1 --- /dev/null +++ b/tests/data/test1162 @@ -0,0 +1,52 @@ +<testcase> +<info> +<keywords> +FTP +RETR +LIST +wildcardmatch +ftplistparser +flaky +</keywords> +</info> + +# +# Server-side +<reply> +<data> +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<tool> +lib576 +</tool> +<name> +FTP wildcard with crazy pattern +</name> +<command> +"ftp://%HOSTIP:%FTPPORT/fully_simulated/DOS/[*\\s-'tl" +</command> +</client> +<verify> +<protocol> +USER anonymous
+PASS ftp@example.com
+PWD
+CWD fully_simulated
+CWD DOS
+EPSV
+TYPE A
+LIST
+QUIT
+</protocol> +# 78 == CURLE_REMOTE_FILE_NOT_FOUND +<errorcode> +78 +</errorcode> +</verify> +</testcase> |