Skip to content

Instantly share code, notes, and snippets.

View xeioex's full-sized avatar

Dmitry Volyntsev xeioex

View GitHub Profile
git clone https://github.com/test262-utils/test262-harness-py
cd test262-harness-py
git checkout 0f2acdd882c84cff43b9d60df7574a1901e2cdcd
git clone https://github.com/tc39/test262
patch -p1 < test262.patch (https://gist.github.com/xeioex/0ad564ce405b6c78883583e04d569885)
python ./src/test262.py --command='<full path to njs cli binary> -q' --tests=./test262/ --strict_only
description: http://lcamtuf.coredump.cx/afl/
cmd:
# ubuntu: apt-get install afl
CC=afl-clang CFLAGS='-O0' ./configure && make njs
afl-fuzz -i testcases_njs -o findings_njs -x njs.dict <path-to-njs-binary> -
cat njs.dict
keyword_arguments="arguments"
keyword_break="break"
#!/bin/sh
SRC=$PWD
BBUILD=/tmp/build/nginx/
mkdir -p $BBUILD
rm -fr "$BBUILD/*"
BUILD="$BBUILD/$1"
mkdir -p "$BUILD"