projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
be341bc
)
tokeq() could read unallocated field in argument
Gurusamy Sarathy [Thu, 4 May 2000 16:52:29 +0000 (16:52 +0000)]
p4raw-id: //depot/perl@6063
toke.c
patch
|
blob
|
blame
|
history
diff --git
a/toke.c
b/toke.c
index
10273a0
..
ecaace3
100644
(file)
--- 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 != '\\')