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…4 min read·Apr 16, 2024----
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…3 min read·Feb 20, 2024--1--1
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…9 min read·Feb 6, 2024--1--1
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…1 min read·Dec 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…4 min read·Nov 21, 2023--1--1
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…13 min read·Oct 26, 2023--1--1
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…17 min read·Oct 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…2 min read·Oct 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…2 min read·Oct 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…3 min read·Sep 12, 2023----