Skip to content

http_chunks: accept exactly 17 characters chunk-size - #23334

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/chunk-size
Closed

bagder wants to merge 1 commit into
masterfrom
bagder/chunk-size

Conversation

@bagder

@bagder bagder commented Oct 9, 2026

Copy link
Copy Markdown
Member

On all systems, not just 64-bit.
Ref: #23333

On all systems, not just 64-bit.
Ref: #23333
@github-actions github-actions Bot added the HTTP label Oct 9, 2026
@bagder
bagder requested a balanced review from Copilot October 9, 2026 13:57
@bagder
bagder marked this pull request as ready for review October 9, 2026 13:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new boundary behavior needs regression coverage for 17- and 18-character chunk sizes.

1 open finding
What changed in this PR

Allows 17-character HTTP chunk sizes consistently across platforms.

Changes:

  • Sets the chunk-size digit limit to 17.
  • Updates the limit documentation.
File Description
lib/​http_chunks.h Raises and documents the chunk-size limit.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/http_chunks.h
* why would a sane server prefix with zeroes? Let's accept one.
*/
#define CHUNK_MAXNUM_LEN (SIZEOF_CURL_OFF_T * 2)
#define CHUNK_MAXNUM_LEN 17
@bagder bagder closed this in 686ec81 Oct 9, 2026
@bagder
bagder deleted the bagder/chunk-size branch October 9, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants