commit 24c6f0b9ebe4e0422cd1c0cc23c61c8121a615f5 from: Sergey Bronnikov date: Sat Mar 23 16:18:36 2024 UTC test: fix dictionaries filenames Files with dictionaries have been renamed. See documentation in [1]: > Put your dict file in $OUT. If the dict filename is the same > as your target binary name (i.e. `%fuzz_target%.dict`), > it will be automatically used. The patch fixes paths to dictionaries in a build infrastructure and in a build script for clusterfuzzlite. 1. https://google.github.io/oss-fuzz/getting-started/new-project-guide/#dictionaries commit - b97fb88e7d4cf3c5058044fced0e0519dc7558d0 commit + 24c6f0b9ebe4e0422cd1c0cc23c61c8121a615f5 blob - c5a1b469856e44bbee081dffcbdf8f75a41900e3 blob + 507033956099e88b0aea7d3b6351568f02771c66 --- tests/capi/CMakeLists.txt +++ tests/capi/CMakeLists.txt @@ -69,7 +69,7 @@ function(create_test) add_dependencies(${test_name} ${LUA_TARGET}) string(REPLACE "_test" "" test_prefix ${test_name}) set(LIBFUZZER_OPTS "${LIBFUZZER_OPTS} -artifact_prefix=${test_name}_") - set(dict_path ${PROJECT_SOURCE_DIR}/corpus/${test_prefix}.dict) + set(dict_path ${PROJECT_SOURCE_DIR}/corpus/${test_name}.dict) set(corpus_path ${PROJECT_SOURCE_DIR}/corpus/${test_prefix}) if (EXISTS ${dict_path}) set(LIBFUZZER_OPTS "${LIBFUZZER_OPTS} -dict=${dict_path}")