diff options
| author | practicalswift <[email protected]> | 2020-04-22 13:57:35 +0000 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2020-04-26 20:23:56 +0000 |
| commit | dde508b8b03a4a144331cb1ff97f1349b491c402 (patch) | |
| tree | d99230bb82628f10ed08acc34f4e75b49ed9b8b8 /src/test/fuzz/string.cpp | |
| parent | tests: Add fuzzing coverage for FormatHDKeypath(...) and WriteHDKeypath(...) (diff) | |
| download | discoin-dde508b8b03a4a144331cb1ff97f1349b491c402.tar.xz discoin-dde508b8b03a4a144331cb1ff97f1349b491c402.zip | |
tests: Add fuzzing coverage for ParseFixedPoint(...)
Diffstat (limited to 'src/test/fuzz/string.cpp')
| -rw-r--r-- | src/test/fuzz/string.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/fuzz/string.cpp b/src/test/fuzz/string.cpp index 3de0cf8db..49bee0e81 100644 --- a/src/test/fuzz/string.cpp +++ b/src/test/fuzz/string.cpp @@ -115,4 +115,8 @@ void test_one_input(const std::vector<uint8_t>& buffer) assert(data_stream.empty()); assert(deserialized_string == random_string_1); } + { + int64_t amount_out; + (void)ParseFixedPoint(random_string_1, fuzzed_data_provider.ConsumeIntegralInRange<int>(0, 1024), &amount_out); + } } |