Make regex safe for g++. This fixes one real bug (an "err"
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 25 Aug 2005 20:39:57 +0000 (20:39 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 25 Aug 2005 20:39:57 +0000 (20:39 +0000)
commitcad71bd9c39403753be0dfd39a4196d3ef9766c1
treed7c356b2feb61c302593ef0db12d1c4b4d228795
parent91f0c71300fb4f48cd39df121b8434f56012502c
Make regex safe for g++.  This fixes one real bug (an "err"
that should have been "*err").
* config/srclist.txt: Add glibc bug 1241.
* lib/regex_internal.h (re_calloc): New macro, consistent with
re_malloc etc.  All callers of calloc changed to use re_calloc.
* lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
not int.  All callers changed.
* lib/regcomp.c (re_compile_fastmap_iter): Don't use alloca
(mb_cur_max); just use an array of size MB_LEN_MAX.
* lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
(find_recover_state): Change "err" to "*err"; this fixes what
appears to be a real bug.
(check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
versus int.
config/ChangeLog
config/srclist.txt
lib/ChangeLog
lib/regcomp.c
lib/regex_internal.c
lib/regex_internal.h
lib/regexec.c