Fix handling of unterminated bracket expressions in fnmatch (bug 28792)
commit8442f0d966da5a9333e961af9e98b41aabdd9f1b
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 18 Jan 2022 15:31:39 +0000 (18 16:31 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Mon, 24 Jan 2022 16:13:33 +0000 (24 17:13 +0100)
treea2d119ef37abe3e91b5e53822e52e289419d4711
parent84d2d0fe20bdf94feed82b21b4d7d136db471f03
Fix handling of unterminated bracket expressions in fnmatch (bug 28792)

When fnmatch processes a bracket expression, and eventually finds it to be
unterminated, it should rescan it, treating the starting bracket as a
normal character.  That didn't happen when a matching character was found
while scanning the bracket expression.
posix/Makefile
posix/fnmatch_loop.c
posix/tst-fnmatch7.c [new file with mode: 0644]