Tiny JPEG Decompressor
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:
- Fuzzer test to detect memory access errors.
- Changes to fix all detected memory access errors.
- build (cmake) files.
- GitHub workflows for continuous integration.
To build this library and sample programs:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
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.