diff options
| author | Junio C Hamano <gitster@pobox.com> | 2012-11-25 18:44:41 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2012-11-25 18:44:41 -0800 |
| commit | 5ab539bb005498bc3cbf37d57a939b809a1c3dbc (patch) | |
| tree | 7649ab2f94611cc2414c9ccbe5c0eea76fe5c090 | |
| parent | Merge branch 'bc/do-not-recurse-in-die' (diff) | |
| parent | compat/fnmatch: fix off-by-one character class's length check (diff) | |
| download | git-5ab539bb005498bc3cbf37d57a939b809a1c3dbc.tar.gz git-5ab539bb005498bc3cbf37d57a939b809a1c3dbc.zip | |
Merge branch 'nd/maint-compat-fnmatch-fix'
* nd/maint-compat-fnmatch-fix:
compat/fnmatch: fix off-by-one character class's length check
| -rw-r--r-- | compat/fnmatch/fnmatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/fnmatch/fnmatch.c b/compat/fnmatch/fnmatch.c index 9473aed2bb..0ff1d273a5 100644 --- 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; |
