Description
Hi All,
[I did this]
I use CURLOPT_WILDCARDMATCH to download FTP website, but libcurl will report "Unable to parse FTP file list", and this issue always can be reproduced if the folder contains a large number of folders/files.
I found that this issue appears in 7.57 or later version, and it should be caused by the following commits:
=============================================
commit 1d72b5b
Author: Daniel Stenberg daniel@haxx.se
Date: Wed Oct 25 18:19:44 2017 +0200
ftplistparser: follow-up cleanup to remove PL_ERROR()
commit f786d1f
Author: Max Dymond cmeister2@gmail.com
Date: Wed Oct 25 15:52:43 2017 +0100
ftplistparser: free off temporary memory always
When using the FTP list parser, ensure that the memory that's
allocated is always freed.
Detected by OSS-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3682
Closes #2013
=============================================
BTW, I'm using curl's Debian package.
[I expected the following]
This issue can be fixed.
[curl/libcurl version]
libcurl3:amd64 7.57.0
[operating system]
Linux 4.4.98.x86_64.1
Thanks,