aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1162
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-10-25 23:53:30 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-10-26 13:37:45 +0200
commitf0364f7e3191c930008de0736ae00ef28d42bd91 (patch)
tree124961f0cd32f9b27773551c4fb6dcb3fa08d22f /tests/data/test1162
parent7b11c5dbe612e152e4ee1b61bac872a7e7958578 (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/test116252
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>