Page MenuHomePhabricator

[doc] Bump fuzzer child process memory limit
ClosedPublic

Authored by sdulfari on Nov 29 2022, 22:21.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC337285c4c127: [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.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
fuzzer-doc
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21249
Build 42150: Build Diff
Build 42149: arc lint + arc unit