>From 34c734c9458d55166039f17c9a570f5bd6717717 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 8 Sep 2026 14:00:40 +0000 Subject: [PATCH 2/2] regex: a regcomp assert was always true found by the R project, tre upstream fix: https://github.com/laurikari/tre/commit/6cb0396dca772aa3105885bd1d94f93f595fe7d2 --- src/regex/regcomp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/regex/regcomp.c b/src/regex/regcomp.c index b4b81968..bbfbc0ee 100644 --- a/src/regex/regcomp.c +++ b/src/regex/regcomp.c @@ -2183,8 +2183,7 @@ tre_match_empty(tre_stack_t *stack, tre_ast_node_t *node, int *tags, } break; case ASSERTION: - assert(lit->code_max >= 1 - || lit->code_max <= ASSERT_LAST); + assert(lit->code_max >= 1 && lit->code_max <= ASSERT_LAST); if (assertions != NULL) *assertions |= lit->code_max; break; -- 2.52.0