fuzz: Implement `connect_block` harness #35850

pull marcofleon wants to merge 1 commits into bitcoin:master from marcofleon:2026/07/add-connectblock-harness changing 2 files +481 −0
  1. marcofleon commented at 4:28 PM on July 30, 2026: contributor

    Adds a fuzz target that directly calls ConnectBlock with fJustCheck set to true, so it hits block/transaction validation without writing undo data or updating the chainstate.

    This PR is essentially #34651 with some minor tweaks and style cleanups. Additional validation harnesses (e.g. #34895) could build on this test's setup.

  2. DrahtBot added the label Fuzzing on Jul 30, 2026
  3. DrahtBot commented at 4:28 PM on July 30, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35850.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process.

    Type Reviewers
    ACK dergoegge
    Concept ACK Crypt-iQ

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #34895 (fuzz: Fuzzing harnesses for ActivateBestChainStep and ActivateBestChain by RobinDavid)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  4. marcofleon commented at 4:30 PM on July 30, 2026: contributor
  5. fuzz: Implement connect_block harness
    Co-authored-by: marcofleon <marleo23@proton.me>
    020bede7c2
  6. marcofleon force-pushed on Jul 30, 2026
  7. DrahtBot added the label CI failed on Jul 30, 2026
  8. DrahtBot removed the label CI failed on Jul 30, 2026
  9. dergoegge approved
  10. dergoegge commented at 10:58 AM on August 3, 2026: member

    utACK 020bede7c2d3e7a764ed51344925fcfe2300b3cf

    A follow up could be to investigate if we can make this harness find https://bitcoincore.org/en/2026/05/05/disclose-cve-2024-52911/ (perhaps the only thing missing here is to actually use the multi-threaded checkqueue).

  11. sedited requested review from ismaelsadeeq on Aug 3, 2026
  12. Crypt-iQ commented at 6:29 PM on August 3, 2026: contributor

    Concept ACK, will review


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-08-05 01:50 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me