Merge branch 'nd/maint-compat-fnmatch-fix' into maint
* nd/maint-compat-fnmatch-fix: compat/fnmatch: fix off-by-one character class's length checkmaint
commit
86ef7b37f9
|
@ -345,7 +345,7 @@ internal_fnmatch (pattern, string, no_leading_period, flags)
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
if (c1 == CHAR_CLASS_MAX_LENGTH)
|
if (c1 > CHAR_CLASS_MAX_LENGTH)
|
||||||
/* The name is too long and therefore the pattern
|
/* The name is too long and therefore the pattern
|
||||||
is ill-formed. */
|
is ill-formed. */
|
||||||
return FNM_NOMATCH;
|
return FNM_NOMATCH;
|
||||||
|
|
Loading…
Reference in New Issue