Your compiler can undo your security checks

Cover art for Your compiler can undo your security checks

TL;DR: Audit the optimized binary you actually ship, not the source you wrote, because the compiler is allowed to remove your safety code. Chris Domas shows how legal compiler optimizations strip out the protections you carefully wrote. You can write careful C, follow every best practice, and still ship a vulnerable binary. The processor runs what the compiler emitted, not what you typed.

DavidbombalSep 4, 2026

From · · · 1m 30s

TL;DR: Your compiler can undo your security checks

Chris Domas shows how legal compiler optimizations strip out the protections you carefully wrote.

Audit the optimized binary you actually ship, not the source you wrote, because the compiler is allowed to remove your safety code. Chris Domas shows how legal compiler optimizations strip out the protections you carefully wrote. You can write careful C, follow every best practice, and still ship a vulnerable binary. The processor runs what the compiler emitted, not what you typed.

  • The CPU never reads your code
  • Optimizations delete protections
  • Blame the abstract machine
  • Byte counts decide your fate

Read the story version — the same reporting as a swipeable deck of 6 cards.

Read the original on Davidbombal

How we make summaries

React

Sign in to react and comment.

Comments (0)

Life is short. Keep it sweet. Respect others' opinions and be kind!

    Recommended next

    More decks on secure coding and related topics.