knaxuslearn · build · ship

Roadmaps / C++ / Setup and lab safety

Read first

Setup and lab safety

You need a Linux machine or VM (a laptop with 16 GB of RAM or more), a recent GCC and Clang, CMake and Ninja, perf, Valgrind or an equivalent, Git and Docker. Everything is free. Linux gives you perf and the sanitizers with the least friction; macOS works for Checkpoints 1, 2 and 4 with Instruments in place of perf.

RiskRule
Fuzzing and crash tests hit real filesRun fuzzers on your own parser and your own corpus only, in a throwaway directory.
Untrusted code runs on your machineBuild third-party libraries in a container the first time. Pin versions with a lockfile or a vcpkg baseline.
Undefined behaviour corrupts the systemRun crash experiments as an unprivileged user in a VM, and never as root.
Core dumps hold dataA core file contains memory. Use fake data and never commit one.