Oversized trailers bypass max_header_list_size and are silently truncated

Aperta
#985 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@cfal ci sta già lavorando.

Dal 17/10/2026.

  • #989 di @cfal — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
rust
Ambito
networking

Direzione di ricerca

Start by reading the trailer receive-side handling and the shared decoder logic described in the issue; no file paths or tests are named. Check how the decoder's size marker and exact-limit cutoff interact with stream-state errors. Done means oversized trailers return PROTOCOL_ERROR, existing stream-state errors are preserved, and sections exactly at the limit remain intact; a linked pull request is already open.

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

Descrizione

Trailer handling ignores the decoder's is_over_size() marker, exposing truncated trailers as successful completion. Check it before closing the receive side or converting to HeaderMap, returning PROTOCOL_ERROR while preserving existing stream-state errors. Also fix the shared decoder's >= cutoff so sections exactly at max_header_list_size remain intact. The advertised limit is advisory: rejecting larger trailers enforces local receive policy rather than declaring all such messages invalid HTTP/2.

Lingua principale
Rust
Stelle
1.6k
Fork
406
Merge medio
6h 3m
PR unite (30g)
8

Preparare l'ambiente

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 hyperium/h2

Tutte le issue di hyperium/h2

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.