BTCPay Server: top 10 bugs in Bitcoin payment processor code https://pvs-studio.com/en/blog/posts/csharp/1051/
PVS-Studio
BTCPay Server: top 10 bugs in Bitcoin payment processor code
Our company talks a lot about code quality. While some of the projects chosen for code audits may not be that familiar to our readers, I′m sure many of them use finance apps. Our readers ma…
RavenDB and PVS-Studio: win-win collaboration https://pvs-studio.com/en/blog/posts/csharp/1052/
PVS-Studio
RavenDB and PVS-Studio: win-win collaboration
This is a brief story of how PVS-Studio collaborated with RavenDB. PVS-Studio is a static code analyzer. RavenDB is an open-source database. How can searching for errors in one project bene…
60 terrible tips for a C++ developer https://pvs-studio.com/en/blog/posts/cpp/1053/
PVS-Studio
60 terrible tips for a C++ developer
In this article, you′re going to find 60 terrible coding tips — and explanations of why they are terrible. It′s a fun and serious piece at the same time. No matter how terrible these tips look, they...
XSS vulnerability in the ASP.NET application: examining CVE-2023-24322 in CMS mojoPortal https://pvs-studio.com/en/blog/posts/csharp/1054/
PVS-Studio
XSS vulnerability in the ASP.NET application: examining CVE-2023-24322 in mojoPortal CMS
In this article, we will thoroughly examine the XSS vulnerability in a CMS written in C#. Let′s recall the theory, figure out how the security defect looks from a user′s perspective and in code, and...
PVS-Studio 7.25: support for latest versions of QtCreator, Rider, and more https://pvs-studio.com/en/blog/posts/1055/
PVS-Studio
PVS-Studio 7.25: support for latest versions of Qt Creator, Ride…
PVS-Studio 7.25 has been released. In this version, we implemented the support of Qt Creator 10 and Rider 2022.2.3 (and higher), updated the libraries used by the analyzer, enhanced the doc…
Top 3 open-source games written in C#: searching for bugs https://pvs-studio.com/en/blog/posts/csharp/1056/
PVS-Studio
Top 3 open-source games written in C#: searching for bugs
There are a lot of fantastic games, but few of them are open source. In this article, we will examine the most curious bugs found in the source code of three best, to my mind, open-source games...
Examining suspicious code fragments in AWS SDK .NET https://pvs-studio.com/en/blog/posts/csharp/1057/
PVS-Studio
Examining suspicious code fragments in AWS SDK for .NET
Today we are dissecting AWS SDK for .NET. We will look at suspicious code fragments, figure out what′s wrong with them, and try to reproduce some of the errors. Make yourself a cup of coffe…
Heroes of Code and Magic: VCMI game engine analysis https://pvs-studio.com/en/blog/posts/cpp/1058/
PVS-Studio
Heroes of Code and Magic: VCMI game engine analysis
Sometimes you might wish to feel nostalgic and play your favorite old game, but certain things in such games may seem outdated. So, to breathe new life into an old project, some enthusiasts set the...
Ryujinx: re-checking the Nintendo Switch emulator using PVS-Studio https://pvs-studio.com/en/blog/posts/csharp/1059/
PVS-Studio
Ryujinx: re-checking the Nintendo Switch emulator using PVS-Stud…
Nintendo Switch′s popularity hasn′t waned, and with exclusive games winning awards, the desire to play them is only growing. However, not everyone has the opportunity to try out this portab…
Does C# always have boxing with string concatenation and interpolation? https://pvs-studio.com/en/blog/posts/csharp/1060/
Analysis of suspicious code fragments in MassTransit https://pvs-studio.com/en/blog/posts/csharp/1061/
PVS-Studio
Analysis of suspicious code fragments in MassTransit
MassTransit is an open-source distributed application framework for .NET. In this article, we′ll discuss some issues in its source code. A static analyzer will help us to identify them. Enjoy :).
DefectDojo and PVS-Studio: tracking errors and vulnerabilities https://pvs-studio.com/en/blog/posts/1062/
PVS-Studio
DefectDojo and PVS-Studio: tracking errors and vulnerabilities
How to simplify the process of bug fixing and prevent vulnerable code from being released? Use quality control tools. We will use PVS-Studio to search for errors and vulnerabilities, and DefectDojo...
PVS-Studio 7.26: running analysis in VS Code and Qt Creator, integration with DefectDojo, and more https://pvs-studio.com/en/blog/posts/1063/
PVS-Studio
PVS-Studio 7.26: running analysis in VS Code and Qt Creator, integration with DefectDojo, and more
PVS-Studio 7.26 has been released. Now you can run the analysis in plugins for VS Code and Qt Creator; upload the analysis results to DefectDojo, and more. In this note, we′ll take a closer look at...
Common patterns of typos in programming https://pvs-studio.com/en/blog/posts/cpp/1064/
PVS-Studio
Common patterns of typos in programming
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. Let′s...
PVS-Studio vs CodeLite: a battle for the perfect code https://pvs-studio.com/en/blog/posts/cpp/1065/
PVS-Studio
PVS-Studio vs CodeLite: a battle for the perfect code
How to improve the quality and reliability of a codebase? One of the answers to this question is to use static analysis. In this article, we are going to check how this methodology can impr…
Oh my C! How they wrote code back in the Quake days https://pvs-studio.com/en/blog/posts/cpp/1066/
PVS-Studio
Oh my C! How they wrote code back in the Quake days
In the words of Mr. John Carmack, Focus is a matter of deciding what things you′re not going to do. Taking inspiration from this quote, let′s not waste any time and delve into analyzing the code of...
Checking the GCC 13 compiler with the help of PVS-Studio https://pvs-studio.com/en/blog/posts/cpp/1067/
PVS-Studio
Checking the GCC 13 compiler with the help of PVS-Studio
I′ve been looking for a challenge to put the PVS-Studio analyzer through its paces, and that′s why I chose GCC, an open-source compiler collection. It′s not the first time we check this pro…
Simple, yet easy-to-miss errors in code https://pvs-studio.com/en/blog/posts/cpp/1068/
PVS-Studio
Simple, yet easy-to-miss errors in code
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 e…
Bug detection in Unreal Engine projects https://pvs-studio.com/en/blog/posts/cpp/1069/
PVS-Studio
Bug detection in Unreal Engine projects
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 y…