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 24
24
#include < test/fuzz/FuzzedDataProvider.h>
25
25
#include < test/fuzz/fuzz.h>
26
26
#include < test/fuzz/util.h>
27
- #include < time.h>
28
27
#include < uint256.h>
28
+ #include < util/check.h>
29
29
#include < util/moneystr.h>
30
30
#include < util/strencodings.h>
31
31
#include < util/string.h>
35
35
36
36
#include < cassert>
37
37
#include < chrono>
38
+ #include < ctime>
38
39
#include < limits>
39
40
#include < set>
40
41
#include < vector>
@@ -287,8 +288,12 @@ void test_one_input(const std::vector<uint8_t>& buffer)
287
288
try {
288
289
const uint64_t deserialized_u64 = ReadCompactSize (stream);
289
290
assert (u64 == deserialized_u64 && stream.empty ());
291
+ } catch (const std::ios_base::failure&) {
290
292
}
291
- catch (const std::ios_base::failure&) {
292
- }
293
+ }
294
+
295
+ try {
296
+ CHECK_NONFATAL (b);
297
+ } catch (const NonFatalCheckError&) {
293
298
}
294
299
}
You can’t perform that action at this time.
0 commit comments