summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorChip Salzenberg <chip@atlantic.net>1997-01-13 13:17:21 +1200
committerChip Salzenberg <chip@atlantic.net>1997-01-16 07:24:00 +1200
commit3115e423b9deb8a52c4e316da80b3a3279b6b4bb (patch)
tree04e85750c46275af8692229c1b861d54c7cbd2ab /regcomp.c
parent59e65735b9de984ecd1e0594e28ff2a09ac6ddac (diff)
downloadperl-3115e423b9deb8a52c4e316da80b3a3279b6b4bb.tar.gz
Fail regex that starts with '{'
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index bbb7c8e444..2f3fb40b97 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -767,7 +767,8 @@ tryagain:
case '?':
case '+':
case '*':
- FAIL("?+* follows nothing in regexp");
+ case '{':
+ FAIL("?+*{} follows nothing in regexp");
break;
case '\\':
switch (*++regparse) {