new PVS studio scan
PVS studio has just published a series of 3 articles looking over errors and bugs they identified in our sourcecode. PVS is a code static analysis tool that identifies code likely to be incorrect.
They had already run a similar scan back in 2015. At the time, their tools ran on Windows only which had made this quite a challenge for them. They are now more Linux friendly, so it was much easier for them to perform the scan.
Haiku developers were given early access to the scan results and have already started fixing some of the problems found in this report. There are still more to go over and investigate, however.
It isn’t always nice to see how many small issues like this are present in the Haiku codebase. It turns out some of them are from code we imported from NetBSD (ftp client, which has been replaced by a more up to date version from NetBSD, DNS resolver, …) or inherited from BeOS (in Tracker and Deskbar code).
That being said, we have our part of responsibility on this as well.
You can help investigate the issues by looking at the complete report. Issues marked in green have already been fixed, but as you can see there is still a lot to investigate.
PVS has offered to run a new scan after one or two months, to see how well we did at cleaning up all of this. We are also discussing ways to setup a more automated and frequent scan to avoid these errors accumulating again.
Thanks to PVS for providing their tool to open source projects in this way!
- Update #3 from the Promotion Team
- GSOC 2021:Progress Report of Improvements to clang-format
- GSoC 2021 Progress Update 3: Coding style checker bot for Gerrit
- Haiku activity report - June 2021
- GSoC 2021 Progress Update 2: Modernizing Cardie (Caya)
- GSoC 2021: XFS support progress update
- GSoC 2021 Progress Update 2: Coding style checker bot for Gerrit
- Translation Work Needed in Preparation for Beta 3
- GSoC 2021 Progress Update 1: Modernizing Caya
- GSoC 2021 Progress Update 1: Coding style checker bot for Gerrit