Commit Graph

12 Commits

Author SHA1 Message Date
DavidKorczynski 84d255ab00
libprotobuf-mutator projects: fix builds (#7737)
* libprotobuf-mutator projects: fix builds

Ref: https://github.com/google/oss-fuzz/issues/7736

* boringssl: fix libprotobuf-mutator fuzzer

* giflib: fix libprotobuf-mutator fuzzer

* jsoncpp: fix libprotobuf-mutator fuzzer

* xerces-c: fix libprotobuf-mutator fuzzer

* libpng-proto: fix libprotobuf-mutator fuzzer

* giflib: add license header to satisfy CI
2022-05-21 13:34:16 +01:00
devtty1er d561c49ae5
Update Dockerfiles (#4070)
* Use LABEL in place of MAINTAINER

* Remove LABEL maintainer from Dockerfiles
2020-07-06 13:18:23 -07:00
Danny Halawi 8b6899cfb9
Fixing Dockerfile for fuzzers that use LPM (#4044)
* fixing Dockerfile for libpng-proto

* Fixing Dockerfile so the LPM for giflib works

* Fixing Dockerfile so the LPM for xerces-c works

* taking out unneeded installations

Co-authored-by: Danny Halawi <dhalawi@google.com>
2020-06-29 21:48:37 -07:00
Max Moroz 71f4914c45
[presubmit] Enforce language attribute in project.yaml to be always set. (#3477)
* [presubmit] Enforce language attribute in projectt.yaml to be always set.

* Update documentation, better presubmit check, new project template.

* add docstring to templates.py

* Add example values in the project.yaml template and remove python value for now

* Add "project: c++" to 256 projects

* format

* Add labels and selective_unpack sections to the presubmit check

* fix incorrect auto_ccs format in three projects

* fix nss emails after rebase
2020-03-10 11:08:01 -07:00
Bhargava Shastry f484147a22 Make gif data little endian (#2712) 2019-08-16 11:53:59 -07:00
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