Skip to content

strerror is now thread safe#8648

Open
andrew-aitchison wants to merge 1 commit into
cppcheck-opensource:mainfrom
andrew-aitchison:strerror.is.thread.safe
Open

strerror is now thread safe#8648
andrew-aitchison wants to merge 1 commit into
cppcheck-opensource:mainfrom
andrew-aitchison:strerror.is.thread.safe

Conversation

@andrew-aitchison

Copy link
Copy Markdown
Contributor

Before glibc 2.32, strerror() is not MT-Safe.
(from man strerror on Ubuntu 26.04).

glibc 2.32 was released on 2020-08-05 and glibc 2.43 on 2026-01-24
(from https://sourceware.org/glibc/wiki/Glibc%20Timeline)

This patch stops the threadsafety.py addon from warning about strerror().

strerror was used in test/cli/other_test.py to test threadsafety.py so we also patch that to use a different thread-unsafe function.

@andrew-aitchison

Copy link
Copy Markdown
Contributor Author

I don't think the failing check reached my code. Can I run it again ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant