From: Paul Eggert Date: Sun, 21 Aug 2005 05:01:20 +0000 (+0000) Subject: * config/srclist.txt: Add glibc bug 1227. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa1bb8673a20a170851fb3b2216e90b56cc042f0;p=pspp * config/srclist.txt: Add glibc bug 1227. * lib/regexec.c (sift_states_bkref): Fix portability bug: the code assumed that reg_errcode_t is a signed type, which is not necessarily true if _XOPEN_SOURCE is not defined. --- diff --git a/config/ChangeLog b/config/ChangeLog index 725cda7e6d..8d48dd2c74 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,6 +1,6 @@ 2005-08-20 Paul Eggert - * srclist.txt: Add glibc bugs 1220, 1221, 1222, 1223, 1224, 1225, 1226. + * srclist.txt: Add glibc bugs 1220-1227. 2005-08-19 Paul Eggert diff --git a/config/srclist.txt b/config/srclist.txt index 779ba1f6f1..438e126d4b 100644 --- a/config/srclist.txt +++ b/config/srclist.txt @@ -1,4 +1,4 @@ -# $Id: srclist.txt,v 1.77 2005-08-21 03:31:46 eggert Exp $ +# $Id: srclist.txt,v 1.78 2005-08-21 05:01:20 eggert Exp $ # Files for which we are not the source. See ./srclistvars.sh for the # variable definitions. @@ -121,6 +121,7 @@ $LIBCSRC/posix/regex.c lib gpl # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1216 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1220 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1225 +# http://sources.redhat.com/bugzilla/show_bug.cgi?id=1227 #$LIBCSRC/posix/regexec.c lib gpl # # c89 changes $LIBCSRC/string/strdup.c lib gpl diff --git a/lib/ChangeLog b/lib/ChangeLog index c50e56da00..d0a87cf3a5 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,5 +1,10 @@ 2005-08-20 Paul Eggert + Fix problems reported by Sam Steingold in + . + * regexec.c (sift_states_bkref): Fix portability bug: the code + assumed that reg_errcode_t is a signed type, which is not + necessarily true if _XOPEN_SOURCE is not defined. * regex_internal.c (calc_state_hash): Put 'inline' before type, since some compilers warn about it otherwise. diff --git a/lib/regexec.c b/lib/regexec.c index 6ca15bb547..4f6c50c898 100644 --- a/lib/regexec.c +++ b/lib/regexec.c @@ -2088,7 +2088,7 @@ sift_states_bkref (re_match_context_t *mctx, re_sift_context_t *sctx, enabled_idx = first_idx; do { - int subexp_len, to_idx, dst_node; + int subexp_len, to_idx, dst_node, ret; re_dfastate_t *cur_state; if (entry->node != node) @@ -2114,8 +2114,8 @@ sift_states_bkref (re_match_context_t *mctx, re_sift_context_t *sctx, } local_sctx.last_node = node; local_sctx.last_str_idx = str_idx; - err = re_node_set_insert (&local_sctx.limits, enabled_idx); - if (BE (err < 0, 0)) + ret = re_node_set_insert (&local_sctx.limits, enabled_idx); + if (BE (ret < 0, 0)) { err = REG_ESPACE; goto free_return;