Skip to content

oss-fuzz: bnb_finds_min_waste: Assertion `result_bf.GetWaste() == best_waste' failed. #34936

Closed

Description

@maflcko

https://issues.oss-fuzz.com/issues/496742336:

$ echo 'ICAgICAgICAgICD//yAgIP////////////8gICAg//8A/////////yD/////IP+RIJH/kSCR/5r/
kf+RkSCR/5GR/5H/kZEgkf+Rkf+R/5GRIJH/kZGR/5H/kZGRIJH/kZGR/5H/kZGRIJH///8A////
IP//20AHWvB1BiD//yAgICAgICAg////ICAgIP+R//8A' | base64 --decode > /tmp/oss-fuzz-bnb

$ sha1sum /tmp/oss-fuzz-bnb 
be3b7458579c6b2205947c3a3bca2d1bd9f25c72  /tmp/oss-fuzz-bnb

$ FUZZ=bnb_finds_min_waste ./bld-cmake/bin/fuzz /tmp/oss-fuzz-bnb 
INFO: Running with entropic power schedule (0xFF, 100).
INFO: Seed: 2277724134
INFO: Loaded 1 modules   (415460 inline 8-bit counters): 415460 [0x55877532c1e0, 0x5587753918c4), 
INFO: Loaded 1 PC tables (415460 PCs): 415460 [0x5587753918c8,0x5587759e8708), 
./bld-cmake/bin/fuzz: Running 1 inputs 1 time(s) each.
Running: /tmp/oss-fuzz-bnb

fuzz: wallet/test/fuzz/coinselection.cpp:319: void wallet::bnb_finds_min_waste_fuzz_target(FuzzBufferType): Assertion `result_bf.GetWaste() == best_waste' failed.
 

Originally posted by @maflcko in #32894

Activity

  1. fanquake commented on Mar 27, 2026

    @fanquake
    Member
  2. murchandamus commented on Mar 27, 2026

    @murchandamus
    Member

    Thanks, will try to take a look today.

  3. achow101 commented on Mar 28, 2026

    @achow101
    Member

    It's an int overflow. Fixed in #34939

  4. added this to the 31.0 milestone on Mar 28, 2026
  5. added a commit that references this issue on Mar 30, 2026
    826819a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions