Cosmin Truta
8cfdb5436d
Clean up oss-fuzz
...
With the caveat that oss-fuzz needs a full sync with upstream, here
are the changes applied to our old copy:
* Add a missing #include directive.
* Remove the "last changed" version info.
* Clean up the trailing whitespace.
Co-authored-by: Ilya Yegorov <hkctkuy@gmail.com>
Co-authored-by: Cosmin Truta <ctruta@gmail.com>
Signed-off-by: Cosmin Truta <ctruta@gmail.com>
2022-11-20 21:13:14 +02:00
Christopher Thompson
301f7a1429
oss-fuzz: Add custom malloc with max limit to prevent OOM
...
This adds the custom malloc/free functions from the old
libpng_read_fuzzer to the upstream fuzzer to prevent clusterfuzz
running into OOM.
Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=904054
Contributed-by: Christopher Thompson <cthomp@chromium.org>
Signed-off-by: Cosmin Truta <ctruta@gmail.com>
2019-04-25 00:37:57 -04:00
Cosmin Truta
46aedd8961
Release libpng version 1.6.35
2018-07-15 23:58:00 -04:00
Cosmin Truta
a74aa9a002
[libpng16] Replace the remaining uses of png_size_t with size_t
...
In v1.6.0, size_t became a required type. It should be used
consistently. To maintain backwards compatibility, png_size_t
is still maintained in deprecated form.
2018-06-17 22:37:44 -04:00
Glenn Randers-Pehrson
0e06b5948c
[libpng16] Imported from libpng-1.6.35beta01.tar
2018-03-06 14:06:24 -06:00
Glenn Randers-Pehrson
28d0ee757d
[libpng16] temporarily disable 16-to-8 downscaling in the fuzzer
2017-12-17 17:52:45 -06:00
Glenn Randers-Pehrson
5d7b4ab289
[libpng16] Replace png_set_add_alpha with png_set_trns_to_alpha in fuzzer.
2017-10-30 15:16:33 -05:00
Glenn Randers-Pehrson
ccc77d2a8d
[libpng16] Add a call to png_set_packing() to the fuzzer.
2017-10-14 11:33:59 -05:00
Glenn Randers-Pehrson
f648294931
[libpng16] Removed call to png_read_start_image() from the fuzzer. In libpng16
...
it is an error to call that along with png_read_update_info().
2017-10-13 14:00:36 -05:00
Glenn Randers-Pehrson
83f27f018c
[libpng16] Relocate png_read_update_info() wrt png_start_image() in fuzzer.
2017-10-12 20:10:40 -05:00
Glenn Randers-Pehrson
fefe0affc1
[libpng16] Update CHANGES and ANNOUNCE and last-changed date in the fuzzer.
2017-10-12 14:30:36 -05:00
Glenn Randers-Pehrson
a3d1057a73
[libpng16] Fix typo in fuzzer (png_info_ptr should be info_ptr)
2017-10-11 16:58:39 -05:00
Glenn Randers-Pehrson
12384eae6f
[libpng16] Relocate malloc of row_ptr after png_read_update_info() in fuzzer
2017-10-11 16:28:14 -05:00
Glenn Randers-Pehrson
357af1f095
]libpng16] Add png_read_update_info() where needed in the fuzzer
2017-10-11 11:56:30 -05:00
Glenn Randers-Pehrson
ab791fc9d6
[libpng16] Add some commonly-used transforms to the libpng fuzzer
2017-10-10 20:30:54 -05:00
Glenn Randers-Pehrson
edb1f47139
[libpng16] Clone zlib into the oss-fuzz zlib project and build zlib alongside libpng.
2017-10-01 16:21:16 -05:00
Glenn Randers-Pehrson
414de98047
[libpng16] Add end_info structure to libpng fuzzer; add row_ptr to CLEANUP
2017-09-28 09:20:20 -05:00
Glenn Randers-Pehrson
0512c63533
[libpng16] Revert contrib/oss-fuzz/libpng_read_fuzzer.cc to libpng-1.6.32 status
2017-09-27 18:05:07 -05:00
Glenn Randers-Pehrson
cae11e3e43
[libpng16] Treat benign errors as warnings in the libpng fuzzer
2017-09-27 08:19:11 -05:00
Glenn Randers-Pehrson
dc22583aca
[libpng16] Undo another faulty attempt to defeat the compiler from
...
optimizing out the the core of libpng_read_fuzzer.cc
2017-09-25 03:54:22 -05:00
Glenn Randers-Pehrson
346cbf2c2a
[libpng16] Another attempt to defeat the fuzzer optimizer
2017-09-24 09:25:12 -05:00
Glenn Randers-Pehrson
8eb79b3435
[libpng16] Undo faulty attempt to defeat the fuzzer optimizer
2017-09-24 08:31:08 -05:00
Glenn Randers-Pehrson
96333b6bea
[libpng16] Defeat optimization that removes reading rows in the fuzzer.
2017-09-23 10:34:40 -05:00
Glenn Randers-Pehrson
5f0c9fabbc
[libpng16] Bump version to 1.6.33rc01
2017-09-20 15:50:17 -05:00
Glenn Randers-Pehrson
4de130c255
[libpng16] Imported from libpng-1.6.33beta03.tar
2017-09-14 12:46:28 -05:00
Glenn Randers-Pehrson
4e9839d453
[libpng16] Update "last changed" date in contrib/oss-fuzz/*.cc
2017-09-05 18:51:36 -05:00
Kostya Serebryany
cbcb39932c
properly define PNG_CLEANUP
...
Should fix https://github.com/google/oss-fuzz/issues/809
2017-09-05 14:02:15 -07:00
Glenn Randers-Pehrson
9050c32365
[libpng16] Remove one remaining "png_handler." from contrib/oss-fuzz/*.cc
2017-09-04 16:52:46 -05:00
Glenn Randers-Pehrson
c77de19ba9
[libpng16] Revise contrib/oss-fuzz/libpng_read_fuzzer.cc
2017-09-04 08:22:39 -05:00
Glenn Randers-Pehrson
c2c8b398a9
[libpng16] Imported from libpng-1.6.33beta02.tar
2017-09-02 19:48:19 -05:00
Glenn Randers-Pehrson
62a2463211
[lbipng16] Use current date (DATE) instead of release-date (RDATE) in last
...
changed date of contrib/oss-fuzz files.
2017-09-02 17:17:55 -05:00
Glenn Randers-Pehrson
dcd3edaf87
[libpng16] Restored part of ~PngObjectHandler() that was deleted from
...
contrib/oss-fuzz/libpng_read_fuzzer.cc
2017-09-02 16:13:15 -05:00
Glenn Randers-Pehrson
84a5bf83ff
[libpng16] Nullify all pointers in PNG_CLEANUP of libpng_read_fuzzer.cc
2017-08-31 16:46:15 -05:00
Glenn Randers-Pehrson
f3a22d396a
[libpng16] Trivial reordering of libpng_read_fuzzer.cc
2017-08-31 15:01:25 -05:00
Glenn Randers-Pehrson
47aa798127
[libpng16] Cosmetic changes to contrib/oss-fuzz/libpng_read_fuzzer.cc
2017-08-30 13:11:16 -05:00
Glenn Randers-Pehrson
5c27e93f51
[libpng16] Bump version to 1.6.33beta02
2017-08-30 07:03:12 -05:00
Glenn Randers-Pehrson
efaf42e5df
[libpng16] Initialize png_handler.row_ptr in
...
contrib/oss-fuzz/libpng_read_fuzzer.cc
2017-08-30 06:47:55 -05:00
Glenn Randers-Pehrson
d3220babe2
[libpng16] Revised contrib/oss-fuzz/libpng_read_fuzzer.cc
2017-08-29 19:36:49 -05:00
Glenn Randers-Pehrson
58720d3c06
[libpng16] Fix "last changed" dates
2017-08-29 12:29:03 -05:00
Glenn Randers-Pehrson
ef76b1f688
[libpng16] Free row_ptr in contrib/oss-fuzz/libpng_read_fuzzer.cc PNG_CLEANUP
...
to fix google/oss-fuzz issue 3193.
2017-08-28 11:07:10 -05:00
Glenn Randers-Pehrson
da923d334d
[libpng16] Add calls to png_read_update_info() and png_read_end()
...
to contrib/oss-fuzz/libpng_read_fuzzer.cc, trying to increase coverage.
2017-08-26 20:39:50 -05:00
Glenn Randers-Pehrson
f6ca33d42c
[libpng16] Bump version to 1.6.33beta01
2017-08-25 18:54:30 -05:00
Glenn Randers-Pehrson
df7e9dae0c
[libpng16] Imported from libpng-1.6.32.tar
2017-08-24 16:39:02 -05:00
Glenn Randers-Pehrson
1257369169
[libpng16] Bump version to 1.6.32rc03
2017-08-22 20:06:04 -05:00
Glenn Randers-Pehrson
b0d14c7d13
'libpng16] Imported more files into the contrib/oss-fuzz directory
2017-08-22 13:58:59 -05:00
Glenn Randers-Pehrson
735fde494a
[lbpng16] Clarified licensing info in contrib/oss-fuzz/*
2017-08-21 20:34:26 -05:00
Glenn Randers-Pehrson
d2533b96f3
[libpng16] Use png_handler.png_ptr instead of read_ptr in png_set_options(()
2017-08-21 20:19:43 -05:00
Glenn Randers-Pehrson
ddabd0c70a
[libpng16] Added contrib/oss-fuzz directory
2017-08-21 19:14:39 -05:00