Commit Graph

3 Commits

Author SHA1 Message Date
Vincent Ulitzsch 84119adfbd [giflib] Fix build failure for giflib (#2572)
This commit fixes the current build failure for giflib
by adding GifQuantizeBuffer into the fuzzer's header file.
2019-07-05 12:18:50 -07:00
Vincent Ulitzsch 1a629a2c9b [giflib] Extend giflib harness: Extend egif fuzzer target (#2527)
* Improved egif_lib coverage by extending the gif encoder test harness

* stub_output_writer now dynamically reallocates memory

Memory allocation for stub_output_writer is now dynamic:
gifData will be reallocated in base 2 steps every time
we need more space.

* Fix buffer overrun in stub_output_writer when reallocating memory

* Throw assertion if memory reallocation in egif_target fails

egif_target uses dynamic memory reallocation to assure
that stub_output_writer never has a buffer overrun
in stub_output_writer. We throw an assert if
this memory reallocation fails.
2019-06-18 12:44:53 -07:00
Vincent Ulitzsch 02a91a656b Extend giflib harness: Cover more functions and add protobuf specification (#2442)
* Add protobuf target prototype

* Generalized architecture and added message stubs for future enhancements

* Added fine grained conversion of global/local color tables, LSD and image data

* Added conversion of extensions

* Flagged important TODOs

* Address important todos and add converter for GraphicControlExtension

* Minor bugfix: m_hasLct now reset for every image

* Fixed minor bugs and added GCExt to plaintext chunk

* Minor change to bug fix just for clarity

* Refactoring and add fuzz_dgif_extended

Refactor the code so that both targets import from dgif_fuzz_common.
Also add fuzz_dgif_extended, which exercises more functionality
of giflib

* Added minor comment

* Add new function that is a replica of Android JNI code

* Minor fix

* print errors (covers gif_err.c)

* bug fix in printing and disable it

* bug fix in printing error desc

* Add version variants to header message

* Add draw function from gif_font.c

* Remove LIB_FUZZING_ENGINE from compilation step and add GifDrawText8x8 API to custom fuzz harness

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* Remove unnecessary loop

* Small bugfix: x is no longer unitialized

* Change to consistent formatting

* Fix bug that caused build failure
2019-05-24 05:17:05 -07:00