Nous utilisons des cookies pour améliorer votre expérience de navigation. En savoir plus
Accepter
to the top
>
>
Articles: Andrey Karpov

Posts: Andrey Karpov

16 Avr 2024
Static analyzer nudges you to write clean code
Andrey Karpov
Static analyzers help not only detect errors and security flaws but also make code cleaner. Analyzers find redundant checks, duplicate actions, and other anomalies — they give the opportunity to...
...
07 Mar 2024
Parable of null pointer for indolent C programmers
Andrey Karpov
I agree that a memory allocation error with malloc is quite rare case, and after such an error it's most likely that the program can't fully function. But I'm bewildered how programmers...
...
Subscribe to the newsletter
Want to receive a monthly digest of the most interesting articles and news? Subscribe!
20 Fév 2024
Why it is bad idea to check result of malloc call with assert
Andrey Karpov
The pointer returned by malloc needs to be checked before use. Using the assert macro to check the pointer would be wrong. In this article, we'll investigate why this is a bad programming...
...
06 Fév 2024
Doit-on vérifier le pointeur pour NULL avant d'appeler la fonction free ?
Andrey Karpov
La réponse brève est non. Cependant, cette question apparaît régulièrement sur Reddit, Stack Overflow et d'autres sites web, il est temps d'aborder le sujet. Il y a beaucoup de choses prenantes...
...
19 Déc 2023
Breaking down the C++ quiz by Sergei Kushnirenko
Andrey Karpov, Mikhail Gelvikh, Sergei Kushnirenko
The PVS-Studio team along with Sergei Kushnirenko prepared a quiz based on his publications. Take the quiz, challenge your focus and coding skills while looking for errors in the C++ code...
...
21 Nov 2023
What C++, C# or Java article would you like to read on our blog?
Andrey Karpov
Our team regularly posts educational articles, describes errors in open-source projects, and makes entertaining content. So, you can find many curious and useful things there. However, aren't...
...
26 Oct 2023
Typos, null pointers, and treacherous TAB: 33 fragments in the GTK library
Andrey Karpov
GTK is a popular open-source framework for creating graphical user interfaces. The project is interesting to check with the PVS-Studio analyzer. Especially since the last time we checked it was...
...
18 Oct 2023
FreeCAD and undefined behavior in C++ code: meditation for developers
Andrey Karpov
Examining the project code with the help of a static analyzer, sometimes we wonder how the error appeared and why no one noticed it. Would you like to see such an example? If so, welcome to read...
...
06 Oct 2023
Bug detection in Unreal Engine projects
Andrey Karpov
The PVS-Studio team started adding new diagnostic rules that detect errors typical for Unreal Engine projects. However, we need some help from the game development community. Please share...
...
12 Sep 2023
Simple, yet easy-to-miss errors in code
Andrey Karpov
A 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 note, and why developers don't notice this simple...
...
View more Pagination arrow previous
Showing: - of 647