How Not To Code

C, C++, C#, Java bad practices: learn how to make a good code by bad example

Skip to content
  • Home
  • Bug of the month
  • How to use PVS-Studio for Free
  • Free resources
  • About
Search

DuckStation

27.05.202227.05.2022 / hownot2code / Leave a comment

BUG OF THE MONTH | Free of Pointer not at Start of Buffer

Continue reading →

Share with:

  • Twitter
  • Facebook
  • Tumblr
  • Reddit
  • Email
  • Print
  • More
  • LinkedIn
  • Pinterest
  • Skype

Like this:

Like Loading...

Bitwarden

25.05.202227.05.2022 / hownot2code / Leave a comment

BUG OF THE MONTH | Erroneous postfix

Continue reading →

Share with:

  • Twitter
  • Facebook
  • Tumblr
  • Reddit
  • Email
  • Print
  • More
  • LinkedIn
  • Pinterest
  • Skype

Like this:

Like Loading...

Blend2D

29.04.202227.05.2022 / hownot2code / Leave a comment

BUG OF THE MONTH | An always-false expression

Continue reading →

Share with:

  • Twitter
  • Facebook
  • Tumblr
  • Reddit
  • Email
  • Print
  • More
  • LinkedIn
  • Pinterest
  • Skype

Like this:

Like Loading...

Unity

26.04.202227.05.2022 / hownot2code / Leave a comment

BUG OF THE MONTH | Assignment to Variable without Use

Continue reading →

Share with:

  • Twitter
  • Facebook
  • Tumblr
  • Reddit
  • Email
  • Print
  • More
  • LinkedIn
  • Pinterest
  • Skype

Like this:

Like Loading...

Barotrauma

31.03.202227.05.2022 / hownot2code / Leave a comment

BUG OF THE MONTH | Unnecessary actions

Continue reading →

Share with:

  • Twitter
  • Facebook
  • Tumblr
  • Reddit
  • Email
  • Print
  • More
  • LinkedIn
  • Pinterest
  • Skype

Like this:

Like Loading...

Mistakes and suspicious code fragments — or how the static analyzer checked .NET 6

30.03.202229.03.2022 / hownot2code / Leave a comment

Videos that analyze errors in software projects are an excellent opportunity to practice coding and learn from other people’s mistakes. This time we’ll analyze the .NET 6 source code.

Have fun watching this video and coding 🙂

Share with:

  • Twitter
  • Facebook
  • Tumblr
  • Reddit
  • Email
  • Print
  • More
  • LinkedIn
  • Pinterest
  • Skype

Like this:

Like Loading...

Ogre3D

29.03.202227.05.2022 / hownot2code / Leave a comment

BUG OF THE MONTH | Incorrect Calculation

Continue reading →

Share with:

  • Twitter
  • Facebook
  • Tumblr
  • Reddit
  • Email
  • Print
  • More
  • LinkedIn
  • Pinterest
  • Skype

Like this:

Like Loading...

How to make code reliable and secure [The MISRA standard and PVS-Studio]

23.03.202221.03.2022 / hownot2code / Leave a comment

What is the MISRA standard and what is it for? How to secure your code with the use of MISRA and the PVS-Studio static analyzer? In this video, we tried to briefly answer these and other questions.

Have fun watching this video and coding 🙂

Share with:

  • Twitter
  • Facebook
  • Tumblr
  • Reddit
  • Email
  • Print
  • More
  • LinkedIn
  • Pinterest
  • Skype

Like this:

Like Loading...

Vulnerabilities due to XML files processing: XXE in C# applications in theory and in practice

16.03.202231.03.2022 / hownot2code / Leave a comment

How can simple XML files processing turn into a security weakness? How can a blog deployed on your machine cause a data leak? Today we’ll find answers to these questions, learn what XXE is and how it looks like.

Continue reading →

Share with:

  • Twitter
  • Facebook
  • Tumblr
  • Reddit
  • Email
  • Print
  • More
  • LinkedIn
  • Pinterest
  • Skype

Like this:

Like Loading...

An example of undefined behavior caused by absence of return

09.03.202222.03.2022 / hownot2code / Leave a comment

This article contains a very interesting example. The absence of the return statement in a value-returning function leads to undefined behavior. It’s a perfect example of how wrong code can crash one day, even though it could work for many years.

Continue reading →

Share with:

  • Twitter
  • Facebook
  • Tumblr
  • Reddit
  • Email
  • Print
  • More
  • LinkedIn
  • Pinterest
  • Skype

Like this:

Like Loading...

Posts navigation

← Older posts

Check your program and find bugs

Download PVS-Studio

Categories

  • 64-bit issues
  • Development of 64-bit C/C++ applications
  • Bugs in C# projects
  • Bugs in C/C++ projects
  • Java bugs of the month
  • C# bugs of the month
  • C/C++ bugs of the month
  • Quiz
  • Tips and tricks
  • 42 recommendations about coding in C++
Follow How Not To Code on WordPress.com

Recent Posts

  • DuckStation
  • Bitwarden
  • Blend2D
  • Unity
  • Barotrauma

Tags

64bit Apache Bug of the month bugs Bugs in C# projects C# C# bugs of the month C++ C++bugs clang clanguage c language code code quality coding coreclr cpp cppbugs cprogramming Csharp development development guidelines DevOps dotnet embedded evil freebsd fun function gamedev games github haiku information security java Java bugs Knowledge libreoffice linux LLVM masssuppression memory memset microsoft Miranda misra Mozilla Thunderbird nullptr opensource OWASP programming programming language PVS-Studio python Qt Quiz ReactOS Roslyn security SharpDevelop software space static code analysis static code analyzer structure technology Tips and tricks Tizen tutorial type Unreal Engine visualstudio xamarin xenko xnu kernel

RSS Feed

  • RSS - Posts
Blog at WordPress.com.
  • Follow Following
    • How Not To Code
    • Join 330 other followers
    • Already have a WordPress.com account? Log in now.
    • How Not To Code
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
    To find out more, including how to control cookies, see here: Cookie Policy
    %d bloggers like this: