Project

General

Profile

Bug #12223

Backport r54304 (SEGV in rb_str_format())

Added by nagachika (Tomoyuki Chikanaga) over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-dev:49534]

Description

バックポート管理用チケットです。
r54304 は ruby_2_2, ruby_2_3 でも必要そうです。
2.1.8 で sprintf("%.600f", 600**~60) を試してみたところ SEGV しなかったので一応 DONTNEED にしていますが、ソースコードは精査してはいません。

Associated revisions

Revision 8f93c59e
Added by nagachika (Tomoyuki Chikanaga) over 3 years ago

merge revision(s) 54304: [Backport #12223]

    * sprintf.c (rb_str_format): fix buffer overflow, length must be
      greater than precision.  reported by William Bowling <will AT
      wbowling.info>.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@54443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 54443
Added by nagachika (Tomoyuki Chikanaga) over 3 years ago

merge revision(s) 54304: [Backport #12223]

* sprintf.c (rb_str_format): fix buffer overflow, length must be
  greater than precision.  reported by William Bowling <will AT
  wbowling.info>.

Revision 58f77932
Added by nagachika (Tomoyuki Chikanaga) over 3 years ago

merge revision(s) 54304: [Backport #12223]

    * sprintf.c (rb_str_format): fix buffer overflow, length must be
      greater than precision.  reported by William Bowling <will AT
      wbowling.info>.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 54505
Added by nagachika (Tomoyuki Chikanaga) over 3 years ago

merge revision(s) 54304: [Backport #12223]

* sprintf.c (rb_str_format): fix buffer overflow, length must be
  greater than precision.  reported by William Bowling <will AT
  wbowling.info>.

History

Updated by nagachika (Tomoyuki Chikanaga) over 3 years ago

  • Backport changed from 2.1: DONTNEED, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: DONTNEED, 2.2: DONE, 2.3: REQUIRED

Backported into ruby_2_2 branch at r54443.

Updated by nagachika (Tomoyuki Chikanaga) over 3 years ago

  • Backport changed from 2.1: DONTNEED, 2.2: DONE, 2.3: REQUIRED to 2.1: DONTNEED, 2.2: DONE, 2.3: DONE

ruby_2_3 r54505 merged revision(s) 54304.

Also available in: Atom PDF