Navigation Menu

Skip to content

Commit

Permalink
In amagic_call(), offset should be strictly lesser than the SV len to…
Browse files Browse the repository at this point in the history
… be allowed to access the corresponding string buffer byte
  • Loading branch information
vpit committed Jan 2, 2009
1 parent 8a9589b commit ed15e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gv.c
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit ed15e57

Please sign in to comment.