Update tools/MT-Unsafe.py to find all the unsafe functions listed in man elf_flagelf - #8642
Conversation
|
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? |
|
Title fixed. |
I have an input for MT-Unsafe.py and an expected output. |
man elf_flagelf Also update addons/threadsafety.py to include these functions. This man page lists several unsafe functions on one line.
Includes expected output.
619935e to
c28bcf1
Compare
that is correct. I suggest some pytest testing in addons/test folder. there is no threadsafety_test.py there now which I spontanously feel is weird. but there is a threadsafety folder there I don't know how that is used. https://github.com/cppcheck-opensource/cppcheck/tree/main/addons/test |
Hmm. Looks like I did that. I'll have to figure out what I was thinking ... |
Update tools/MT-Unsafe.py to find all the unsafe functions listed in
man elf_flagelfUpdate addons/threadsafety.py to include these functions.