url: return error at once when OOM in netrc handling - #20103
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes incorrect error handling for out-of-memory conditions in netrc file parsing. Previously, OOM errors from Curl_parsenetrc() would be incorrectly returned as CURLE_READ_ERROR. The fix adds an early check that immediately returns CURLE_OUT_OF_MEMORY when memory allocation fails during netrc parsing.
- Adds explicit handling for
NETRC_OUT_OF_MEMORYerror code - Returns the appropriate
CURLE_OUT_OF_MEMORYerror instead of incorrectly mapping toCURLE_READ_ERROR
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
augment review |
🤖 Augment PR SummarySummary: Treat 🤖 Was this summary useful? React with 👍 or 👎 |
No description provided.