eigsdap JSON escaping is not UTF-8-safe (same hole as eigenlsp #1336)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start in src/eigsdap.c at json_escape_to, then inspect eigs_json_escape_append and the existing eigenlsp and --lint --json call sites. Add a regression test for a DAP message whose text is cut mid-character, and verify the output decodes as strict UTF-8 and parses as JSON.
索引モデルが issue の本文から書いたものです。
説明
src/eigsdap.c json_escape_to copies bytes into JSON with no UTF-8 check, the same shape eigenlsp had before #1336. A message or source string that is cut mid-character, or that is not valid UTF-8, becomes a DAP payload strict decoders reject. Not fixed on the eigenlsp branch: DAP output is a different server, and nothing in #1336's bar fails because of it.
Done when
- Every string eigsdap writes into JSON goes through
eigs_json_escape_append(the chokepoint eigenlsp and--lint --jsonalready call), not a second validator. - A test: a DAP message whose text is cut mid-character decodes as strict UTF-8 and parses as JSON. Show it red on the unfixed function and green after.
- 主要言語
- C
- スター
- 3
- フォーク
- 7
- 平均マージ
- 4時間 1分
- マージ済み PR(30日)
- 121
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
InauguralSystems/EigenScript のほかの issue
-
area:ci kind:gate-defect
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
InauguralSystems/EigenScript#1448 ·
メンテナーはふだん 1 日以内に返信
-
area:ci kind:gate-defect
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
InauguralSystems/EigenScript#1431 ·
メンテナーはふだん 1 日以内に返信
-
area:gates kind:gate-defect
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
InauguralSystems/EigenScript#1429 ·
メンテナーはふだん 1 日以内に返信
-
area:docs kind:docs-drift
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
InauguralSystems/EigenScript#1428 ·
メンテナーはふだん 1 日以内に返信
-
area:docs good first issue kind:docs-drift
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
InauguralSystems/EigenScript#1400 ·
メンテナーはふだん 1 日以内に返信
InauguralSystems/EigenScript の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
darktable-org/darktable#22455 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
BasedHardware/omi#20084 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
raspberrypi/pico-sdk#3225 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信