HomePhabricator

[doc] Bump fuzzer child process memory limit

Description

[doc] Bump fuzzer child process memory limit

Summary: The doc recommends 52MB but this is not sufficient.

Test Plan:
Setup the fuzzer according to the doc and then:
Fails with a memory limit error:

${AFLPATH}/afl-fuzz -i ${DIR_FUZZ_IN}/${FUZZ_TARGET} -o ${AFLOUT}/${FUZZ_TARGET} -m52 -- src/test/fuzz/${FUZZ_TARGET}

Succeeds:

${AFLPATH}/afl-fuzz -i ${DIR_FUZZ_IN}/${FUZZ_TARGET} -o ${AFLOUT}/${FUZZ_TARGET} -m80 -- src/test/fuzz/${FUZZ_TARGET}

I tested with FUZZ_TARGET=block_header and FUZZ_TARGET=cashaddr with the same results.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
sdulfariAuthored on Nov 29 2022, 22:12
sdulfariPushed on Nov 30 2022, 16:50
Reviewer
Restricted Project
Differential Revision
D12693: [doc] Bump fuzzer child process memory limit
Parents
rABCd4cad3ef2d75: rpc: move Ensure* helpers to server_util.h
Branches
Unknown
Tags
Unknown