Git Product home page Git Product logo

wasmcfuzz's Introduction

Compile AFL++

cd /home/WasmCFuzz/
export LD_LIBRARY_PATH=/home/WasmCFuzz/WasmCFuzz/build:$LD_LIBRARY_PATH
make 

Fuzz

JSC

# Build
export CC=/home/WasmCFuzz/afl-clang-fast
export CXX=/home/WasmCFuzz/afl-clang-fast++
./Tools/Scripts/build-jsc --jsc-only --build-dir=patch/
# Run
AFL_NO_STARTUP_CALIBRATION=1 ./afl-fuzz -G 1024 -t 500 -i /home/seeds/copy_3/ -o /data/fuzzout/WAfuzz/JSC_1017 /home/WebKit/0927fuzz/Release/bin/jsc --useWebAssemblyGC=true  --useWebAssemblyTypedFunctionReferences=true --useWebAssemblyTailCalls=true  --useWebAssemblyRelaxedSIMD=true @@

SpiderMonkey

# Build
export CC=/home/WasmCFuzz/afl-clang-fast
export CXX=/home/WasmCFuzz/afl-clang-fast++
cd js/src
mkdir build
cd build
../configure --disable-jemalloc --enable-debug --enable-optimize --disable-shared-js
make -j12
# Run
AFL_NO_STARTUP_CALIBRATION=1 ./afl-fuzz -G 1024 -t 500 -i /home/seeds/copy_3 -o /data/fuzzout/WAfuzz/SM_1018 /home/gecko-dev/js/src/afl/dist/bin/js  --wasm-moz-intgemm --wasm-memory-control --wasm-multi-memory --wasm-function-references --wasm-verbose --wasm-test-serialization --wasm-gc @@

V8

# Build
follow https://migraine-sudo.github.io/2020/10/06/v8-Instrumentation/
# Run
AFL_NO_STARTUP_CALIBRATION=1 ./afl-fuzz -G 1024 -t 500 -i /home/seeds/copy_3/ -o /data/fuzzout/WAfuzz/V8_1018 /home/v8/out/afl/d8 --experimental-wasm-compilation-hints --experimental-wasm-instruction-tracing --experimental-wasm-gc  --experimental-wasm-js-inlining --experimental-wasm-typed-funcref --experimental-wasm-branch-hinting --experimental-wasm-type-reflection  --experimental-wasm-memory64  --experimental-wasm-inlining --experimental-wasm-stringref --experimental-wasm-stack-switching @@

wasmcfuzz's People

Contributors

marckwei avatar wasmcfuzz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.