google / oss-fuzz

OSS-Fuzz - continuous fuzzing for open source software.
https://google.github.io/oss-fuzz
Apache License 2.0
10.15k stars 2.16k forks source link

abseil/absl missing from Docker image when trying to use FUZZ_TEST icw autotools #11996

Open joachimmetz opened 1 month ago

joachimmetz commented 1 month ago

I'm trying to use FUZZ_TEST icw autotools, the Docker image contains fuzztest but abseil/absl appears to be missing

DavidKorczynski commented 1 month ago

Could you clarify a bit, maybe a reproducer command? is the problem that compile_fuzztest.sh is not working or something different?

joachimmetz commented 1 month ago

When I include "fuzztest/fuzztest.h" and try to build the fuzz target compilation fails due to missing absl headers used in fuzztest.h [1]. But the absl headers do not appear to be included on the Docker image.

Manually running fuzztest Cmake configuration downloads a copy of absl in a temporary location. I could change the project Docker configuration to set up the absl source as a preparation step but given absl appears to be a dependency of fuzztest I found it strange that it is missing.

To reproduce current fuzz targets that do not use fuzztest https://github.com/libyal/libcaes/tree/main/ossfuzz

compilation fails due to missing absl headers