Skip to content
C
-
C
C Undefined Behavior: Why -O0 and -O2 Disagree
C lecture 5: signed overflow, a vanishing loop, strict aliasing, uninitialized reads and a deleted NULL check, run at -O0 and -O2 with UBSan reports.
-
C
C Strings, Structs and Buffer Overflows Under ASan
C lecture 4 on Apple clang 21: the NUL terminator, strcpy/strncpy/snprintf traps, struct padding via offsetof, and one stack overflow caught three ways.
-
C
C Pointers and malloc: Use-After-Free, Leaks and ASan
C lecture 3, run on Apple clang 21: & and *, malloc/free, use-after-free and double free in ASan, leaks --atExit on macOS, and realloc growth measured.
-
C
C Performance, Makefiles and lldb: Measured on macOS
C lecture 6: row vs column traversal (54x), array-of-structs vs struct-of-arrays, a Makefile with header dependencies, and a crash traced with lldb.
-
C
C Loops, Functions and Arrays: Off-by-One and ASan
C lecture 2, run on Apple clang 21: if, loops, functions, arrays, = vs == warnings, array decay and the sizeof trap, and an off-by-one caught by ASan.
-
C
C Basics: First Program, Types, printf and Warnings
C lecture 1, run on Apple clang 21: first compile in 5 minutes, -Wall -Wextra warnings, int sizes and overflow, printf mismatches, integer division.
↑