Page MenuHomePhabricator

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

Authored by PiRK on Mar 14 2024, 14:33.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable