Commit Graph

7 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
jonathanmetzman 3049c50d48
Migrate projects using -lFuzzingEngine to $LIB_FUZZING_ENGINE (#2325)
Migrate from -lFuzzingEngine to $LIB_FUZZING_ENGINE where possible and not causing breakage
2019-05-01 11:09:55 -04:00
Bhargava Shastry c205defe5f giflib: Fix bug in test harness that led to low coverage. (#2172) 2019-02-16 10:36:03 -08:00
Bhargava Shastry ecf26f315b giflib: Fix build failure and remove disk IO. (#2169) 2019-02-15 14:07:49 -08:00
Vincent Ulitzsch 834a138b39 [giflib] Add giflib (#2062)
* Add initial version of giflib

* Fix a memory leak in dgif_target

This commit fixes a memory that was caused by calling the wrong
close function.

* giflib: Minor bug fixes that also addressees most comments from Doris
2019-01-08 11:17:29 -08:00