Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'nd/maint-compat-fnmatch-fix' into maint
author
Junio C Hamano
<gitster@pobox.com>
Tue, 27 Nov 2012 21:29:00 +0000
(13:29 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 27 Nov 2012 21:29:00 +0000
(13:29 -0800)
* nd/maint-compat-fnmatch-fix:
compat/fnmatch: fix off-by-one character class's length check
compat/fnmatch/fnmatch.c
patch
|
blob
|
history
raw
(from parent 1:
ed20513
)
diff --git
a/compat/fnmatch/fnmatch.c
b/compat/fnmatch/fnmatch.c
index 9473aed2bbcb91994f166cf66d24459c66ac2fcb..0ff1d273a5839d15a908a4ed90b56d59b151e6e0 100644
(file)
--- a/
compat/fnmatch/fnmatch.c
+++ b/
compat/fnmatch/fnmatch.c
@@
-345,7
+345,7
@@
internal_fnmatch (pattern, string, no_leading_period, flags)
for (;;)
{
- if (c1
==
CHAR_CLASS_MAX_LENGTH)
+ if (c1
>
CHAR_CLASS_MAX_LENGTH)
/* The name is too long and therefore the pattern
is ill-formed. */
return FNM_NOMATCH;