regcomp, regexec, fnmatch: avoid array bounds read error
authorUlrich Drepper <drepper@redhat.com>
Mon, 4 Jan 2010 10:18:51 +0000 (11:18 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 4 Jan 2010 15:22:19 +0000 (16:22 +0100)
commitd55324f119e0f203590486bbf4760a1dc25d7735
treef139d8712577eef7b291f8cb0c174d05d3cd4de0
parentd772599442c94bf820e40108aa5c32fa3933d821
regcomp, regexec, fnmatch: avoid array bounds read error

* lib/regcomp.c (build_equiv_class): From glibc:
Use only the low 24 bits of a findidx return value as an index
into the weights array.  Patch by Ulrich Drepper:
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
* lib/regexec.c (check_node_accept_bytes): Likewise.
* lib/fnmatch_loop.c (FCT): Likewise.
ChangeLog
lib/fnmatch_loop.c
lib/regcomp.c
lib/regexec.c