Actions
Bug #12918
closed(1/nil) can be created by Marshal.load
Description
(1/nil) can be created by Marshal.load as follows:
$ ./ruby -ve 'p Marshal.load("\x04\bU:\rRational[\ai\x060")'
ruby 2.4.0dev (2016-11-10 trunk 56682) [x86_64-linux]
(1/nil)
Updated by shugo (Shugo Maeda) about 8 years ago
- Related to Bug #12915: 1..nil can be created by Marshal.load added
Updated by nobu (Nobuyoshi Nakada) about 8 years ago
- Status changed from Open to Closed
Applied in changeset r56702.
rational.c: check load
- rational.c (nurat_loader, nurat_marshal_load): check if loading
values are Integer. [ruby-core:78071] [Bug #12918]
Actions
Like0
Like0Like0