Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #254352

Category curl
Changed by Viktor Szakats <commitohnoyoudont@vsz.me>
Changed at Tue 06 Jan 2026 20:02:55
Repository https://github.com/curl/curl.git
Project curl
Branch master
Revision 40c1748af503cf54443e17db5f537b548faa9328

Comments

tool_urlglob: fix propagating OOM error from `sanitize_file_name()`
Make sure to convert a low-level OOM error code a libcurl one, to make
the curl tool to display an accurate error code and messages. On Windows
and MS-DOS.

Improving:
```
$ CURL_FN_SANITIZE_OOM=1 wine curl.exe https://curl.se/ --output out.txt
[...]
curl: (3) URL using bad/illegal format or missing URL
```
to:
```
[...]
curl: (27) Out of memory
```

Cherry-picked from #20116
Closes #20198

Changed files