This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Storable: throw exception on huge values
authorAaron Crane <arc@cpan.org>
Fri, 18 Mar 2016 15:22:12 +0000 (15:22 +0000)
committerTony Cook <tony@develop-help.com>
Thu, 8 Feb 2018 02:34:10 +0000 (13:34 +1100)
commitec4c87747930b1ba81d2c4d1d103e66a62975441
tree846fb9a1b290952540decbd1c08bd719bda4d772
parentd0071613f9303a6ad8d483f3164d6fef5bf6f0f5
Storable: throw exception on huge values

The Storable data format is incapable of representing lengths of 2**31 or
greater; and if you try, you can get segfaults or corrupt data or other fun
and games.

Though it would be undeniably good to fix this properly, this is just a
simple starting point: the limitation is documented, and an exception is
thrown when such data is encountered.

Signed-off-by: Reini Urban <rurban@cpanel.net>
Conflicts:
dist/Storable/Storable.pm
dist/Storable/Storable.xs
MANIFEST
dist/Storable/Storable.xs
dist/Storable/__Storable__.pm
dist/Storable/t/huge.t [new file with mode: 0644]