Chapter 4: Arrays, Strings & Defeating Buffer Overflows
Array-to-pointer decay, NUL-terminated C strings, why `gets`/`strcpy`/`sprintf` cause CVEs, and safe bounded string handling with `snprintf`, `memcpy`, and explicit `(ptr, len)` slices.
Array-to-pointer decay, NUL-terminated C strings, why `gets`/`strcpy`/`sprintf` cause CVEs, and safe bounded string handling with `snprintf`, `memcpy`, and explicit `(ptr, len)` slices.