New PVS studio scan | Haiku Project


#1

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.


This is a companion discussion topic for the original entry at https://www.haiku-os.org/blog/pulkomandy/2019-07-27_new_pvs_studio_scan/

#2

The bugs in software is the reality of software development and one should not be ashamed of it. The only difference is that some companies hide them while other organizations fix them. Such scans help Haiku to become much more stable OS, which is happening especially in recent Haiku history.


#3

Agreed, additionally some issues are only potential issues (aka possible false positives).
Redundant checks or “always true conditionals” were already optimized by the compiler, it’s important not to add new bugs when fixing these…