Skip to content

Commit 327f08b

Browse files
committed
Merge bitcoin/bitcoin#30169: fuzz: Fix wallet_bdb_parser stdlib error matching
fac7298 fuzz: Fix wallet_bdb_parser stdlib error matching (MarcoFalke) Pull request description: The stdlib error string is an implementation detail and can not be relied upon. Ref: `libc++abi: terminating due to uncaught exception of type std::runtime_error: AutoFile::read: end of file: unspecified iostream_category error` ACKs for top commit: achow101: ACK fac7298 Tree-SHA512: 588acc71a05d97855d6bb65380411e8486692536434eadee7697de09f80b128ff2f90a31fd0e8384d084b554d2f3978efd076082e070e721cf05b07c94cc83b1
2 parents 4c387cb + fac7298 commit 327f08b

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)