Artifact 6025ba7aa0d8c01cfcecd4c80996c6d9d30dfd9ed64322bac4c62990752e2ab2:
- File
fuzz/fuzz_extract.c
— part of check-in
[e827ba9421]
at
2026-11-10 03:43:25
on branch fuzz
— Fuzz the parsers and run the suite under sanitizers
make sanitize runs every test under AddressSanitizer and UBSan, and make fuzz runs libFuzzer on redaction, transcript lines, wiki pages and technotes, checking properties as well as crashes. They found real bugs, fixed here: a token glued to another survived redaction, redaction was not idempotent around Doppler output and URL credentials, and a Doppler rule matched its own marker. Two findings are in libfossil and are reported there; only those checks are off, only for those objects. (user: dmestas, size: 427) [annotate] [blame] [check-ins using] [more...]
/* Transcript lines: any bytes, any JSON shape. */ #define CTX_NO_MAIN #include "../src/ctx.c" int LLVMFuzzerTestOneInput(const unsigned char *data, size_t n) { static extractor e; static int ready; if (!ready) { ex_open(&e); ready = 1; } turn_t t = {0}; if (ex_line(&e, (const char *)data, n, &t) && t.body && t.body_n != strlen(t.body)) __builtin_trap(); /* no NUL kept */ turn_free(&t); return 0; }