summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-05-04 16:52:29 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-05-04 16:52:29 +0000
commit21a311eead0eeb6ab139ee2e94076b4d84d76c6f (patch)
treec8cfed48597928c817da3e3f8703992032c28de1
parentbe341bcebb03d2f97192fb78a6a1bc33c7bca5ce (diff)
downloadperl-21a311eead0eeb6ab139ee2e94076b4d84d76c6f.tar.gz
tokeq() could read unallocated field in argument
p4raw-id: //depot/perl@6063
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 10273a0111..ecaace3622 100644
--- a/toke.c
+++ b/toke.c
@@ -896,7 +896,7 @@ S_tokeq(pTHX_ SV *sv)
goto finish;
s = SvPV_force(sv, len);
- if (SvIVX(sv) == -1)
+ if (SvTYPE(sv) >= SVt_PVIV && SvIVX(sv) == -1)
goto finish;
send = s + len;
while (s < send && *s != '\\')