diff options
author | Bo Borgerson <gigabo@gmail.com> | 2009-08-16 11:07:39 -0400 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-08-25 10:22:58 +0200 |
commit | 6aff239d5283e5d4ba7b451221311e53b9690309 (patch) | |
tree | 72a82858d5aa8b3620362688d24c27569904dbb4 /sv.c | |
parent | 6eed0921e10b784f6cb4188dd78478d880d46585 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |