Skip to content

url: fix return code for OOM in parse_proxy()#19779

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/parse_proxy-oom
Closed

url: fix return code for OOM in parse_proxy()#19779
bagder wants to merge 2 commits into
masterfrom
bagder/parse_proxy-oom

Conversation

@bagder

@bagder bagder commented Dec 1, 2025

Copy link
Copy Markdown
Member

No description provided.

@bagder
bagder marked this pull request as ready for review December 1, 2025 08:27
@bagder

bagder commented Dec 1, 2025

Copy link
Copy Markdown
Member Author

augment review

@augmentcode augmentcode Bot 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.

Review completed. 1 suggestion posted.

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

Comment thread lib/url.c Outdated
uc = curl_url_get(uhp, CURLUPART_USER, &proxyuser, CURLU_URLDECODE);
if(uc && (uc != CURLUE_NO_USER))
if(uc && (uc != CURLUE_NO_USER)) {
result = CURLE_OUT_OF_MEMORY;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Setting result to CURLE_OUT_OF_MEMORY for any curl_url_get error (other than CURLUE_NO_USER) may misreport non-OOM failures, e.g., CURLUE_URLDECODE on bad %-encoding. Consider only mapping CURLUE_OUT_OF_MEMORY to CURLE_OUT_OF_MEMORY and handling other CURLU errors appropriately (also applies to the password case below).

🤖 Was this useful? React with 👍 or 👎

@bagder bagder closed this in cffc912 Dec 1, 2025
@bagder
bagder deleted the bagder/parse_proxy-oom branch December 1, 2025 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant