`Fiddle::Pointer#to_value` is unsafe
まだ誰も着手していません。
- 主要言語
- Ruby
- スター
- 195
- フォーク
- 53
- 平均マージ
- 23時間 57分
- マージ済み PR(30日)
- 1
説明
Well, it's pretty self-explanatory. It returns (VALUE)(data->ptr), and ptr is obviously not marked, so can be GCed. This method is either should be removed completely (it'll still e possible to hack around with Fiddle.dlunwrap, but this at least feels hacky) or to be allowed only for pointers marked to be in fact VALUEs (mark return value type in Function constructor), and they of course should gc_mark their ptrs. Btw, there is no way to create a pointer from Ruby object, either.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず Fiddle::Pointer#to_value の実装と Function コンストラクターを読み、次にポインターのマーキングと Fiddle.dlunwrap が Ruby のガベージコレクターとどのように相互作用するかを調べます。issue では削除と型制限の代替案が示されています。完了には、安全性に関する設計の決定、実装、および影響を受ける動作のカバレッジが必要です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- ruby
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100