HomePhabricator

fuzz: Add fuzzing harness for LoadMempool(...) and DumpMempool(...)

Description

fuzz: Add fuzzing harness for LoadMempool(...) and DumpMempool(...)

Summary:

tests: Set errno in FuzzedFileProvider. Implement seek(..., ..., SEEK_END).

validation: Make DumpMempool(...) and LoadMempool(...) easier to test/fuzz/mock

tests: Add fuzzing harness for LoadMempool(...) and DumpMempool(...)

This is a backport of core#19259

With minor changes from other PRs backported out of sequence or not yet backported:

  • core#21866: ::Chainstateactive() no longer exists
  • core#25290: mempool constructor now takes a MemPoolOptions parameter
  • core#19065: ConsumeTime helper function

Test Plan: ninja all check-all bitcoin-fuzzers

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D15699

Details

Provenance
practicalswift <practicalswift@users.noreply.github.com>Authored on Jun 2 2020, 18:58
PiRKCommitted on Mar 15 2024, 14:29
PiRKPushed on Mar 15 2024, 14:29
Reviewer
Restricted Project
Differential Revision
D15699: fuzz: Add fuzzing harness for LoadMempool(...) and DumpMempool(...)
Parents
rABC46bfa5ca7e27: [electrum] fix error when cached password is forwarded to subwidget
Branches
Unknown
Tags
Unknown