]> Savannah Git Hosting - gnulib.git/commit
fnmatch: merge from glibc + proposal
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 31 Dec 2020 21:35:53 +0000 (13:35 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 31 Dec 2020 21:43:59 +0000 (13:43 -0800)
commit453d130d1df3f251a6f2ad7cbc8cb6052c91d8fd
tree42c594979bf466adb1a962c8d58c695bfc0204a2
parent4e609740b678cc8c0fcfcf966ff5e6ccb28c464b
fnmatch: merge from glibc + proposal

This merges the change proposed by Adhemerval Zanella in:
https://sourceware.org/pipermail/libc-alpha/2020-December/121212.html
which fixes a Gnulib bug that led to a failed assert.
* lib/fnmatch_loop.c (EXT): Use signed level, not unsigned, and
check that it stays nonnegative.  Use __flexarr instead of
FLEXIBLE_ARRAY_MEMBER, to port better to glibc.
* tests/test-fnmatch.c (main): New test cases, taken from glibc.
ChangeLog
lib/fnmatch_loop.c
tests/test-fnmatch.c