bugbane icon indicating copy to clipboard operation
bugbane copied to clipboard

build tool: opt-out of laf & cmplog

Open fuzzah opened this issue 2 years ago • 0 comments

Currently there's no way to disable helper builds, such as LAF or CMPLOG for AFL++. For some apps it takes a lot of time to make these builds. We need to add something like --no-helper-builds or maybe even grant user full control over the builds to make with an option like --builds basic,asan,coverage.

Workaround

As a quick and dirty temporary workaround we can do the following. Find the bugbane installation directory. If it was installed with pip install -e, then you'll find its installation in the place you've cloned the sources of bugbane to. Otherwise, search for its installation place:

find / -xdev -type d -name bugbane

The installed bugbane package should reside either in site-packages or dist-packages depending on your distro and how you installed the package. Then use sed like this, specifying your path to base_builders.py:

sed -i bugbane/tools/builder/builders/base_builders.py -e /BuildType.CMPLOG,/d -e /BuildType.LAF,/d

This will delete LAF and CMPLOG from the build tool.

fuzzah avatar Sep 24 '23 20:09 fuzzah