Skip to content

Conversation

@practicalswift
Copy link
Contributor

Add proof-of-work fuzzing harness.

@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 25, 2020

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

Conflicts

No conflicts as of last run.

@jonatack
Copy link
Member

Concept ACK, commenting to be notified when this is rebased.

@practicalswift practicalswift force-pushed the fuzzers-proof-of-work branch from 6ca8d0a to baa778a Compare March 25, 2020 14:25
@practicalswift
Copy link
Contributor Author

@jonasnick Rebased! :)

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.

ACK baa778a

bitcoin/bitcoin (pr/18407)$ src/test/fuzz/pow
INFO: Seed: 3362987756
INFO: Loaded 1 modules   (514213 inline 8-bit counters): 514213 [0x562fb3600568, 0x562fb367de0d), 
INFO: Loaded 1 PC tables (514213 PCs): 514213 [0x562fb367de10,0x562fb3e56860), 
INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 4096 bytes
INFO: A corpus is not provided, starting from an empty corpus
#2	INITED cov: 140 ft: 141 corp: 1/1b exec/s: 0 rss: 116Mb
#5	NEW    cov: 140 ft: 148 corp: 2/3b exec/s: 0 rss: 117Mb L: 2/2 MS: 3 ChangeByte-ShuffleBytes-CopyPart-
#8	NEW    cov: 140 ft: 153 corp: 3/6b exec/s: 0 rss: 117Mb L: 3/3 MS: 3 EraseBytes-InsertByte-InsertByte-
	NEW_FUNC[0/35]: 0x562fb06f9180 in boost::optional<CBlockHeader> ConsumeDeserializable<CBlockHeader>(FuzzedDataProvider&, unsigned long) /home/jon/projects/bitcoin/bitcoin/src/./test/fuzz/util.h:42
	NEW_FUNC[1/35]: 0x562fb06fcf30 in FuzzedDataProvider::Advance(unsigned long) /home/jon/projects/bitcoin/bitcoin/src/./test/fuzz/FuzzedDataProvider.h:247
#14	NEW    cov: 460 ft: 512 corp: 4/81b exec/s: 0 rss: 118Mb L: 75/75 MS: 1 InsertRepeatedBytes-
.../...
#220985	REDUCE cov: 1308 ft: 7563 corp: 309/508Kb exec/s: 373 rss: 517Mb L: 869/4096 MS: 3 ChangeASCIIInt-ChangeBit-EraseBytes-
#221115	REDUCE cov: 1308 ft: 7563 corp: 309/508Kb exec/s: 374 rss: 517Mb L: 147/4096 MS: 5 PersAutoDict-ChangeByte-CopyPart-EraseBytes-CopyPart- DE: "\x08\x00\x00\x00"-

@practicalswift
Copy link
Contributor Author

@MarcoFalke Would you mind reviewing? :)

Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

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

ACK baa778ae1a7d75a448bafe30115f963e7de1fc18

@practicalswift practicalswift force-pushed the fuzzers-proof-of-work branch from baa778a to acf269e Compare April 4, 2020 17:24
@practicalswift
Copy link
Contributor Author

@MarcoFalke Updated. Please re-review :)

@maflcko maflcko merged commit 4839560 into bitcoin:master Apr 4, 2020
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jan 20, 2021
Summary:
Backport of core [[bitcoin/bitcoin#18407 | PR18407]].

Depends on D8981.

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

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D8984
@practicalswift practicalswift deleted the fuzzers-proof-of-work branch April 10, 2021 19:40
kwvg added a commit to kwvg/dash that referenced this pull request Jul 6, 2022
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 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