Skip to content
systemcoding.dev

Tag

intermediate

255 posts

Flat illustration of a shield with a lock, a key and a password field, with the OWASP, Linux and Rust logos.
Security

Build and Minimize a Fuzzing Corpus

Collect seeds, merge and shrink a corpus with libFuzzer -merge=1 and afl-cmin, replay it in CI with -runs=0, and keep it clean of crashes and private data.

8 min read
Flat illustration of parallel threads meeting at a mutex, with the C, Rust and Erlang logos.
Concurrency

Use OpenMP Tasks for Recursive Parallelism

Parallelize recursive C code such as Fibonacci and tree walks with OpenMP tasks, taskwait and a cutoff, and see why a task per call runs slower than serial.

7 min read
Flat illustration of logic gates wired into a small circuit, with the Haskell, KiCad and SparkFun logos.
Hardware

Write an I2C Master State Machine in Verilog

Build an I2C master in Verilog that writes one byte to a 7-bit address with quarter-bit timing, open-drain lines and ACK checking, tested against a slave model.

9 min read
Flat illustration of a debugger stopped at a breakpoint beside the register values, with the C, GNU and LLVM logos.
Security

Fuzz a Binary File Parser With AFL++

Build a file parser with afl-clang-fast and AddressSanitizer, seed and run afl-fuzz 4.x, read the crashes directory and shrink a crash with afl-tmin.

8 min read