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 fuzz oracle accepts unrelated FAILED errors

For locally undecodable transaction bytes, the fuzz oracle would hide an unrelated remote FAILED error; no current source of such a non-decoding error was found.

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

Details and suggested fix

When the local probe throws std::ios_base::failure, sendTransactionPayload treats any remote kj::Exception::Type::FAILED as the expected rejection and completes successfully. That type does not identify the cause, and serverInvoke logging supplies no additional check because the fuzz logger throws only for Log::Raise, not Log::Error. Save std::string{"std::exception: "} + e.what() in the local catch and require the remote description to end with it, as the neighbouring UniValue handler does. The probe and server hook decode the same bytes using SpanReader, TX_WITH_WITNESS, and the CTransaction deserialization constructor, so this narrows the oracle without hardcoding platform-specific exception text. This would distinguish an unrelated server failure from the intended decoding rejection.


Coverage details

Earlier concerns

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