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.

@andrew-aitchison

Copy link
Copy Markdown
Contributor Author

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?

I have an input for MT-Unsafe.py and an expected output.
testrunner is probably not a good place to run a python script; where should I add this to the regression tests ?

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

Labels

None yet

2 participants