fuzz: Rework CTxDestination fuzzing #22399

pull MarcoFalke wants to merge 4 commits into bitcoin:master from MarcoFalke:2107-fuzzDest changing 5 files +63 −77
  1. MarcoFalke commented at 7:21 PM on July 4, 2021: member

    No description provided.

  2. fuzz: Move ConsumeTxDestination to cpp file
    Moving the implementation out of the header will reduce compile time
    fa40c0964b
  3. fuzz: Improve ConsumeTxDestination
    * Assert when a type is missing
    * Add missing WitnessV1Taproot
    * Limit WitnessUnknown to version [2, 16], to avoid abiguity
    * Limit WitnessUnknown to size [2, 40], to avoid invalid sizes
    fab99865c0
  4. fuzz: Simplify CTxDestination fuzzing in the script target
    The WitnessUnknown operators == and < are already called indirectly by
    the corresponding CTxDestination operators.
    fa42800a51
  5. fuzz: Move CTxDestination fuzzing to script fuzz target
    No need to split it over several targets
    fabf17056c
  6. MarcoFalke force-pushed on Jul 4, 2021
  7. DrahtBot added the label Tests on Jul 4, 2021
  8. Griffithjosh approved
  9. adamlaska approved
  10. practicalswift commented at 9:39 AM on July 7, 2021: contributor

    cr ACK fabf17056c1046c6ac7fa5d140125050b7a2b0e0

    Note to other reviewers: The changes this PR introduces to the WitnessUnknown logic in ConsumeTxDestination can be compared to the existing WitnessUnknown logic in DecodeDestination:

    https://github.com/bitcoin/bitcoin/blob/c7dd9ff71b9c2e62fa7ecfb37ee7a5841ad67ecc/src/key_io.cpp#L153-L161:

  11. MarcoFalke merged this on Jul 7, 2021
  12. MarcoFalke closed this on Jul 7, 2021

  13. MarcoFalke deleted the branch on Jul 7, 2021
  14. sidhujag referenced this in commit ab01b54594 on Jul 10, 2021
  15. gwillen referenced this in commit e4746d6297 on Jun 1, 2022
  16. DrahtBot locked this on Aug 16, 2022

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-04-17 06:14 UTC

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