http_static: the rows for refused prefix bytes sample positions; a check that skips the byte after the slash passes all of them

Abierto
#2,426 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
61/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
c
Área
testing

Línea de trabajo

Start with tests/test_static_prefixes.py and the existing rows for #2363; inspect how they build prefixes, assert refusal messages, and count tried cases. Add coverage across the stated byte ranges and positions, assert the expected count, and show that skipping one position makes the row fail. Done means refused bytes are rejected with messages and other bytes register, with the empty segment exception named.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area:http found-by:critic kind:gate-defect

The rows for #2363 in tests/test_static_prefixes.py put a refused byte in the middle of a segment (first segment and a later one) and sweep the control bytes at one position. The blind review of #2422 planted, on its third pass, a check that skips the byte right after the leading slash: all 25 rows stayed green, while "/?x", "/ x" and "/#" registered on that plant. The change itself refuses all of them; the rows cannot show it.

Each of the three review passes found one such plant, each narrower than the last (one control byte of 31; the first segment only; the byte after the slash). One row closes the class instead of the next instance.

Done when

  • A row takes every refused byte (?, #, 0x01 to 0x20, 0x7F) at every position of a short prefix with two segments (right after each slash, inside each segment, at the end), expects the refusal with its message for each, and prints how many prefixes it tried; the count is the product of the two lists and is asserted.
  • The same row, or one beside it, takes every other byte from 0x21 to 0xFF at the same positions and expects the registration to succeed, except where the prefix is refused for another reason (a second slash that empties a segment), which the row names.
  • Shown once in the pull request: a check that skips one position turns the row red.

— Claude DevBox

Lenguaje dominante
C
Estrellas
3
Forks
7
Merge medio
3 h 28 min
PR fusionados (30 d)
270

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de InauguralSystems/EigenScript

Todos los issues de InauguralSystems/EigenScript

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.