Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
3 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |