diff options
author | Tony Cook <tony@develop-help.com> | 2012-03-24 00:27:52 +0100 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-05-21 17:51:53 -0700 |
commit | fcb8da00bbf96c055c5bfb9ae7a8086051c6f3b0 (patch) | |
tree | 3e421dfcf21ae11f9cbec090dc0d29ee37974264 /proto.h | |
parent | 803e7e8145a1acab70f0b5356329b191cfc8ccd9 (diff) | |
download | perl-fcb8da00bbf96c055c5bfb9ae7a8086051c6f3b0.tar.gz |
[rt #111730] don't use I32 for offsets in vec()
do_vecset() do_vecget() used I32 for the offset, which meant that
offsets outside the -2Gb - +2Gb offset were truncated, resulting in
various misbehaviours.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -893,7 +893,7 @@ PERL_CALLCONV I32 Perl_do_trans(pTHX_ SV* sv) #define PERL_ARGS_ASSERT_DO_TRANS \ assert(sv) -PERL_CALLCONV UV Perl_do_vecget(pTHX_ SV* sv, I32 offset, I32 size) +PERL_CALLCONV UV Perl_do_vecget(pTHX_ SV* sv, SSize_t offset, int size) __attribute__nonnull__(pTHX_1); #define PERL_ARGS_ASSERT_DO_VECGET \ assert(sv) |