Nous utilisons des cookies pour améliorer votre expérience de navigation. En savoir plus
Accepter
to the top
>
>
Posts: #Cpp

Posts: # Cpp

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...
...
04 Mar 2024
Let's check Blender
Alexey Gorshkov
The PVS-Studio headquarters: "Time flies by so fast... This year, on January 2, Blender turned 30 years old! It feels like just yesterday we published an article on checking the project... What...
...
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...
...
01 Fév 2024
Qt Creator* in search of Qt Creator bugs
Mikhail Gelvikh
Strange things happen: for almost a year, PVS-Studio has a plugin for Qt Creator. However, we haven't yet published a good old article with the IDE check. We've made amends and invite you to see...
...
26 Jan 2024
Off we go! Digging into the game engine of War Thunder and interviewing its devs
Anton Tretyakov
As Yuri Gagarin once said, "In the future, we will fly, we will fly a lot". To some extent, Gaijin's Dagor Engine makes these flights possible. Let's get a glimpse of the engine's innards and...
...
20 Déc 2023
A hard quiz to crack for C++ programmers by Sergei Kushnirenko
Boris Novoselov
Hello, fun seekers and brainstorming enthusiasts! It's the PVS-Studio team. Now you have an opportunity to pass a new awesome quiz on our website. It has challenging questions from the...
...
19 Déc 2023
New Year's Eve show: Top 10 errors in C and C++ projects in 2023
Alexey Gorshkov
It's December, the first snow has already fallen, and it means New Year's Eve is around the corner. Ahead of the holidays, we'll show you the most interesting errors found in the code of the...
...
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...
...
10 Déc 2023
30 years of DOOM: new code, new bugs
Alexey Smolskas
Today marks the 30th anniversary of the first game in the DOOM series! We couldn't miss the event. To honor the occasion, we decided to see what the code of this legendary game looks like after...
...
View more Pagination arrow previous
Showing: - of 625