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.
| Risk | Rule |
|---|---|
| Fuzzing and crash tests hit real files | Run fuzzers on your own parser and your own corpus only, in a throwaway directory. |
| Untrusted code runs on your machine | Build third-party libraries in a container the first time. Pin versions with a lockfile or a vcpkg baseline. |
| Undefined behaviour corrupts the system | Run crash experiments as an unprivileged user in a VM, and never as root. |
| Core dumps hold data | A core file contains memory. Use fake data and never commit one. |