Patch attached: regex_internal.c: correct re_realloc overflow detection * posix/regex_internal.c (re_dfa_add_node): Correct the overflow detection test. Patch by Paul Eggert.
Created attachment 4530 [details] regex_internal.c: correct re_realloc overflow detection 2010-01-19 Jim Meyering <meyering@redhat.com> [BZ #11184] regex_internal.c: correct re_realloc overflow detection * posix/regex_internal.c (re_dfa_add_node): Correct the overflow detection test. Patch by Paul Eggert. Note that the "sizeof(int)" makes it slightly more convenient to keep in sync with gnulib's "sizeof(Idx)".
I checked in a slightly changed version of the patch.