summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorBo Borgerson <gigabo@gmail.com>2009-08-16 11:07:39 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-08-25 10:22:58 +0200
commit6aff239d5283e5d4ba7b451221311e53b9690309 (patch)
tree72a82858d5aa8b3620362688d24c27569904dbb4 /sv.c
parent6eed0921e10b784f6cb4188dd78478d880d46585 (diff)
downloadperl-6aff239d5283e5d4ba7b451221311e53b9690309.tar.gz
String with NULL auto-increment bug fix
Check position relative to end of string length rather than whether char is NULL at end of initial alphanumerics in Perl_sv_inc
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index b9f682cb63..a53669a324 100644
--- a/sv.c
+++ b/sv.c
@@ -7298,7 +7298,7 @@ Perl_sv_inc(pTHX_ register SV *const sv)
d = SvPVX(sv);
while (isALPHA(*d)) d++;
while (isDIGIT(*d)) d++;
- if (*d) {
+ if (d < SvEND(sv)) {
#ifdef PERL_PRESERVE_IVUV
/* Got to punt this as an integer if needs be, but we don't issue
warnings. Probably ought to make the sv_iv_please() that does