[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 13/16] fuzz: add an "opaque" to the FuzzTarget struct
From: |
Alexander Bulekov |
Subject: |
[PATCH v6 13/16] fuzz: add an "opaque" to the FuzzTarget struct |
Date: |
Wed, 21 Oct 2020 17:09:19 -0400 |
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.
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
---
tests/qtest/fuzz/fuzz.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/qtest/fuzz/fuzz.h b/tests/qtest/fuzz/fuzz.h
index ed9ce17154..08e9560a79 100644
--- a/tests/qtest/fuzz/fuzz.h
+++ b/tests/qtest/fuzz/fuzz.h
@@ -100,6 +100,7 @@ typedef struct FuzzTarget {
uint8_t *out, size_t max_out_size,
unsigned int seed);
+ void *opaque;
} FuzzTarget;
void flush_events(QTestState *);
--
2.28.0
- [PATCH v6 02/16] fuzz: Add generic virtual-device fuzzer, (continued)
- [PATCH v6 02/16] fuzz: Add generic virtual-device fuzzer, Alexander Bulekov, 2020/10/21
- [PATCH v6 03/16] fuzz: Add PCI features to the generic fuzzer, Alexander Bulekov, 2020/10/21
- [PATCH v6 07/16] fuzz: Add support for custom crossover functions, Alexander Bulekov, 2020/10/21
- [PATCH v6 06/16] fuzz: Add fuzzer callbacks to DMA-read functions, Alexander Bulekov, 2020/10/21
- [PATCH v6 08/16] fuzz: add a DISABLE_PCI op to generic-fuzzer, Alexander Bulekov, 2020/10/21
- [PATCH v6 09/16] fuzz: add a crossover function to generic-fuzzer, Alexander Bulekov, 2020/10/21
- [PATCH v6 10/16] scripts/oss-fuzz: Add script to reorder a generic-fuzzer trace, Alexander Bulekov, 2020/10/21
- [PATCH v6 12/16] fuzz: Add instructions for using generic-fuzz, Alexander Bulekov, 2020/10/21
- [PATCH v6 11/16] scripts/oss-fuzz: Add crash trace minimization script, Alexander Bulekov, 2020/10/21
- [PATCH v6 13/16] fuzz: add an "opaque" to the FuzzTarget struct,
Alexander Bulekov <=
- [PATCH v6 14/16] fuzz: add generic-fuzz configs for oss-fuzz, Alexander Bulekov, 2020/10/21
- [PATCH v6 15/16] fuzz: register predefined generic-fuzz configs, Alexander Bulekov, 2020/10/21
- [PATCH v6 16/16] scripts/oss-fuzz: remove the generic-fuzz target, Alexander Bulekov, 2020/10/21