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

C/C++ bugs of the month

Flipper Zero

28.12.202125.05.2022 / hownot2code / Leave a comment

BUG OF THE MONTH | Extra return

Continue reading →

Share with:

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

Like this:

Like Loading...

TheXTech

23.11.202114.12.2021 / hownot2code / Leave a comment

BUG OF THE MONTH | Problems with conditional operators

Continue reading →

Share with:

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

Like this:

Like Loading...

LLVM 13.0.0

12.10.202114.12.2021 / hownot2code / Leave a comment

BUG OF THE MONTH | trying to create a 64-bit value from two 32-bit values

Continue reading →

Share with:

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

Like this:

Like Loading...

zlib

31.08.202106.09.2021 / hownot2code / Leave a comment
File:Zlib 3D green.svg - Wikimedia Commons

BUG OF THE MONTH | Dereferencing of the null pointer

Continue reading →

Share with:

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

Like this:

Like Loading...

BitTorrent

02.08.202106.09.2021 / hownot2code / Leave a comment

BUG OF THE MONTH | Using memset to clear memory

Continue reading →

Share with:

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

Like this:

Like Loading...

Storm Engine

01.07.202106.09.2021 / hownot2code / Leave a comment

BUG OF THE MONTH | new[] – delete Error

Continue reading →

Share with:

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

Like this:

Like Loading...

FCEUX

03.06.202106.09.2021 / hownot2code / Leave a comment

BUG OF THE MONTH | Buffer overflow

Continue reading →

Share with:

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

Like this:

Like Loading...

XNU, the MacOS Kernel

31.03.202107.09.2021 / hownot2code / Leave a comment

BUG OF THE MONTH | Undefined behavior

Continue reading →

Share with:

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

Like this:

Like Loading...

Qt 6

02.03.202107.09.2021 / hownot2code / Leave a comment

BUG OF THE MONTH | Error Status Misinterpreted

Continue reading →

Share with:

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

Like this:

Like Loading...

Espressif IoT Development Framework

31.01.202107.09.2021 / hownot2code / Leave a comment

BUG OF THE MONTH | || operator instead of &&

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

  • Mistakes and suspicious code fragments — or how the static analyzer checked .NET 6
  • How to make code reliable and secure [The MISRA standard and PVS-Studio]
  • Vulnerabilities due to XML files processing: XXE in C# applications in theory and in practice
  • An example of undefined behavior caused by absence of return
  • How PVS-Studio prevents rash code changes, example N2

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...
 

    loading Cancel
    Post was not sent - check your email addresses!
    Email check failed, please try again
    Sorry, your blog cannot share posts by email.
    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: