diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-04 16:52:29 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-04 16:52:29 +0000 |
commit | 21a311eead0eeb6ab139ee2e94076b4d84d76c6f (patch) | |
tree | c8cfed48597928c817da3e3f8703992032c28de1 | |
parent | be341bcebb03d2f97192fb78a6a1bc33c7bca5ce (diff) | |
download | perl-21a311eead0eeb6ab139ee2e94076b4d84d76c6f.tar.gz |
tokeq() could read unallocated field in argument
p4raw-id: //depot/perl@6063
-rw-r--r-- | toke.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 != '\\') |