Open rusty-snake opened 3 years ago
Is anyone already working on this? I think I managed to fix some of them; might submit a PR eventually.
I wanted to have a look at it, but didn't find the time so far. Please go ahead. :)
@kmk3 Feel free to open PRs for the ones you already worked on. No need to fix all of them at once. Then others could already have a look at the remaining ones.
@reinerh commented on Oct 18:
@kmk3 Feel free to open PRs for the ones you already worked on. No need to fix all of them at once. Then others could already have a look at the remaining ones.
Alright, I'll try to wrap up the branch and open a PR. I have indeed not fully fixed all of them; I'll just send the ones I'm more sure about in the PR.
Sorry for the delay; I've opened #4652 with just the more trivial fixes to get some basic feedback. I have a few more fixes mostly ready.
Insteresting, ./configure --enable-analyzer && en_US-locale make
finds only https://github.com/netblue30/firejail/issues/4592#issuecomment-937507639 while CFLAGS=-fanalyzer ./configure && en_US-locale CFLAGS=-fanalyzer make
finds a few [CWE-401] [-Wanalyzer-malloc-leak]
in addition. Any my experimental meson setup finds even [CWE-415] [-Wanalyzer-double-free]
.
edit: this explains it
https://github.com/netblue30/firejail/blob/d04f63cba2ebfcfc4c3b99ac24e39c2b0ce37e1f/configure.ac#L45
gcc --version
: gcc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1)
@rusty-snake Could you please share [CWE-415] [-Wanalyzer-double-free]
?
[CWE-415] [-Wanalyzer-double-free]
@rusty-snake Thank you. I think it is a false positive, too, but maybe someone else wants to confirm.
GitHub seems to have updated CodeQL.
https://github.com/netblue30/firejail/security/code-scanning
Can someone have a look whether this are false-positives or unproblematic alerts. @netblue30 @smitsohu @reinerh