docs,fuzz: fix ownership/alloc comments; fuzz chunk metadata path

This commit is contained in:
2026-09-13 05:48:27 +02:00
parent 5a829adb85
commit dcc78c14c5
3 changed files with 10 additions and 4 deletions
+5 -1
View File
@@ -17,7 +17,11 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
if (!d)
return 0;
Chunk* chunk = chunk_deserialize(d, false);
/* Exercise both the metadata and non-metadata chunk layouts: the
metadata branch (present flag + 4-vs-72 advance) is only reachable with
use_metadata=true, so base the choice on the input rather than hardcoding
false. */
Chunk* chunk = chunk_deserialize(d, (data[0] & 1) != 0);
if (chunk)
chunk_destroy(chunk);