mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 07:58:30 +00:00
fuzz: update harness for ifcopenshell::file rename
ifcviewer-wgpu renamed IfcParse::IfcFile to ifcopenshell::file (header moved to ifcparse/file.h) and Base::toString to Base::to_string. Update the harness and README to match; verified with a syntax-only compile against this branch's headers.
This commit is contained in:
committed by
Thomas Krijnen
parent
257b8a0dda
commit
aab79ccff9
@@ -1,10 +1,11 @@
|
||||
# ifcparse_fuzzer
|
||||
|
||||
A libFuzzer harness for `IfcParse::IfcFile`. It parses fuzzer input entirely
|
||||
A libFuzzer harness for `ifcopenshell::file`. It parses fuzzer input entirely
|
||||
in-memory (no subprocess, no temp files), then walks every parsed instance
|
||||
and calls `toString()` on it to force full lazy attribute evaluation -
|
||||
IfcOpenShell only tokenizes/evaluates on demand, so just constructing
|
||||
`IfcFile` barely exercises the parser.
|
||||
and calls `to_string()` on it. Constructing the file already tokenizes,
|
||||
type-checks, and resolves every attribute of every instance, so
|
||||
`to_string()` mainly adds coverage of the reserialization/formatting code
|
||||
path rather than the parser itself.
|
||||
|
||||
Disabled by default (`BUILD_FUZZERS=OFF`); building it needs Clang, not GCC.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user