diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-10-27 20:22:36 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-10-27 20:22:36 +0000 |
commit | bb5dd93d07e2d54d352e519c7b43ff2d3e5c5f36 (patch) | |
tree | f3ca3569240799f160f6b783bb23c8e35602b4d2 /mg.c | |
parent | 159e8d64637a3daadcbab30870860babbbe8e1c1 (diff) | |
download | perl-bb5dd93d07e2d54d352e519c7b43ff2d3e5c5f36.tar.gz |
Bugs revealed by replacing (SV *) casts with something that doesn't
cast away const - AvFILL() doesn't guarantee that it won't modify the
AV * passed to it. So the prototype for Perl_av_len() needs to change,
and a const needs to go in Perl_magic_setarraylen().
p4raw-id: //depot/perl@34604
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1895,7 +1895,7 @@ int Perl_magic_getarylen(pTHX_ SV *sv, const MAGIC *mg) { dVAR; - const AV * const obj = (AV*)mg->mg_obj; + AV * const obj = (AV*)mg->mg_obj; PERL_ARGS_ASSERT_MAGIC_GETARYLEN; |