-
Notifications
You must be signed in to change notification settings - Fork 124
Description
I'm using tests 1 that uses LPM & Protobuf library. LPM is built using ExternalProjectAdd
in CMake, see 2.
Fuzzing tests are running in OSS Fuzz Infrastructure (see build.sh
in 3), where Fuzz Introspector reports are built.
Unfortunately, Fuzz Introspector includes LPM and Protobuf library to reports, and due to this overall code coverage result is wrong 4 and Protobuf functions bothers me to analyze reports, see an example in 5.
What is a correct way to disable code coverage instrumentation?
I see there is LIB_PROTO_MUTATOR_HAS_NO_COVERAGE
, but it is not documented.
Footnotes
-
https://github.com/ligurio/lua-c-api-tests/blob/e4c2a46510a72baf6e3741dbd7529e74aaf698e6/cmake/ProtobufMutator.cmake#L28-L45 ↩
-
https://github.com/google/oss-fuzz/blob/318f612d3054293201a494190715bd6a207e477c/projects/lua/build.sh#L57-L75 ↩
-
https://storage.googleapis.com/oss-fuzz-coverage/lua/reports/20230915/linux/src/testdir/build/tests/external.protobuf_mutator/src/report.html ↩
-
https://storage.googleapis.com/oss-fuzz-introspector/lua/inspector-report/20230915/fuzz_report.html#Fuzzer:-luaL_loadbuffer_proto_test ↩