Our website uses cookies to enhance your browsing experience.
Accept
to the top
close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I am interested to try it on the platforms:
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you haven't received our response, please do the following:
check your Spam/Junk folder and click the "Not Spam" button for our message.
This way, you won't miss messages from our team in the future.

>
>
Andrey Karpov

Posts: Andrey Karpov

Mar 07 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...
...
Feb 20 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...
...
Subscribe to the newsletter
Want to receive a monthly digest of the most interesting articles and news? Subscribe!
* By clicking this button you agree to our Privacy Policy statement
Feb 06 2024
Shall we check pointer for NULL before calling free function?
Andrey Karpov
The short answer is no. However, since this question keeps popping up on Reddit, Stack Overflow, and other websites, it's time to address the topic. There are a lot of interesting things to...
...
Dec 19 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...
...
Nov 21 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...
...
Oct 26 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...
...
Oct 18 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...
...
Oct 06 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...
...
Sep 12 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...
...
Common patterns of typos in programming
Andrey Karpov
The developers have an endless amount of ways to make mistakes while writing code. However, sometimes we can find obvious and interesting patterns in how and where developers make mistakes...
...
View more Pagination arrow previous
Showing: - of 616