Project

General

Profile

Actions

Bug #14547

closed

segfault on Rational() with positive exponent in a string

Added by pb (pumbur _) over 6 years ago. Updated over 6 years ago.

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

Description

Rational('1.11e1')

results in segmentation fault

Actions #1

Updated by nobu (Nobuyoshi Nakada) over 6 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r62555.


rational.c: segfault on Rational exponent

  • rational.c (read_num): fix segfault on Rational() with positive
    but less than the length of fractional part exponent. should be
    negated to convert to divisor which is a reciprocal.
    [ruby-core:85783] [Bug #14547]
Actions #2

Updated by nobu (Nobuyoshi Nakada) over 6 years ago

  • Backport changed from 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN to 2.3: DONTNEED, 2.4: DONTNEED, 2.5: REQUIRED

Updated by naruse (Yui NARUSE) over 6 years ago

  • Backport changed from 2.3: DONTNEED, 2.4: DONTNEED, 2.5: REQUIRED to 2.3: DONTNEED, 2.4: DONTNEED, 2.5: DONE

ruby_2_5 r62562 merged revision(s) 62555.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0