u/commandersakiin r/C_Programming • Recommends
Dangerous Optimisations in C (and C++) - Robert C. Seacord
#undefinedbehavior#compileroptimization#softwaresecurity
20K subscribers • 32 videos on Hallway • Conference channel
Advanced. Deep dive for people who know the field.
21K views1 year ago1 recommendation
Systems programmingSecurityC++CCompilers and interpreters
Robert C. Seacord explains how compiler optimizations leveraging undefined behavior can lead to software vulnerabilities and defects.
ACCU Membership: tinyurl.com/ydnfkcyn --- Dangerous Optimizations in C and C++ Programming Languages - Robert C. Seacord - ACCU 2025 --- Increasingly, compiler writers are taking advantage of undefined behaviors in the C and C++ programming languages to improve optimizations. Frequently, these optimizations are interfering with the ability of developers to perform cause-effect analysis on their source code, that is, analyzing the dependence of downstream results on prior results. Consequently, these optimizations are eliminating causality in software and are increasing the probability of software faults, defects, and vulnerabilities. This presentation describes some common optimizations, describes how these can lead to software vulnerabilities, and identifies applicable and practical mitigation strategies. Slides: accu.org/conf-previous/accu2025/ Join think-cell as a C++ Developer and work on cutting-edge challenges with a focus on code excellence, innovation, and working alongside an international team of experts — apply now to be part of a team shaping the future of business presentations. think-cell.com/en/career --- Robert C. Seacord Robert C. Seacord is standardization lead at Woven Planet, where he helps standardize software development practices. Robert is an expert on ISO/IEC JTC1/SC22/WG14, the international standardization working group for the C programming language. He is the author of seven books, including Effective C (No Starch, 2020), The CERT C Coding Standard, Second Edition (Addison-Wesley, 2014), Secure Coding in C and C++, Second Edition (Addison-Wesley, 2013), and Java Coding Guidelines: 75 Recommendations for Reliable and Secure Programs (Addison-Wesley, 2014). He has also published more than 50 papers on software security, component-based software engineering, web-based system design, legacy-system modernization, component repositories and search engines, and user interface design and development. Video Sponsored By JetBrains --- The ACCU Conference is the annual conference of the ACCU membership, but is open to any and all who wish to attend. The tagline for the ACCU is 'Professionalism in Programming', which captures the whole spectrum of programming languages, tools, techniques and processes involved in advancing our craft. While there remains a core of C and C++ - with many members participating in respective ISO standards bodies - the conference, like the organisation, embraces other language ecosystems and you should expect to see sessions on C#, D, F#, Go, Javascript, Haskell, Java, Kotlin, Lisp, Python, Ruby, Rust, Swift and more.The ACCU Conference is a conference by programmers for programmers about programming. Discounted rates for members. ACCU Membership: tinyurl.com/ydnfkcyn 2025 Program: accu.org/conf-previous/accu2025/ accu.org accuconference.org/ mastodon.social/@ACCUConf linkedin.com/showcase/accu-conference/ httpsu/commandersakiin r/C_Programming • Recommends
u/Direct-Fee4474in r/C_Programming • Mentions
On “Why doesn't this code return a Division By Zero error?”