summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2017-12-08 00:03:16 +0000
committerZefram <zefram@fysh.org>2017-12-08 00:06:48 +0000
commit9291839cdbaa256b811274b66910a960a7f3b06d (patch)
treeae05f56a8977527c78028617a306273de4354777 /toke.c
parent19a498a461d7c81ae3507c450953d1148efecf4f (diff)
downloadperl-9291839cdbaa256b811274b66910a960a7f3b06d.tar.gz
assert min identifier length in S_pending_ident()
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index 5aeec6fc65..a4150c2f05 100644
--- a/toke.c
+++ b/toke.c
@@ -8943,6 +8943,7 @@ S_pending_ident(pTHX)
DEBUG_T({ PerlIO_printf(Perl_debug_log,
"### Pending identifier '%s'\n", PL_tokenbuf); });
+ assert(tokenbuf_len >= 2);
/* if we're in a my(), we can't allow dynamics here.
$foo'bar has already been turned into $foo::bar, so