Repository navigation
Remove bogus assertion from format_fuzzer - #120385
Conversation
`IInputFormat::getName` returns the processor name, such as `JSONRowInputFormat`, not the registered format name, so the assertion held for only 5 of the 79 input formats. It was an inert `assert` until it was converted to a live `chassert`, and since then any input that successfully builds an input format aborts the fuzzer, which is why the corpus no longer contains a single unit naming a real input format. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=eb77c64f3d9837380c3b793e5688162493efe12c&name_0=NightlyFuzzers&name_1=libFuzzer%20tests&name_1=libFuzzer%20tests Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Workflow [PR], commit [46078c7] Summary: ❌
AI ReviewSummaryThis PR removes the Missing context / blind spots
Final Verdict✅ Approve. Removing the assertion is the correct fix for the reported abort, and the change is confined to the fuzzer harness. LLVM Coverage Report |
Build profile diff (arm_release)Comparing commit See the job log for details. |
acd853b
format_fuzzeraborted on the 12-byte inputjson\nD json\natsrc/Formats/fuzzers/format_fuzzer.cpp:213:formatis the format name read from the fuzzer input, whileIInputFormat::getNamereturns the processor name. Those are different namespaces: for this input the object isJSONRowInputFormat, and when parallel parsing is selected the name isParallelParsingBlockInputFormat. Of the 79 registered input formats onlyNative,One,Buffers,PuffinandPuffinMetadatahave a class whosegetNamehappens to equal the registered name, so the assertion fails for the other 74. Case is irrelevant,JSONaborts just likejson.The check was added as
assert, which is compiled out in the fuzzers build, and only became live once it was converted tochassert, since that build uses-DSANITIZE=address.Because the process dies as soon as an input format is constructed, the fuzzer cannot explore format parsing at all. The live corpus (18705 units) contains zero units whose first line names a registered input format; the only real format name left in it is
Null, which is output-only and throwsFORMAT_IS_NOT_SUITABLE_FOR_INPUTbefore reaching the assertion. Coverage in the failing run was 22896 of 9.3M instrumented counters. Re-seeding the corpus should follow separately.getCreatorsalready throwsUNKNOWN_FORMATorFORMAT_IS_NOT_SUITABLE_FOR_INPUTfor a bad format name, and there is no public accessor for the canonical registered name, so the assertion is removed rather than repaired.CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=eb77c64f3d9837380c3b793e5688162493efe12c&name_0=NightlyFuzzers&name_1=libFuzzer%20tests&name_1=libFuzzer%20tests
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/120385]
Version info
26.10.1.334-master(included in26.10and later)