diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2021-01-24 18:45:44 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2021-01-25 20:55:36 +0000 |
commit | 58232e3ffb319d27b41cfe040cfea8e43a3fb7e9 (patch) | |
tree | f145addb9902c25cbd5d02b2cbc8d609e28dc91b /src/test/fuzz/util.h | |
parent | 52d84a45e2fa3def71853cd31d5582ae31ea85d3 (diff) |
fuzz: Avoid -fsanitize=integer warnings in fuzzing harnesses
Diffstat (limited to 'src/test/fuzz/util.h')
-rw-r--r-- | src/test/fuzz/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/util.h b/src/test/fuzz/util.h index 7796f77cc6..5b8eacf051 100644 --- a/src/test/fuzz/util.h +++ b/src/test/fuzz/util.h @@ -196,7 +196,7 @@ template <typename WeakEnumType, size_t size> }, [&] { WitnessUnknown witness_unknown{}; - witness_unknown.version = fuzzed_data_provider.ConsumeIntegral<int>(); + witness_unknown.version = fuzzed_data_provider.ConsumeIntegral<uint32_t>(); const std::vector<uint8_t> witness_unknown_program_1 = fuzzed_data_provider.ConsumeBytes<uint8_t>(40); witness_unknown.length = witness_unknown_program_1.size(); std::copy(witness_unknown_program_1.begin(), witness_unknown_program_1.end(), witness_unknown.program); |