Skip to content

Update tools/MT-Unsafe.py to find all the unsafe functions listed in#8642

Draft
andrew-aitchison wants to merge 4 commits into
cppcheck-opensource:mainfrom
andrew-aitchison:many.unsafe.functions.one.line
Draft

Update tools/MT-Unsafe.py to find all the unsafe functions listed in#8642
andrew-aitchison wants to merge 4 commits into
cppcheck-opensource:mainfrom
andrew-aitchison:many.unsafe.functions.one.line

Conversation

@andrew-aitchison

Copy link
Copy Markdown
Contributor

Update tools/MT-Unsafe.py to find all the unsafe functions listed in man elf_flagelf

  • this man page lists several unsafe functions on one source line.

Update addons/threadsafety.py to include these functions.

@danmar

danmar commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator

I would like that the PR title is not chopped like this.

it wouldn't hurt with a line in releasenotes to mention this improvement.

testing: I am not sure what we can test but feel free to create a regression test if you can. Provide a made up input to MT-Unsafe.py and check that it outputs certain symbols?

@andrew-aitchison andrew-aitchison marked this pull request as draft June 20, 2026 16:09
@andrew-aitchison

Copy link
Copy Markdown
Contributor Author

Title fixed.
The other two suggestions are also good.

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.

2 participants