Skip to content

mime: do curl_mime_free() non-recursively - #22927

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/mimefree-recursive
Closed

bagder wants to merge 2 commits into
masterfrom
bagder/mimefree-recursive

Conversation

@bagder

@bagder bagder commented Sep 12, 2026

Copy link
Copy Markdown
Member

No description provided.

@bagder bagder added the MIME label Sep 12, 2026
@github-actions github-actions Bot added the tests label Sep 12, 2026
@bagder
bagder requested a balanced review from Copilot September 12, 2026 22:32
@bagder
bagder marked this pull request as ready for review September 12, 2026 22:32

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.

🔵 Needs a closer look

The test uses an incomplete feature guard and does not reliably distinguish iterative cleanup from the previous recursive behavior.

Pull request overview

Reworks MIME cleanup to avoid recursive destruction of nested multipart structures and adds a unit test.

Changes:

  • Implements iterative MIME tree cleanup.
  • Adds and registers a nested-MIME unit test.
  • Registers test 3595 in the test suite.
File summaries
File Description
lib/mime.c Implements non-recursive MIME cleanup.
tests/unit/unit3595.c Adds nested multipart cleanup coverage.
tests/unit/Makefile.inc Registers the unit source.
tests/data/test3595 Defines the test case.
tests/data/Makefile.am Registers test 3595.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 0
  • Review effort level: Balanced

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

@testclutch

Copy link
Copy Markdown

Analysis of PR #22927 at 19455974:

Test 3595 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 58 different CI jobs (the link just goes to one of them).

Generated by Testclutch

@vszakats

This comment was marked as resolved.

@bagder
bagder force-pushed the bagder/mimefree-recursive branch from 1945597 to e69afdb Compare September 13, 2026 08:41
Verify with test 3595: deeply nested curl_mime_free()
@bagder
bagder force-pushed the bagder/mimefree-recursive branch from 361fb69 to 17a5d9a Compare September 13, 2026 13:49
@bagder bagder closed this in d754680 Sep 13, 2026
@bagder
bagder deleted the bagder/mimefree-recursive branch September 13, 2026 21:37
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.

4 participants