Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#1,363 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
c
Ambito
devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
C
Stelle
3
Fork
7
Merge medio
4h 5m
PR unite (30g)
116

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di InauguralSystems/EigenScript

Tutte le issue di InauguralSystems/EigenScript

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.