>From e2ba8b355c8fd4aa6f4d46d4e76622fce3af659a Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 3 Oct 2026 16:16:42 +0000 Subject: [PATCH 02/25] regex: remove bracket limit now that input is limited there is no danger of overflow. and the limit was too low: 64k long [aaa..] failed. --- src/regex/regcomp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/regex/regcomp.c b/src/regex/regcomp.c index a7115b12..1152de88 100644 --- a/src/regex/regcomp.c +++ b/src/regex/regcomp.c @@ -457,8 +457,6 @@ static tre_literal_t *tre_new_lit(struct literals *p) { tre_literal_t **a; if (p->len >= p->cap) { - if (p->cap >= 1<<15) - return 0; p->cap *= 2; a = xrealloc(p->a, p->cap * sizeof *p->a); if (!a) -- 2.52.0