Project

General

Profile

Actions

Bug #12918

closed

(1/nil) can be created by Marshal.load

Added by shugo (Shugo Maeda) almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:78071]

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)

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #12915: 1..nil can be created by Marshal.loadClosedmatz (Yukihiro Matsumoto)Actions
Actions #1

Updated by shugo (Shugo Maeda) almost 8 years ago

  • Related to Bug #12915: 1..nil can be created by Marshal.load added
Actions #2

Updated by nobu (Nobuyoshi Nakada) almost 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

Also available in: Atom PDF

Like0
Like0Like0