cmumford / TJpgDec

Tiny JPEG Decompressor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TJpgDec

Tiny JPEG Decompressor

Status

This project is a mirror of the TJpgDec project.

The "upstream" branch is a clean copy of the source and sample files from the official project page listed above with no modifications whatsoever.

The default branch ("master") has the following changes:

  1. Fuzzer test to detect memory access errors.
  2. Changes to fix all detected memory access errors.
  3. build (cmake) files.
  4. GitHub workflows for continuous integration.

Building

To build this library and sample programs:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .

Fuzzing

To build and run the fuzzing test:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DJPEG_FUZZING=1 ..
cmake --build .
./fuzzer

More info on fuzzing at libFuzzer.

About

Tiny JPEG Decompressor

License:GNU General Public License v3.0


Languages

Language:C 93.6%Language:CMake 3.1%Language:C++ 3.0%Language:Makefile 0.4%