fuzz: Use CAmount for storing best_waste #34939

pull achow101 wants to merge 1 commits into bitcoin:master from achow101:waste-fuzz-overflow changing 1 files +1 −1
  1. achow101 commented at 0:32 am on March 28, 2026: member

    Waste is a CAmount, which is an int64_t. This will overflow an int, so best_waste should also be a CAmount.

    Fixes #34936

  2. fuzz: Use CAmount for storing best_waste
    Waste is a CAmount, which is an int64_t. This will overflow an int, so
    `best_waste` should also be a `CAmount`.
    890a09b1e4
  3. DrahtBot added the label Fuzzing on Mar 28, 2026
  4. DrahtBot commented at 0:32 am on March 28, 2026: contributor

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

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK murchandamus, furszy

    If your review is incorrectly listed, please copy-paste <!–meta-tag:bot-skip–> into the comment that the bot should ignore.

  5. murchandamus commented at 1:06 am on March 28, 2026: member

    Tested againts the fuzz input provided in #32894 / #34936. Thanks Ava!

    ACK 890a09b1e49925315a5636f29cc5af36928fe092

  6. furszy commented at 2:54 am on March 28, 2026: member
    ACK 890a09b1e49925315a5636f29cc5af36928fe092
  7. fanquake added this to the milestone 31.0 on Mar 28, 2026
  8. fanquake added the label Needs Backport (31.x) on Mar 28, 2026
  9. yancyribbens commented at 2:02 pm on March 28, 2026: contributor
    best waste should be 2100000000000000 at most if in sats, right? Makes sense that this is larger than int max of 2,147,483,647.

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-03-28 15:13 UTC

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