mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
Closes: https://bugs.gentoo.org/296813 Closes: https://github.com/gentoo/gentoo/pull/24577 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
12 lines
311 B
Diff
12 lines
311 B
Diff
--- a/lib/tre-parse.c
|
|
+++ b/lib/tre-parse.c
|
|
@@ -1480,6 +1480,8 @@ tre_parse(tre_parse_ctx_t *ctx)
|
|
ctx->re++;
|
|
while (ctx->re_end - ctx->re >= 0)
|
|
{
|
|
+ if (i == sizeof(tmp))
|
|
+ return REG_EBRACE;
|
|
if (ctx->re[0] == CHAR_RBRACE)
|
|
break;
|
|
if (tre_isxdigit(ctx->re[0]))
|