]> granicus.if.org Git - curl/commit
ftp-wildcard: fix matching an empty string with "*[^a]"
authorDaniel Stenberg <daniel@haxx.se>
Sat, 13 Jan 2018 20:52:15 +0000 (21:52 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 17 Jan 2018 09:41:38 +0000 (10:41 +0100)
commitcb5accab9ee3abdee777b59b463b5e0ca05a490a
tree7ccac75f5e82e7975d3afc449f6b331cc88e0584
parent25c40c9af97782c9d475e765d50eaac071fd7d91
ftp-wildcard: fix matching an empty string with "*[^a]"

.... and avoid advancing the pointer to trigger an out of buffer read.

Detected by OSS-fuzz
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5251
Assisted-by: Max Dymond
lib/curl_fnmatch.c
tests/unit/unit1307.c