diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-23 01:22:10 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-23 01:22:10 +0000 |
commit | 82e2bc1b5ed8357f0ef7e3beabe4a224aba43182 (patch) | |
tree | 6cad65a79a9b3ebf9358bfd6800c171960bc6085 /util.c | |
parent | 934abaf167adb702576b251f37fdd3e89d62e20b (diff) | |
download | perl-82e2bc1b5ed8357f0ef7e3beabe4a224aba43182.tar.gz |
Purify: Array bounds read: reading one byte before the buffer.
p4raw-id: //depot/perl@15437
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4018,7 +4018,7 @@ Perl_new_vstring(pTHX_ char *s, SV *sv) /* this is atoi() that tolerates underscores */ char *end = pos; UV mult = 1; - if ( *(s-1) == '_') { + if ( s > pos && *(s-1) == '_') { mult = 10; } while (--end >= s) { |