Skip to content
Myr

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 file

Take it

Merge branch 'fuzzer_updates' of https://github.com/randy408/stb into workingSean Barrettbefore adoption3152efa

lines 1–17why, one step back
1#!/bin/bash -eu
2# 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.dict17

Merge branch 'master' into workingSean Barrettbefore adoption6e9f34d

lines 18–21why, one step back
18tar xvzf $SRC/stbi/jpg.tar.gz --directory $SRC/stb/tests
19tar 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/tests

Merge branch 'fuzzer_updates' of https://github.com/randy408/stb into workingSean Barrettbefore adoption3152efa

line 22why, one step back
22

Merge branch 'master' into workingSean Barrettbefore adoption6e9f34d

lines 23–26why, one step back
23find $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.zip

Merge branch 'fuzzer_updates' of https://github.com/randy408/stb into workingSean Barrettbefore adoption3152efa

line 27why, one step back
27

Merge branch 'master' into workingSean Barrettbefore adoption6e9f34d

lines 28–29why, one step back
28echo "" >> $SRC/stbi/gif.dict
29cat $SRC/stbi/gif.dict $SRC/stb/tests/stb_png.dict > $OUT/stbi_read_fuzzer.dict