Closed telans closed 3 years ago
So it looks like clang 12's static analyzer is no better than gcc 11's. Which, sad to say, is basically useless at this version.
Out of the four issues you listed:
dir
is checked before entering the loop, and not assigned afterwardsmain()
gets called by something other than glibc's entry code
Static analysis through
scan-build
and Clang/LLVM12.0.0-rc1
:compsize-scan-build.tar.gz
See the attached file/html pages for an interactive view of function paths taken (or just run
scan-build -V make
with alpha checkers yourself). Not sure if any of these are actually issues but I thought you may be interested.