Skip to content

Commit dde508b

Browse files
tests: Add fuzzing coverage for ParseFixedPoint(...)
1 parent 1532259 commit dde508b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/fuzz/string.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,8 @@ void test_one_input(const std::vector<uint8_t>& buffer)
115115
assert(data_stream.empty());
116116
assert(deserialized_string == random_string_1);
117117
}
118+
{
119+
int64_t amount_out;
120+
(void)ParseFixedPoint(random_string_1, fuzzed_data_provider.ConsumeIntegralInRange<int>(0, 1024), &amount_out);
121+
}
118122
}

0 commit comments

Comments
 (0)