Project

General

Profile

Actions

Bug #13084

closed

Updated by burningpony (Russell Osborne) over 8 years ago

Can be replicated on Linux via Docker

Below Segfaults

docker run -it ruby:slim ruby -e 'require "mathn"; p Rational("5/5");'

Below Returns Expected Result

docker run -it ruby:slim ruby -e 'p Rational("5/5");'

Updated by burningpony (Russell Osborne) over 8 years ago

  • Subject changed from String Cast to Rational on 2.4.0p0 results in SegFault with Mathn Required to String cast to Rational on 2.4.0p0 results in SegFault with Mathn required

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Status changed from Open to Closed

Applied in changeset r57232.


rational.c: fix for mathn

  • rational.c (read_num, read_rat_nos): dis by the type of numerator, for
    mathn. [ruby-core:78893] [Bug ]

Updated by naruse (Yui NARUSE) over 8 years ago

  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: DONE

ruby_2_4 r57843 merged revision(s) 57232.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0