PVS-Studio 7.07


While production gets suspended and companies close down all over the world, software developers keep working remotely. Our team is no exception, and today we are announcing a new release. This time we've been focusing on enhancing stability.

https://import.viva64.com/docx/blog/0728_Release_7_07/image1.png

Bug fixed and lessons learned

Between our own recent releases, Microsoft has issued a number of updates for Visual C++ with elementary support of C++20 features such as concepts. Usually companies don't rush to update compilers because the freshest versions may have stability issues. But some do, including a few of our users. They encountered the following error:

V003 Unrecognized error found: PtreeCpp11Initializer was constructed incorrectly. Consider inspecting the '__cdecl VivaCore::PtreeCpp11Initializer::PtreeCpp11Initializer(const char *,class VivaCore::Ptree *,class VivaCore::Ptree *)' constructor.

We are glad to announce that this bug is fixed in PVS-Studio 7.07, so you can now enjoy the support of concepts. It should be mentioned, though, that supporting new standards is different with compiler developers from what it is with analyzer developers. It's pretty painless for us, and that bug didn't take long to fix. But we've got to come up with a way to sync our updates with compiler updates in the future.

New diagnostics

In addition to stability improvements and implementing new products (more on this in a second), we implemented several new diagnostics:

  • V1053. Calling the 'foo' virtual function in the constructor/destructor may lead to unexpected result at runtime.
  • V1054. Object slicing. Derived class object was copied to the base class object.
  • V1055. The 'sizeof' expression returns the size of the container type, not the number of elements. Consider using the 'size()' function.
  • V2573. MISRA. Identifiers that start with '__' or '_[A-Z]' are reserved.

SonarQube plugin

A long time ago, we released a plugin for SonarQube with Windows and Linux support. It had no macOS support because there was no demand for it until recently, but now that people started asking for it, we've added that too. See the updated documentation.

C# analyzer for Linux and macOS

Remember I mentioned the new products? These are a C# analyzer for Linux and macOS and a JetBrains Rider plugin, neither of which, unfortunately, will be available in this new release, despite our plans. But we did a big job developing them, and they are ready now. About a month ago, we announced Beta testing – we are going to launch it right after the release, so if you haven't applied yet, you still can do so.

Other updates

  • Added support of the TeamCity CI server to the utility for converting PVS-Studio's XML reports (PlogConverter).
  • Added flags --selectProjects / --excludeProjects to select individual projects for analysis in the command line checker for Visual Studio \ MSBuild projects (PVS-Studio_Cmd.exe).


Use PVS-Studio to search for bugs in C, C++, C# and Java

We offer you to check your project code with PVS-Studio. Just one bug found in the project will show you the benefits of the static code analysis methodology better than a dozen of the articles.

goto PVS-Studio;



Bugs Found

Checked Projects
409
Collected Errors
14 072
This website uses cookies and other technology to provide you a more personalized experience. By continuing the view of our web-pages you accept the terms of using these files. If you don't want your personal data to be processed, please, leave this site. Learn More →
Accept