Nothing Special   »   [go: up one dir, main page]

Skip to content

Latest commit

 

History

History

libjpeg

libjpeg

Libjpeg is a widely used C library for reading and writing JPEG image files. It was developed by Tom Lane and the Independent JPEG Group (IJG) during the 1990's and it is now maintained by several developers using various services identified in the SourceForge summary.

Build Docker

$ sudo docker build -t oss-sydr-fuzz-libjpeg .

Run Hybrid Fuzzing

Unzip Sydr (sydr.zip) in projects/libjpeg directory:

$ unzip sydr.zip

Run docker:

$ sudo docker run --cap-add=SYS_PTRACE  --security-opt seccomp=unconfined -v /etc/localtime:/etc/localtime:ro --rm -it -v $PWD:/fuzz oss-sydr-fuzz-libjpeg /bin/bash

Change directory to /fuzz:

# cd /fuzz

Run hybrid fuzzing:

# sydr-fuzz -c compress.toml run

Get LCOV HTML coverage report:

# sydr-fuzz -c compress.toml cov-export -- -format=lcov > compress.lcov
# genhtml -o compress-html compress.lcov

Alternative Fuzz Targets

libjpeg project has 2 fuzz targets.

compress

# sydr-fuzz -c compress.toml run

decompress

# sydr-fuzz -c decompress.toml run