What's new in C# 11: overview https://pvs-studio.com/en/blog/posts/csharp/1002/
PVS-Studio
What′s new in C# 11: overview
C# 11 is coming, so we′re going to explore its new features in detail. You may find these new features pretty curious even though there are not that many of them. Today let′s take a closer look at...
Examples of errors that PVS-Studio found in LLVM 15.0 https://pvs-studio.com/en/blog/posts/cpp/1003/
PVS-Studio
Examples of errors that PVS-Studio found in LLVM 15.0
Compilers are evolving: they issue more and more warnings. Do developers still need to use static code analyzers like PVS-Studio? Yes, because analyzers are evolving too. In this article yo…
0,1,2, Freddy came for Blender https://pvs-studio.com/en/blog/posts/cpp/1004/
PVS-Studio
0,1,2, Freddy came for Blender
This article could have been named How PVS-Studio prevents rash code changes, example N7. However, naming articles like that becomes boring. So today Freddy Krueger′s name is in the title, …
How we were looking for a bug in PVS-Studio or 278 GB of log files https://pvs-studio.com/en/blog/posts/cpp/1005/
PVS-Studio
How we were looking for a bug in PVS-Studio or 278 GB of log fil…
Here is an interesting story of how our team were looking for a bug in the PVS-Studio analyzer. Well, we make mistakes too. However, we are ready to roll up our sleeves and dive deep into t…
Lifetime extension of temporary objects in C++: common recommendations and pitfalls https://pvs-studio.com/en/blog/posts/cpp/1006/
PVS-Studio
Lifetime extension of temporary objects in C++: common recommendations and pitfalls
After reading this article, you will learn the following: ways to extend the lifetime of a temporary object in C++, various tips and tricks; pitfalls of the lifetime extension that a C++ programmer...
Lifetime extension of temporary objects in C++: common recommendations and pitfalls https://pvs-studio.com/en/blog/posts/cpp/1006/
PVS-Studio
Lifetime extension of temporary objects in C++: common recommendations and pitfalls
After reading this article, you will learn the following: ways to extend the lifetime of a temporary object in C++, various tips and tricks; pitfalls of the lifetime extension that a C++ programmer...
Catastrophic backtracking: how can a regular expression cause a ReDoS vulnerability? https://pvs-studio.com/en/blog/posts/csharp/1007/
PVS-Studio
Catastrophic backtracking: how can a regular expression cause a ReDoS vulnerability?
Regular expressions come in handy when you need to search for and replace text. However, in some cases, they may cause the system to slow down or even make vulnerable to ReDoS attacks.
A software bug captured Apple and other huge companies https://pvs-studio.com/en/blog/posts/1008/
PVS-Studio
A software bug captured Apple and other huge companies
We collected some hot stories about programming errors for you to have a little fun and learn something new. Keep reading to find out how one programmer broke the Internet by deleting a tin…
How has LINQ performance enhanced in .NET 7? https://pvs-studio.com/en/blog/posts/csharp/1011/
PVS-Studio
How has LINQ performance enhanced in .NET 7?
New version of .NET enhanced the performance of the Min, Max, Average and Sum methods for arrays and lists. How much do you think their execution speed has increased? 2x or 5x? No, they got…
Why are you doing my job? Types of people who don't write to support https://pvs-studio.com/en/blog/posts/1012/
PVS-Studio
Why are you doing my job? Types of people who don′t write to sup…
The title of an article should be catchy and hint at its contents. So, over time a user support specialist might collect questions to the users. One of them looks like this: Why are you doi…
PVS-Studio: 2 features for a quick start https://pvs-studio.com/en/blog/posts/1013/
PVS-Studio
PVS-Studio: 2 features for a quick start
In this note I′ll share with you some tips on how to easily start using PVS-Studio. Let′s explore these two use cases: when you try the analyzer for the first time and when you integrate it…
PVS-Studio and RPCS3: the best warnings in one click https://pvs-studio.com/en/blog/posts/cpp/1014/
PVS-Studio
PVS-Studio and RPCS3: the best warnings in one click
Best Warnings — the analyzer′s mode that displays 10 most interesting warnings in the output window. We invite you to take a look at the updated Best Warnings mode on the example of the RPC…
.NET 7: suspicious places and errors in the source code https://pvs-studio.com/en/blog/posts/csharp/1015/
PVS-Studio
.NET 7: suspicious places and errors in the source code
.NET 7 has been released! It′s time for us to dig into its source code and start looking for errors and strange code fragments. In this article, you′ll see comments on our findings from the…
PVS-Studio 7.22: Visual Studio Code, Qt Creator, .NET 7 https://pvs-studio.com/en/blog/posts/1016/
PVS-Studio
PVS-Studio 7.22: Visual Studio Code, Qt Creator, .NET 7
PVS-Studio 7.22 has been released. It includes plugins for Visual Studio Code and Qt Creator, support of .NET 7 projects analysis, enhanced Best Warnings filter and new diagnostic rules. Le…
Help the compiler, and the compiler will help you. Subtleties of working with nullable reference types https://pvs-studio.com/en/blog/posts/csharp/1017/
PVS-Studio
Help the compiler, and the compiler will help you. Subtleties of working with nullable reference types in C#
Nullable reference types appeared in C# 3 years ago. By this time, they found their audience. But even those who work with this beast may not know all its capabilities. Let′s figure out how to work...
Christmas holidays with PVS-Studio https://pvs-studio.com/en/blog/posts/1018/
PVS-Studio
Christmas holidays with PVS-Studio
Christmas holidays are the most beloved and cherished ones all over the world. Gifts, decorations, family and friends all gathered together — these are the essentials of Christmas and New Y…
PVS-Studio and protobuf-net: best warnings are one click away https://pvs-studio.com/en/blog/posts/csharp/1019/
PVS-Studio
PVS-Studio and protobuf-net: best warnings are one click away
Let′s delve into best practice of getting acquainted with PVS-Studio. We′ll show you a quick start of working with the analyzer using protobuf-net as an example.
Top 10 bugs found in C# projects in 2022 https://pvs-studio.com/en/blog/posts/csharp/1020/
PVS-Studio
Top 10 bugs found in C# projects in 2022
In 2022, the PVS-Studio developers wrote lots of articles where they described bugs found in open-source projects. Now it′s time to choose the most interesting ones.