From e49c47fbd2d85f2fe422875713719e2fc1b7c96f Mon Sep 17 00:00:00 2001 From: Bruno Postle Date: Wed, 19 Aug 2026 22:21:58 +0100 Subject: [PATCH] fuzz: adapt harness for v0.9.0 rebase v0.9.0 already carries the ifcopenshell::file rename this harness was originally adapted for, but moved Logger into the ifcopenshell namespace too (logger::root() -> ifcopenshell::logger::root()) and never had a BUILD_ONLY_COMMON_SCHEMAS cmake option - schema selection there has always been via the SCHEMA_VERSIONS list. Verified with -fsyntax-only against the system-installed v0.9.0 headers. --- src/ifcfuzz/README.md | 2 +- src/ifcfuzz/ifcparse_fuzzer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcfuzz/README.md b/src/ifcfuzz/README.md index 3ed11e3df7..9b107787d3 100644 --- a/src/ifcfuzz/README.md +++ b/src/ifcfuzz/README.md @@ -27,7 +27,7 @@ cmake ../cmake \ -DCMAKE_C_FLAGS="-fsanitize=address,undefined -fno-sanitize-recover=all -g -O1 -fno-omit-frame-pointer" \ -DBUILD_FUZZERS=ON -DMINIMAL_BUILD=ON \ -DBUILD_IFCGEOM=OFF -DBUILD_CONVERT=OFF -DWITH_OPENCASCADE=OFF \ - -DBUILD_ONLY_COMMON_SCHEMAS=ON + -DSCHEMA_VERSIONS="2x3;4;4x3_add2" cmake --build . --target ifcparse_fuzzer -- -j$(nproc) ``` diff --git a/src/ifcfuzz/ifcparse_fuzzer.cpp b/src/ifcfuzz/ifcparse_fuzzer.cpp index 01b175234a..1ceb889e00 100644 --- a/src/ifcfuzz/ifcparse_fuzzer.cpp +++ b/src/ifcfuzz/ifcparse_fuzzer.cpp @@ -48,7 +48,7 @@ bool is_regular_file(const char* path) { extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) { for (int i = 1; i < *argc; ++i) { if (is_regular_file((*argv)[i])) { - logger::root().set_output(&std::cerr, &std::cerr); + ifcopenshell::logger::root().set_output(&std::cerr, &std::cerr); break; } }