Skip to content

Commit fac7298

Browse files
author
MarcoFalke
committed
fuzz: Fix wallet_bdb_parser stdlib error matching
1 parent 413844f commit fac7298

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/test/fuzz/wallet_bdb_parser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ FUZZ_TARGET(wallet_bdb_parser, .init = initialize_wallet_bdb_parser)
6161
#ifdef USE_BDB
6262
bdb_ro_err = true;
6363
#endif
64-
if (error.original == "AutoFile::ignore: end of file: iostream error" ||
65-
error.original == "AutoFile::read: end of file: iostream error" ||
64+
if (error.original.starts_with("AutoFile::ignore: end of file") ||
65+
error.original.starts_with("AutoFile::read: end of file") ||
6666
error.original == "Not a BDB file" ||
6767
error.original == "Unsupported BDB data file version number" ||
6868
error.original == "Unexpected page type, should be 9 (BTree Metadata)" ||

0 commit comments

Comments
 (0)