summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorVincent Pit <perl@profvince.com>2009-01-02 12:24:44 +0100
committerVincent Pit <perl@profvince.com>2009-01-02 12:24:44 +0100
commited15e576876f5122f97f9cdd2b304e5a94efbc0a (patch)
tree64251349250d2ce406f4a3e1bb0a3fd408ea5f5c /gv.c
parent8a9589bc6cef4f737dac16289dde1fc6084e8d2f (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gv.c b/gv.c
index 5b297e46b6..65419bdfef 100644
--- a/gv.c
+++ b/gv.c
@@ -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;
}
}