diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2020-04-22 13:57:35 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2020-04-26 20:23:56 +0000 |
commit | dde508b8b03a4a144331cb1ff97f1349b491c402 (patch) | |
tree | d99230bb82628f10ed08acc34f4e75b49ed9b8b8 /src/test | |
parent | 1532259fcae8712777e1cedefc91224ee60a6aaa (diff) |
tests: Add fuzzing coverage for ParseFixedPoint(...)
Diffstat (limited to 'src/test')
-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 3de0cf8db7..49bee0e81f 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); + } } |