UNDEFINED BEHAVIOR (EVIL C++)

anything could happen!

👾 Looking for high-quality cheats for your favorite games?
https://cheats.org/cazz

💎 Source code is available for my Patrons!
https://www.patreon.com/cazzwastaken

💎 Join our community over on Discord!
https://discord.gg/xyxbg5VpcG

- X (Twitter): https://twitter.com/cazzwastaken
- GitHub: https://github.com/cazzwastaken
- Email: cazzwastaken@gmail.com

👀 Resources:
- Chris Lattner (2011) - What Every C Programmer Should Know About Undefined Behavior: https://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html
- CVE-2009-1897 (Linux tun bug): https://nvd.nist.gov/vuln/detail/CVE-2009-1897
- Red Hat - Security flaws caused by compiler optimizations: https://www.redhat.com/en/blog/security-flaws-caused-compiler-optimizations
- MIT SOSP (2013) - Towards Optimization-Safe Systems: https://dspace.mit.edu/handle/1721.1/86980
- Raymond Chen (2014) - Undefined behavior can result in time travel: https://devblogs.microsoft.com/oldnewthing/20140627-00/?p=633
- OWASP - Heartbleed Bug: https://owasp.org/www-community/vulnerabilities/Heartbleed_Bug
- The Register - Heartbleed explained: https://www.theregister.com/2014/04/09/heartbleed_explained/
- Chromium Projects - Memory Safety: https://www.chromium.org/Home/chromium-security/memory-safety/
- Microsoft MSRC (2019) - A proactive approach to more secure code: https://msrc.microsoft.com/blog/2019/07/a-proactive-approach-to-more-secure-code
- Sandor Dargo (2025) - C++26: Erroneous Behaviour: https://www.accu.org/journals/overload/33/186/dargo
- Sandor Dargo (2026) - C++26: Reducing undefined behaviour: https://sandordargo.com/blog/2026/07/29/cpp26-reduces-undefined-behaviour

⏰Chapters:
00:00 - Introduction & the vanishing null check
00:49 - The C++ contract & behavior types
01:47 - Common examples of undefined behavior
02:13 - Why does UB exist? (Hardware & speed)
03:13 - How compilers optimize around UB
04:10 - The Linux kernel root exploit (CVE-2009-1897)
05:04 - Cursed optimization: calling uncalled code
05:45 - Real-world security disasters (Heartbleed & UAF)
07:08 - How to detect and prevent UB
08:05 - C++26 and erroneous behavior
08:19 - Summary & conclusion

⚡See More:
→ Learn Game Hacking: https://www.youtube.com/watch?v=3_VfW6bDBdE
→ Reverse Engineering: https://www.youtube.com/watch?v=0_Eif2qGK7I
→ Cheat Engine: https://www.youtube.com/watch?v=lky0-uuB-JE
→ Kernel Driver: https://www.youtube.com/watch?v=n463QJ4cjsU

🌌 Disclaimer:
- This video was created for educational purposes. Receive SMS online on sms24.me

TubeReader video aggregator is a website that collects and organizes online videos from the YouTube source. Video aggregation is done for different purposes, and TubeReader take different approaches to achieve their purpose.

Our try to collect videos of high quality or interest for visitors to view; the collection may be made by editors or may be based on community votes.

Another method is to base the collection on those videos most viewed, either at the aggregator site or at various popular video hosting sites.

TubeReader site exists to allow users to collect their own sets of videos, for personal use as well as for browsing and viewing by others; TubeReader can develop online communities around video sharing.

Our site allow users to create a personalized video playlist, for personal use as well as for browsing and viewing by others.

@YouTubeReaderBot allows you to subscribe to Youtube channels.

By using @YouTubeReaderBot Bot you agree with YouTube Terms of Service.

Use the @YouTubeReaderBot telegram bot to be the first to be notified when new videos are released on your favorite channels.

Look for new videos or channels and share them with your friends.

You can start using our bot from this video, subscribe now to UNDEFINED BEHAVIOR (EVIL C++)

What is YouTube?

YouTube is a free video sharing website that makes it easy to watch online videos. You can even create and upload your own videos to share with others. Originally created in 2005, YouTube is now one of the most popular sites on the Web, with visitors watching around 6 billion hours of video every month.