Re:Counting Bugs in Windows Calculator
by geofft on Wednesday March 13, 2019 @01:23AM
(#19375957)
Is this PVS-Studio blogspam? They're always so proud of being able to detect the same things gcc/clang -Wall -Wextra detects.
[ Parent
| on HN ]
seems so: https://www.viva64.com/en/b/0615/
Re:Counting Bugs in Windows Calculator
by AndreyKarpov on Wednesday March 13, 2019 @01:45PM
(#19381337)
PVS-Studio vs Compilers:
Clang: https://www.viva64.com/en/b/0108/ , https://www.viva64.com/en/b/0155/ , https://www.viva64.com/en/b/0446/
Those seem like potential bugs in GCC/Clang - that doesn't say whether GCC compiled with GCC or Clang compiled with Clang would produce the same warnings. Does GCC compile cleanly with gcc -Wall -Wextra -Werror?
Do you have Clang tests which are more recent than 8 years ago? Or, especially, any which were validated and accepted upstream?
Re:Counting Bugs in Windows Calculator
by AndreyKarpov on Thursday March 14, 2019 @12:58PM
(#19391096)
The last check was in 2016: https://www.viva64.com/en/b/0446/ . Yes, it was few years ago because we were not interested in writing the same articles again and again. There are a lot of other interesting projects in the world: https://www.viva64.com/en/inspections/ . I also want to note that you assume that Clang was worse than PVS-Studio long time ago but now it can catch up. To that, I will say that all these years we’ve been working on analyzer development :). By the way, here is where you can read about the way it works: "Technologies used in the PVS-Studio code analyzer for finding bugs and potential vulnerabilities" - https://www.viva64.com/en/b/0592/
More simply, I'm just curious about what, as a developer in 2019, would be the selling point for using it if you were on a project which was relatively clean using Clang's warnings and static analysis toolchain, flawfinder, etc.