gecko-dev/js/src/fuzz-tests
Yury Delendik 4d09764c66 Bug 1823476 - Update wast vendor dependency. r=supply-chain-reviewers
Updated wast=55.0.0.

And also wasm-smith to avoid duplicate copy of wasm-encoder.

Differential Revision: https://phabricator.services.mozilla.com/D173217
2023-03-22 19:27:18 +00:00
..
gluesmith Bug 1823476 - Update wast vendor dependency. r=supply-chain-reviewers 2023-03-22 19:27:18 +00:00
util Bug 1788977 - Consolidate the finishOffThread*Stencil shell functions. r=arai 2022-09-06 12:01:35 +00:00
README
differential-parsing.js
moz.build
parsing-evaluate.js
testExample.cpp
testRegExp.cpp Bug 1773368 - Remove deprecated internal typedefs for string-related types. r=iain 2022-06-13 17:09:46 +00:00
testStructuredCloneReader.cpp
testWasm.cpp Bug 1781425 - wasm: Remove baldrdash. r=jseward,supply-chain-reviewers 2022-07-27 22:30:17 +00:00
tests.cpp Bug 1795914 - Remove JS Streams implementation r=jandem 2022-10-24 16:05:58 +00:00
tests.h

README

# JS Fuzzing Interface

This directory contains fuzzing targets that implement the unified fuzzing
interface to be used with libFuzzer or AFL.

## Building the fuzzing targets

To include this directory in your JS build, you need to build with Clang
and the --enable-fuzzing flag enabled. The build system will automatically
detect if you are building with afl-clang-fast for AFL or regular Clang
for libFuzzer.

## Running a fuzzing target

To run a particular target with libFuzzer, use:

    cd $OBJDIR/dist/bin
    FUZZER=YourTargetName ./fuzz-tests

To run with AFL, use something like

    cd $OBJDIR/dist/bin
    FUZZER=YourTargetName MOZ_FUZZ_TESTFILE=input \
    afl-fuzz <regular AFL options> -f input ./fuzz-tests


## Writing a fuzzing target

1.  Check testExample.cpp for a target skeleton with comments.

2.  Add your own .cpp file to UNIFIED_SOURCES in moz.build