diff options
author | Vincent Pit <perl@profvince.com> | 2009-01-02 12:24:44 +0100 |
---|---|---|
committer | Vincent Pit <perl@profvince.com> | 2009-01-02 12:24:44 +0100 |
commit | ed15e576876f5122f97f9cdd2b304e5a94efbc0a (patch) | |
tree | 64251349250d2ce406f4a3e1bb0a3fd408ea5f5c /gv.c | |
parent | 8a9589bc6cef4f737dac16289dde1fc6084e8d2f (diff) | |
download | perl-ed15e576876f5122f97f9cdd2b304e5a94efbc0a.tar.gz |
In amagic_call(), offset should be strictly lesser than the SV len to be allowed to access the corresponding string buffer byte
Diffstat (limited to 'gv.c')
-rw-r--r-- | gv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1869,7 +1869,7 @@ Perl_amagic_call(pTHX_ SV *left, SV *right, int method, int flags) char *pv = SvPV(lex_mask, len); /* Bit set, so this overloading operator is disabled */ - if ( (STRLEN)offset <= len && pv[offset] & ( 1 << bit ) ) + if ( (STRLEN)offset < len && pv[offset] & ( 1 << bit ) ) return NULL; } } |