File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 2424#include < test/fuzz/FuzzedDataProvider.h>
2525#include < test/fuzz/fuzz.h>
2626#include < test/fuzz/util.h>
27- #include < time.h>
2827#include < uint256.h>
28+ #include < util/check.h>
2929#include < util/moneystr.h>
3030#include < util/strencodings.h>
3131#include < util/string.h>
3535
3636#include < cassert>
3737#include < chrono>
38+ #include < ctime>
3839#include < limits>
3940#include < set>
4041#include < vector>
@@ -287,8 +288,12 @@ void test_one_input(const std::vector<uint8_t>& buffer)
287288 try {
288289 const uint64_t deserialized_u64 = ReadCompactSize (stream);
289290 assert (u64 == deserialized_u64 && stream.empty ());
291+ } catch (const std::ios_base::failure&) {
290292 }
291- catch (const std::ios_base::failure&) {
292- }
293+ }
294+
295+ try {
296+ CHECK_NONFATAL (b);
297+ } catch (const NonFatalCheckError&) {
293298 }
294299}
You can’t perform that action at this time.
0 commit comments