[2a] Remove incorrect Module._free(debugBuffer) call
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- javascript
- 領域
- api
調査の方向性
まず src/ARFset.js:144 と js/arfset.api.js:114 の呼び出しを調べ、debugBuffer がどのように取得・管理されているかを確認します。両方の箇所から JS free の呼び出しを削除し、その後、JavaScript API が引き続きバッファーを正しく処理できることを確認するため、リポジトリで利用可能なチェックを実行します。
索引モデルが issue の本文から書いたものです。
説明
Summary
Remove incorrect Module._free(debugBuffer) call that passes a typed-array view instead of a pointer
Environment
- Product/Service: FeatureSET-Display — JavaScript API
- Files:
src/ARFset.js:144,js/arfset.api.js:114
Problem Description
Both src/ARFset.js:144 and js/arfset.api.js:114 call Module._free(debugBuffer) where debugBuffer is a Uint8ClampedArray view, not an integer heap pointer. Module._free expects a raw wasm memory address (integer). Passing a JS typed-array object is a no-op at best; if the JS engine coerces the object to a number that happens to land on a valid heap address, it silently corrupts the wasm heap.
The buffer itself is a view onto wasm memory owned and managed by the C++ side — JS must not free it.
Expected Behavior
No Module._free call is made from JS for this buffer. The C++ side manages its own memory.
Actual Behavior
Module._free is called with a Uint8ClampedArray object, which is either a silent no-op or a potential heap-corruption vector.
Tasks
- Remove the bogus
Module._free(debugBuffer)call fromsrc/ARFset.js:144 - Remove the bogus
Module._free(debugBuffer)call fromjs/arfset.api.js:114
Impact
Medium — Potential wasm heap corruption if the coercion produces a valid-looking pointer; at minimum a latent correctness bug.
Additional Context
Small, isolated fix with no API surface change. Good candidate for an early "easy win" alongside 2b and 2c.
- 主要言語
- JavaScript
- スター
- 8
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
webarkit/FeatureSET-Display のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 58/100
webarkit/FeatureSET-Display の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
yjh051108/dsh-routing-suite#216 ·
-
bug user-priority/P2
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 4 日以内に返信
-
bug confirmed perf
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
videojs/video.js#9400 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
agent/scanner bug hive/hosted-available-lke648397-260827-5n31
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信