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 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
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分
マージ済み PR(30日)
270

環境構築

Codespaces で開く

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

はじめの一歩

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

InauguralSystems/EigenScript のほかの issue

InauguralSystems/EigenScript の issue をすべて見る

似ている issue

C の issue をもっと見る

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

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