fix the end of string matching in fnmatch with FNM_PATHNAME
authorSzabolcs Nagy <nsz@port70.net>
Sun, 1 Dec 2013 17:32:48 +0000 (17:32 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Sun, 1 Dec 2013 17:32:48 +0000 (17:32 +0000)
commitda0fcdb8e913ca7cdf8931328f2b37e93309b2c5
tree1475f70995478728a6fe41a53cdd20021a3e6878
parent7603c5f127316e5ee4c5b161d87742d2ac824567
fix the end of string matching in fnmatch with FNM_PATHNAME

a '/' in the pattern could be incorrectly matched against the
terminating null byte in the string causing arbitrarily long
sequence of out-of-bounds access in fnmatch("/","",FNM_PATHNAME)
src/regex/fnmatch.c