]> granicus.if.org Git - curl/commit
fnmatch: insist on escaped bracket to match
authorDaniel Stenberg <daniel@haxx.se>
Sun, 27 May 2018 21:24:27 +0000 (23:24 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 28 May 2018 21:57:31 +0000 (23:57 +0200)
commit6482773d30c96fe886c294036acbc8ad2130bc31
tree0d602b3dc3aa6ae6b9cdd438c5a100fbdfedeb39
parent8541d02c967c993f6e36fd78c59c50b70315ac91
fnmatch: insist on escaped bracket to match

A non-escaped bracket ([) is for a character group - as documented. It
will *not* match an individual bracket anymore. Test case 1307 updated
accordingly to match.

Problem detected by OSS-Fuzz, although this fix is probably not a final
fix for the notorious timeout issues.

Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8525
Closes #2614
lib/curl_fnmatch.c
tests/unit/unit1307.c