Skip to content

Conversation

@bagder
Copy link
Member

@bagder bagder commented Dec 16, 2025

Follow-up to a78a07d

@bagder bagder added the cookies label Dec 16, 2025
@bagder bagder requested a review from Copilot December 16, 2025 08:12
@github-actions github-actions bot added the HTTP label Dec 16, 2025
@bagder
Copy link
Member Author

bagder commented Dec 16, 2025

augment review

@bagder bagder marked this pull request as ready for review December 16, 2025 08:12
Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. No suggestions at this time.

Comment augment review to trigger a new review at any time.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an error handling issue in the Curl_cookie_add function where an out-of-memory (OOM) condition was not properly reported. When Curl_memdup fails to allocate memory for cloning a cookie structure from stack to heap, the function now correctly sets result = CURLE_OUT_OF_MEMORY before jumping to the error handling path.

Key changes:

  • Added proper error code assignment (CURLE_OUT_OF_MEMORY) when memory allocation fails during cookie cloning

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bagder bagder closed this in 222fce0 Dec 16, 2025
@bagder bagder deleted the bagder/cookie-oom branch December 16, 2025 08:46
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.

1 participant