mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-03-12 07:55:31 +02:00
* gl/lib/tempname.c.diff: Fix recent breakage so it applies again. Invalid patch was noticed at http://hydra.nixos.org/eval/1172233 * cfg.mk: Exempt diff files from these "id_est" syntax checks. (sc_ensure_gl_diffs_apply): A new syntax check, to ensure all patches under gl/ apply cleanly. Note we use --fuzz=0 to check patches apply cleanly for safety, due to the patch(1) issue detailed in commit v8.21-117-g46f7e05 * gl/lib/regcomp.c.diff: Rediffed. * gl/lib/regex_internal.c.diff: Likewise. * gl/lib/regex_internal.h.diff: Likewise. * gl/lib/regexec.c.diff: Likewise. * gl/lib/tempname.h.diff: Likewise.
26 lines
738 B
Diff
26 lines
738 B
Diff
diff --git a/lib/regex_internal.c b/lib/regex_internal.c
|
|
index 36ae6ab..c11ff09 100644
|
|
--- a/lib/regex_internal.c
|
|
+++ b/lib/regex_internal.c
|
|
@@ -17,6 +17,8 @@
|
|
License along with the GNU C Library; if not, see
|
|
<http://www.gnu.org/licenses/>. */
|
|
|
|
+#include "verify.h"
|
|
+#include "intprops.h"
|
|
static void re_string_construct_common (const char *str, Idx len,
|
|
re_string_t *pstr,
|
|
RE_TRANSLATE_TYPE trans, bool icase,
|
|
@@ -1389,7 +1391,10 @@ static void
|
|
internal_function
|
|
re_node_set_remove_at (re_node_set *set, Idx idx)
|
|
{
|
|
- if (idx < 0 || idx >= set->nelem)
|
|
+ verify (! TYPE_SIGNED (Idx));
|
|
+ /* if (idx < 0)
|
|
+ return; */
|
|
+ if (idx >= set->nelem)
|
|
return;
|
|
--set->nelem;
|
|
for (; idx < set->nelem; idx++)
|