Skip to content

curl_formadd.md: mention the strlen() for names as well - #22926

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/formaddd-namelen
Closed

bagder wants to merge 1 commit into
masterfrom
bagder/formaddd-namelen

Conversation

@bagder

@bagder bagder commented Sep 12, 2026

Copy link
Copy Markdown
Member

Clarify that this goes the same for the name as for the content.

Clarify that this goes the same for the name as for the content.
@bagder
bagder marked this pull request as ready for review September 12, 2026 22:05
@bagder
bagder requested a lite review from Copilot September 12, 2026 22:05

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.

🟢 Approval recommended

Only a minor wording nit was identified; no blocking issues remain.

Pull request overview

This pull request clarifies CURLFORM_NAMELENGTH behavior when passed zero.

Changes:

  • Documents strlen()-based name-length detection.
  • Clarifies empty-name handling.
File summaries
File Description
docs/libcurl/curl_formadd.md Adds documentation for automatic name-length detection and zero-length names.
Review details

Suppressed comments (1)

docs/libcurl/curl_formadd.md:123

  • "Zero byte name" is ambiguous/inaccurate here: it normally describes a name containing a NUL byte, which the preceding option docs prohibit and the implementation rejects. A strlen() result of zero means an empty, zero-length name; please use that wording so this does not contradict the documented restriction.
figure out the size. If you really want to send a zero byte name then you must
make sure strlen() on the name pointer returns zero.
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

@bagder bagder closed this in 72dcca5 Sep 13, 2026
@bagder
bagder deleted the bagder/formaddd-namelen branch September 13, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants