Core dump from "Missing right brace on \x{}"
Gisle Aas [Wed, 14 Oct 1998 15:17:44 +0000 (17:17 +0200)]
Message-ID: <m3iuhn9taf.fsf@furu.g.aas.no>

p4raw-id: //depot/perl@2001

toke.c

diff --git a/toke.c b/toke.c
index 88933de..8664b8f 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -1076,8 +1076,10 @@ scan_const(char *start)
                if (*s == '{') {
                    char* e = strchr(s, '}');
 
-                   if (!e)
+                   if (!e) {
                        yyerror("Missing right brace on \\x{}");
+                       e = s;
+                   }
                    if (!utf) {
                        dTHR;
                        if (ckWARN(WARN_UTF8))