Repository navigation
Conversation
vszakats
marked this pull request as draft
October 4, 2025 02:03
2 tasks done
vszakats
marked this pull request as ready for review
October 4, 2025 15:54
vszakats
force-pushed
the
xstrerr
branch
3 times, most recently
from
October 5, 2025 17:16
a8429d7 to
902aef9
Compare
strerror globally
strerror globallystrerror globally
…c strerror_r
Also taking note of this:
```
../../src/../lib/curlx/strerr.c: In function ‘curlx_strerror’:
../../src/../lib/curlx/strerr.c:330:31: error: ‘Unknown error ’ directive output truncated writing 14 bytes into a region of size 1 [-Werror=format-truncation=]
330 | SNPRINTF(buf, buflen, "Unknown error %d", err);
| ~^~~~~~~~~~~~~
../../src/../lib/curlx/strerr.c:330:29: note: directive argument in the range [0, 2147483647]
330 | SNPRINTF(buf, buflen, "Unknown error %d", err);
| ^~~~~~~~~~~~~~~~~~
../../src/../lib/curlx/strerr.c:47:18: note: ‘snprintf’ output between 16 and 25 bytes into a destination of size 1
47 | #define SNPRINTF snprintf
| ^
../../src/../lib/curlx/strerr.c:330:7: note: in expansion of macro ‘SNPRINTF’
330 | SNPRINTF(buf, buflen, "Unknown error %d", err);
| ^~~~~~~~
../../src/../lib/curlx/strerr.c:328:32: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
328 | SNPRINTF(buf, buflen, "%s", msg);
| ^
../../src/../lib/curlx/strerr.c:47:18: note: ‘snprintf’ output 1 or more bytes (assuming 2) into a destination of size 1
47 | #define SNPRINTF snprintf
| ^
../../src/../lib/curlx/strerr.c:328:7: note: in expansion of macro ‘SNPRINTF’
328 | SNPRINTF(buf, buflen, "%s", msg);
| ^~~~~~~~
cc1: all warnings being treated as errors
```
https://github.com/curl/curl/actions/runs/18259528816/job/51985513869?pr=18840#step:31:1730
try fix 1
try fix 2
fixup brainfart
This reverts commit c44154a.
This reverts commit 52373aa.
This reverts commit 4eaf01c.
It's just a convenient buffer size.
uses curl_m*printf(), mappings not needed.
We might need them in the future. (also in a pending branch)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also:
sstrerror()withcurlx_strerror().curl_msnprintf()when building for src and tests.(units was already using it.)
Follow-up to 45438c8 #18823