fuzz: improve ipc fuzz coverage

bitcoin/bitcoin: PR #35916

1 suggestion

Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.

Optional improvements

Link

[suggestion] · Transaction-request fuzzing accepts unrelated FAILED errors

The transaction-request fuzz oracle accepts unrelated FAILED errors for locally rejected payloads, although no current non-decoding source of these errors was found.

Location: src/ipc/test/fuzz/ipc.cpp:172 (head).

Details and suggested fix

When the local probe throws std::ios_base::failure, the rejection handler accepts any remote kj::Exception::Type::FAILED without checking its description. A regression that replaces the expected decoding rejection with a different FAILED error would therefore still pass this case. Save std::string{"std::exception: "} + e.what() from the local catch and require the remote description to end with that string before accepting the rejection, following the existing UniValue check. The probe and server hook deserialize the same bytes through SpanReader, TX_WITH_WITNESS, and the same transaction constructor in one process, so this derives the expected message without hardcoding platform-dependent exception text.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.