Skip to content

Auto-port 4.1: Fix implementation of strerror_r_xsi for GNU#16561

Merged
chrisvest merged 1 commit into
4.1from
auto-port-pr-16546-to-4.1
Mar 26, 2026
Merged

Auto-port 4.1: Fix implementation of strerror_r_xsi for GNU#16561
chrisvest merged 1 commit into
4.1from
auto-port-pr-16546-to-4.1

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16546 to 4.1
Cherry-picked commit: 1fda0d5


Motivation:

We did not clear errno before calling strerror_r(...) and then later use it to detect if there was an error. This could lead to false-positives as strerror_r(...) does not set errno to 0 on success.

Modifications:

Set errno to 0 before calling strerror_r

Result:

Correct implement strerror_r_xsi for GNU

Motivation:

We did not clear errno before calling strerror_r(...) and then later use
it to detect if there was an error. This could lead to false-positives
as strerror_r(...) does not set errno to 0 on success.

Modifications:

Set errno to 0 before calling strerror_r

Result:

Correct implement strerror_r_xsi for GNU

(cherry picked from commit 1fda0d5)
@chrisvest chrisvest added this to the 4.1.133.Final milestone Mar 26, 2026
@chrisvest chrisvest merged commit ff23761 into 4.1 Mar 26, 2026
19 checks passed
@chrisvest chrisvest deleted the auto-port-pr-16546-to-4.1 branch March 26, 2026 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants