ossfuzz.sh
This file
Path
tests/ossfuzz.sh
29 lines · 1.1 KiB · Shell
Last changed by
Merge branch 'master' into workingSean Barrettbefore adoption6e9f34d
History of this fileTake it
Merge branch 'fuzzer_updates' of https://github.com/randy408/stb into workingSean Barrettbefore adoption3152efa
lines 1–17why, one step back1#!/bin/bash -eu2# This script is meant to be run by3# https://github.com/google/oss-fuzz/blob/master/projects/stb/Dockerfile45$CXX $CXXFLAGS -std=c++11 -I. -DSTBI_ONLY_PNG \6 $SRC/stb/tests/stbi_read_fuzzer.c \7 -o $OUT/stb_png_read_fuzzer $LIB_FUZZING_ENGINE89$CXX $CXXFLAGS -std=c++11 -I. \10 $SRC/stb/tests/stbi_read_fuzzer.c \11 -o $OUT/stbi_read_fuzzer $LIB_FUZZING_ENGINE1213find $SRC/stb/tests/pngsuite -name "*.png" | \14 xargs zip $OUT/stb_png_read_fuzzer_seed_corpus.zip1516cp $SRC/stb/tests/stb_png.dict $OUT/stb_png_read_fuzzer.dict17Merge branch 'master' into workingSean Barrettbefore adoption6e9f34d
lines 18–21why, one step back18tar xvzf $SRC/stbi/jpg.tar.gz --directory $SRC/stb/tests19tar xvzf $SRC/stbi/gif.tar.gz --directory $SRC/stb/tests20unzip $SRC/stbi/bmp.zip -d $SRC/stb/tests21unzip $SRC/stbi/tga.zip -d $SRC/stb/testsMerge branch 'fuzzer_updates' of https://github.com/randy408/stb into workingSean Barrettbefore adoption3152efa
line 22why, one step back22Merge branch 'master' into workingSean Barrettbefore adoption6e9f34d
lines 23–26why, one step back23find $SRC/stb/tests -name "*.png" -o -name "*.jpg" -o -name "*.gif" \24 -o -name "*.bmp" -o -name "*.tga" -o -name "*.TGA" \25 -o -name "*.ppm" -o -name "*.pgm" \26 | xargs zip $OUT/stbi_read_fuzzer_seed_corpus.zipMerge branch 'fuzzer_updates' of https://github.com/randy408/stb into workingSean Barrettbefore adoption3152efa
line 27why, one step back27Merge branch 'master' into workingSean Barrettbefore adoption6e9f34d
lines 28–29why, one step back28echo "" >> $SRC/stbi/gif.dict29cat $SRC/stbi/gif.dict $SRC/stb/tests/stb_png.dict > $OUT/stbi_read_fuzzer.dict