fuzz: add an "opaque" to the FuzzTarget struct
commit82849bcf30b5a1dfac6c1d7642a243c2f7bd6a6f
authorAlexander Bulekov <alxndr@bu.edu>
Fri, 23 Oct 2020 15:07:42 +0000 (23 11:07 -0400)
committerThomas Huth <thuth@redhat.com>
Mon, 26 Oct 2020 08:53:53 +0000 (26 09:53 +0100)
tree404b041f77eae9f57f292b05031e258ea490dede
parent2f2e036ca6e2c4d15841f6d29a17c2ae0961aca8
fuzz: add an "opaque" to the FuzzTarget struct

It can be useful to register FuzzTargets that have nearly-identical
initialization handlers (e.g. for using the same fuzzing code, with
different configuration options). Add an opaque pointer to the
FuzzTarget struct, so that FuzzTargets can hold some data, useful for
storing target-specific configuration options, that can be read by the
get_init_cmdline function.

Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Message-Id: <20201023150746.107063-14-alxndr@bu.edu>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/fuzz/fuzz.h