Menu

Fuzzing C Parsers in 1.7 GB RAM on ARM64 PRoot with wrfuzz
📰

Fuzzing C Parsers in 1.7 GB RAM on ARM64 PRoot with wrfuzz

DEV Community: cpp·Mr.Cupcake·8 days ago
#Hd2rulYI
#devtocpp#devto#dev#wrfuzz#mscupcakegkill
Long article (318 words) — no AI summary yet.
Reading 0:00
15s threshold

Source repository by Mr.Cupcake ( mscupcakegkill ): https://gitlab.com/mscupcakegkill/wrfuzz

Running an in-process coverage-guided C/C++ fuzzer inside an Android ARM64 PRoot container with 1.7 GB of RAM rules out standard AddressSanitizer builds immediately because shadow memory reservation fails under constrained virtual address spaces. Over the past few updates to wrfuzz , I reworked the instrumentation, bug detection, and state tracking so it stays fast without external dependencies.

What changed in wrfuzz

8-bit hit-count buckets: Coverage tracking now records logarithmic loop-depth buckets ( 1..8 ) in the existing byte map with zero extra memory overhead.

Gated 128-slot I2S ring buffer + linker --wrap hooks: Intercepts memcmp , strcmp , and strncmp alongside -fsanitize-coverage=trace-cmp only while executing inside fuzz_target , avoiding comparison table pollution.

Trap-mode UBSan + zero-syscall guard-page heap pool ( GUARD_HEAP=1 ): Combines -fsanitize=undefined -fsanitize-trap=undefined with a…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.