[ruby-cvs:69735] nobu:r62555 (trunk): rational.c: segfault on Rational exponent

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Feb 24 11:08:36 JST 2018


nobu	2018-02-24 11:08:36 +0900 (Sat, 24 Feb 2018)

  New Revision: 62555

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62555

  Log:
    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]

  Modified files:
    trunk/rational.c
    trunk/test/ruby/test_rational.rb


More information about the ruby-cvs mailing list