Andrey KarpovStatic analyzer nudges you to write clean codeStatic analyzers help not only detect errors and security flaws but also make code cleaner. Analyzers find redundant checks, duplicate…Apr 16Apr 16
Andrey KarpovWhy it is bad idea to check result of malloc call with assertThe pointer returned by malloc needs to be checked before use. Using the assert macro to check the pointer would be wrong. In this article…Feb 201Feb 201
Andrey KarpovShall we check pointer for NULL before calling free function?The short answer is no. However, since this question keeps popping up on Reddit, Stack Overflow, and other websites, it’s time to address…Feb 61Feb 61
Andrey KarpovC++ quiz by PVS-Studio and Sergei KushnirenkoThe PVS-Studio team created a new C++ quiz! But this time we collabed with Sergei Kushnirenko: the questions for this quiz are errors he…Dec 22, 2023Dec 22, 2023
Andrey KarpovWhat C++, C# or Java article would you like to read on our blog?Our team regularly posts educational articles, describes errors in open-source projects, and makes entertaining content. So, you can find…Nov 21, 20231Nov 21, 20231
Andrey KarpovTypos, null pointers, and treacherous TAB: 33 fragments in the GTK libraryGTK is a popular open-source framework for creating graphical user interfaces. The project is interesting to check with the PVS-Studio…Oct 26, 20231Oct 26, 20231
Andrey KarpovFreeCAD and undefined behavior in C++ code: meditation for developersExamining the project code with the help of a static analyzer, sometimes we wonder how the error appeared and why no one noticed it. Would…Oct 18, 2023Oct 18, 2023
Andrey KarpovPVS-Studio: static code analyzerPVS-Studio is a static code analyzer designed to detect errors and potential vulnerabilities in the C, C++, C#, and Java code. It is an…Oct 10, 2023Oct 10, 2023
Andrey KarpovBug detection in Unreal Engine projectsThe PVS-Studio team started adding new diagnostic rules that detect errors typical for Unreal Engine projects. However, we need some help…Oct 6, 2023Oct 6, 2023
Andrey KarpovSimple, yet easy-to-miss errors in codeA user wrote to our support about a strange false positive issued by the PVS-Studio analyzer. Let’s see why this case deserves a separate…Sep 12, 2023Sep 12, 2023