[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v7 13/17] fuzz: add an "opaque" to the FuzzTarget struct
From: |
Alexander Bulekov |
Subject: |
[PATCH v7 13/17] fuzz: add an "opaque" to the FuzzTarget struct |
Date: |
Fri, 23 Oct 2020 11:07:42 -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.
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
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 v7 08/17] fuzz: add a DISABLE_PCI op to generic-fuzzer, (continued)
- [PATCH v7 08/17] fuzz: add a DISABLE_PCI op to generic-fuzzer, Alexander Bulekov, 2020/10/23
- [PATCH v7 01/17] memory: Add FlatView foreach function, Alexander Bulekov, 2020/10/23
- [PATCH v7 02/17] fuzz: Add generic virtual-device fuzzer, Alexander Bulekov, 2020/10/23
- [PATCH v7 09/17] fuzz: add a crossover function to generic-fuzzer, Alexander Bulekov, 2020/10/23
- [PATCH v7 03/17] fuzz: Add PCI features to the generic fuzzer, Alexander Bulekov, 2020/10/23
- [PATCH v7 10/17] scripts/oss-fuzz: Add script to reorder a generic-fuzzer trace, Alexander Bulekov, 2020/10/23
- [PATCH v7 04/17] fuzz: Add DMA support to the generic-fuzzer, Alexander Bulekov, 2020/10/23
- [PATCH v7 11/17] scripts/oss-fuzz: Add crash trace minimization script, Alexander Bulekov, 2020/10/23
- [PATCH v7 05/17] fuzz: Declare DMA Read callback function, Alexander Bulekov, 2020/10/23
- [PATCH v7 13/17] fuzz: add an "opaque" to the FuzzTarget struct,
Alexander Bulekov <=
- [PATCH v7 12/17] fuzz: Add instructions for using generic-fuzz, Alexander Bulekov, 2020/10/23
- [PATCH v7 14/17] fuzz: add generic-fuzz configs for oss-fuzz, Alexander Bulekov, 2020/10/23
- [PATCH v7 15/17] fuzz: register predefined generic-fuzz configs, Alexander Bulekov, 2020/10/23
- [PATCH v7 16/17] scripts/oss-fuzz: use hardlinks instead of copying, Alexander Bulekov, 2020/10/23
- [PATCH v7 17/17] scripts/oss-fuzz: ignore the generic-fuzz target, Alexander Bulekov, 2020/10/23