Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

eigsdap JSON escaping is not UTF-8-safe (same hole as eigenlsp #1336)

オープン
#1,363 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
c
領域
devtools

調査の方向性

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 の本文から書いたものです。

説明

needs-triage

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 --json already 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

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

InauguralSystems/EigenScript のほかの issue

InauguralSystems/EigenScript の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。