google / google/libprotobuf-mutator

Propagate `seed` to `DEFINE_PROTO_FUZZER`

Open
#229 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
667
Forks
134
PR merge metrics
No merged PRs in 30d

Description

I have an LPM-based fuzzing test [^1]. I want additionally mutate generated input by a custom mutator.
Unfortunately, `DEFINE_PROTO_FUZZER` doesn't have a `seed` that usually passed by `LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)`.

Is it possible to propagate `seed` to `DEFINE_PROTO_FUZZER` macros?

[^1]: https://github.com/ligurio/lua-c-api-tests/blob/e4c2a46510a72baf6e3741dbd7529e74aaf698e6/tests/luaL_loadbuffer_proto/luaL_loadbuffer_proto_test.cc#L31

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.