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

Đang mở
#2,426 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
61/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c
Lĩnh vực
testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C
Star
3
Fork
7
Merge trung bình
3 giờ 28 phút
Pull request đã merge (30 ngày)
270

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của InauguralSystems/EigenScript

Tất cả issue của InauguralSystems/EigenScript

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.