Skip to content

Conversation

@practicalswift
Copy link
Contributor

Add basic fuzzing harness for CNetAddr/CService/CSubNet related functions (netaddress.h).

To test this PR:

$ make distclean
$ ./autogen.sh
$ CC=clang CXX=clang++ ./configure --enable-fuzz \
      --with-sanitizers=address,fuzzer,undefined
$ make
$ src/test/fuzz/netaddress
…

@fanquake fanquake added the Tests label Feb 1, 2020
Copy link
Member

@jonatack jonatack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept/approach ACK. Runs about 10 times faster (11.5-12k exec/s) than the asmap fuzzer for me. Why is 8bb9945 described as "temporarily" and a separate commit? (I have the same question regarding the asmap fuzzer PR as well -- thanks.)

@practicalswift
Copy link
Contributor Author

@jonatack The reason for the temporary commit was to allow for easy removal in the case that tests cases was added to the qa-assets repo before the merge of this PR :) But to make things less confusing I've now squashed the two commits into one. Please re-review :)

@practicalswift
Copy link
Contributor Author

Rebased! :)

Copy link
Contributor

@dongcarl dongcarl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ACK 815c7a6

@maflcko maflcko merged commit 5518eee into bitcoin:master Mar 9, 2020
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Mar 10, 2020
…ervice/CSubNet related functions (netaddress.h)

6590395 tests: Remove FUZZERS_MISSING_CORPORA (practicalswift)
815c7a6 tests: Add basic fuzzing harness for CNetAddr/CService/CSubNet related functions (netaddress.h) (practicalswift)

Pull request description:

  Add basic fuzzing harness for `CNetAddr`/`CService`/`CSubNet` related functions (`netaddress.h`).

  To test this PR:

  ```
  $ make distclean
  $ ./autogen.sh
  $ CC=clang CXX=clang++ ./configure --enable-fuzz \
        --with-sanitizers=address,fuzzer,undefined
  $ make
  $ src/test/fuzz/netaddress
  …
  ```

Top commit has no ACKs.

Tree-SHA512: 69dc0e391d56d5e9cdb818ac0ac4b69445d0195f714442a06cf662998e38b6e0bbaa635dce78df37ba797feed633e94abba4764b946c1716d392756e7809112d
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Nov 5, 2020
…d functions (netaddress.h)

Summary: Backport of core [[bitcoin/bitcoin#18047 | PR18047]].

Test Plan:
  ninja bitcoin-fuzzers
  ./test/fuzz/test_runner.py <path_to_corpus>

Reviewers: #bitcoin_abc, PiRK

Reviewed By: PiRK

Differential Revision: https://reviews.bitcoinabc.org/D8270
sidhujag pushed a commit to syscoin-core/syscoin that referenced this pull request Nov 10, 2020
…ervice/CSubNet related functions (netaddress.h)

6590395 tests: Remove FUZZERS_MISSING_CORPORA (practicalswift)
815c7a6 tests: Add basic fuzzing harness for CNetAddr/CService/CSubNet related functions (netaddress.h) (practicalswift)

Pull request description:

  Add basic fuzzing harness for `CNetAddr`/`CService`/`CSubNet` related functions (`netaddress.h`).

  To test this PR:

  ```
  $ make distclean
  $ ./autogen.sh
  $ CC=clang CXX=clang++ ./configure --enable-fuzz \
        --with-sanitizers=address,fuzzer,undefined
  $ make
  $ src/test/fuzz/netaddress
  …
  ```

Top commit has no ACKs.

Tree-SHA512: 69dc0e391d56d5e9cdb818ac0ac4b69445d0195f714442a06cf662998e38b6e0bbaa635dce78df37ba797feed633e94abba4764b946c1716d392756e7809112d
@practicalswift practicalswift deleted the fuzzers-netaddress branch April 10, 2021 19:40
kwvg added a commit to kwvg/dash that referenced this pull request Jul 15, 2022
…e/CSubNet related functions (netaddress.h)
PastaPastaPasta added a commit to dashpay/dash that referenced this pull request Jul 17, 2022
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants