infra: add support for netdriver fuzzing with honggfuzz
Adds an example with the mongoose webserver
I think this could face some of the issues mentioned in https://github.com/google/oss-fuzz/issues/7347
Sorry for late response, I think this can be useful
/* HF NetDriver signature - if found within file, it means it's a NetDriver-based binary */
#define _HF_NETDRIVER_SIG "\x01_LIBHFUZZ_NETDRIVER_BINARY_SIGNATURE_\x02\xFF"
https://github.com/google/honggfuzz/blob/623d8bb620c0d8ca8ac67a0dea8ab4cf835ea706/honggfuzz.h#L56
@jonathanmetzman -- you approved this but I wanted to double check if it's ready before merging it in?
/gcbrun trial_build.py mongoose --sanitizer address coverage memory undefined --fuzzing-engine libfuzzer afl honggfuzz
Trial builds don't work here because they don't work on forked repos :-(
Trial builds don't work here because they don't work on forked repos :-(
Do I need to do something to make this work, or how do you prefer to move forward?
Trial builds don't work here because they don't work on forked repos :-(
Do I need to do something to make this work, or how do you prefer to move forward?
The changes look relatively self contained, so let's merge.
Going forward, for infra-related PRs like these, can you create them off a branch on the main repo instead?
Trial builds don't work here because they don't work on forked repos :-(
Do I need to do something to make this work, or how do you prefer to move forward?
The changes look relatively self contained, so let's merge.
Going forward, for infra-related PRs like these, can you create them off a branch on the main repo instead?
It shouldn't be too hard to support forks, I'm just avoiding implementing this to reduce bus factor: https://github.com/google/oss-fuzz/issues/8273