forked from pool/glibc
35b77f97b8
Copy from Base:System/glibc based on submit request 24314 from user pbaudis OBS-URL: https://build.opensuse.org/request/show/24314 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glibc?expand=0&rev=13
14 lines
481 B
Diff
14 lines
481 B
Diff
Index: posix/regcomp.c
|
|
===================================================================
|
|
--- posix/regcomp.c.orig
|
|
+++ posix/regcomp.c
|
|
@@ -2254,6 +2254,8 @@ parse_expression (re_string_t *regexp, r
|
|
else if (syntax & RE_CONTEXT_INDEP_OPS)
|
|
{
|
|
fetch_token (token, regexp, syntax);
|
|
+ if (token->type == OP_CLOSE_SUBEXP || token->type == OP_ALT)
|
|
+ return NULL;
|
|
return parse_expression (regexp, preg, token, syntax, nest, err);
|
|
}
|
|
/* else fall through */
|