< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事(スレッド移動)
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Issue #11109 has been updated by Nobuyoshi Nakada.
Description updated
Status changed from Open to Third Party's Issue
Priority changed from High to Normal
`BSON::Int64.from_bson` seems to accept `String` only, but not to check the argument.
----------------------------------------
Bug #11109: Crash of irb.
https://bugs.ruby-lang.org/issues/11109#change-52293
* Author: Jeffrey Yang
* Status: Third Party's Issue
* Priority: Normal
* Assignee: ruby-core
* ruby -v: 2.2.2
* Backport: 2.2: UNKNOWN
----------------------------------------
ENV:
Mac OS X 10.10.3
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
HOW TO COMPILE:
1. cd to the dir of ruby 2.2.2.
2. ./configure
3. make
4. make install as root.
STEPS:
1. Start the irb on console.
2. Type the following code lines in irb:
```ruby
require 'stringio'
require 'bson'
sio = StringIO.new 1.to_bson
BSON::Int64. from_bson sio
```
3. The crash happens.
Please see also the attached file for all details.
---Files--------------------------------
bug_report.txt (12 KB)
--
https://bugs.ruby-lang.org/