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

未关闭
#2,426 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
61/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
c
领域
testing

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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

主要语言
C
星标
3
派生
7
平均合并
3 小时 28 分钟
30 天内合并 PR
270

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

InauguralSystems/EigenScript 的其他 Issue

查看 InauguralSystems/EigenScript 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。