John Bowler 
							
						 
					 
					
						
						
						
						
							
						
						
							d7d950e8bd 
							
						 
					 
					
						
						
							
							[libpng16] chore: Clean up the leading blank lines from all source files  
						
						... 
						
						
						
						The leading blank lines are apparently an artefact of an older source
control system.  They are not required and they look like accidents,
because starting a source file with a blank line is not a regular habit
of software developers nowadays.
This is a cherry-pick of commit 37cc20add8fb5b83bb5299a26cd3b41e0f776017
from branch 'libpng18'.
Signed-off-by: John Bowler <jbowler@acm.org>
Signed-off-by: Cosmin Truta <ctruta@gmail.com> 
						
						
					 
					
						2024-10-11 11:51:04 +03:00 
						 
				 
			
				
					
						
							
							
								Cosmin Truta 
							
						 
					 
					
						
						
						
						
							
						
						
							529e69e76a 
							
						 
					 
					
						
						
							
							Revert "oss-fuzz: Update the README file, the Docker file and the build script"  
						
						... 
						
						
						
						This reverts commit 3117b5f94a06aaf52a7365074e8199909680e52e.
A regression was introduced. (Oopsie!)
Signed-off-by: Cosmin Truta <ctruta@gmail.com> 
						
						
					 
					
						2024-09-19 21:37:52 +03:00 
						 
				 
			
				
					
						
							
							
								Cosmin Truta 
							
						 
					 
					
						
						
						
						
							
						
						
							cd5e582fd6 
							
						 
					 
					
						
						
							
							Revert "oss-fuzz: Transfer to an external repo and remove from this repo"  
						
						... 
						
						
						
						This reverts commit b7276eca0182bb6ad174ef044bb5f6f0504451af.
Although the brand new pngfuzz repo is coming up next, it turned out
that the deletion of contrib/oss-fuzz/ from the 'libpng16' branch was
premature. (Oopsie!)
Signed-off-by: Cosmin Truta <ctruta@gmail.com> 
						
						
					 
					
						2024-09-19 21:26:25 +03:00 
						 
				 
			
				
					
						
							
							
								Cosmin Truta 
							
						 
					 
					
						
						
						
						
							
						
						
							b7276eca01 
							
						 
					 
					
						
						
							
							oss-fuzz: Transfer to an external repo and remove from this repo  
						
						... 
						
						
						
						A new repository named "pngfuzz", dedicated to fuzz testing PNG
processing software in general and libpng in particular, has been
created:
https://github.com/pnggroup/pngfuzz 
Signed-off-by: Cosmin Truta <ctruta@gmail.com> 
						
						
					 
					
						2024-09-14 13:40:59 +03:00 
						 
				 
			
				
					
						
							
							
								Cosmin Truta 
							
						 
					 
					
						
						
						
						
							
						
						
							3117b5f94a 
							
						 
					 
					
						
						
							
							oss-fuzz: Update the README file, the Docker file and the build script  
						
						
						
						
					 
					
						2024-09-12 18:26:10 +03:00 
						 
				 
			
				
					
						
							
							
								Mikhail Khachayants 
							
						 
					 
					
						
						
						
						
							
						
						
							68ba4f1f7d 
							
						 
					 
					
						
						
							
							oss-fuzz: Add fuzzing targets for simplified READ API  
						
						... 
						
						
						
						New target added to libpng_read_fuzzer.cc for simplified READ API. 
						
						
					 
					
						2024-09-09 23:45:06 +03:00 
						 
				 
			
				
					
						
							
							
								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 
							
						 
					 
					
						
						
						
						
							
						
						
							f5f8b98dbb 
							
						 
					 
					
						
						
							
							[libpng16] Remove "cd ../libpng" from oss-fuzz build.sh  
						
						
						
						
					 
					
						2017-10-09 21:02:15 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							293b6aaa59 
							
						 
					 
					
						
						
							
							[libpng16] Revert to using the system zlib with the libpng fuzzer  
						
						
						
						
					 
					
						2017-10-07 12:38:04 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							98a3b2a5c2 
							
						 
					 
					
						
						
							
							[libpng16] Use --with-libpng-prefix=OSS_FUZZ_ while building the fuzzer  
						
						
						
						
					 
					
						2017-10-07 09:46:51 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							78ad1208d6 
							
						 
					 
					
						
						
							
							[libpng16] Use "--with-zlib-prefix=z_" while building oss-fuzz fuzzer  
						
						
						
						
					 
					
						2017-10-05 08:31:26 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							477a241c10 
							
						 
					 
					
						
						
							
							[libpng16] Use --zprefix in oss-fuzz libpng build to avoid conflict with system libz.  
						
						
						
						
					 
					
						2017-10-03 09:51:09 -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 
							
						 
					 
					
						
						
						
						
							
						
						
							2ee8cb0559 
							
						 
					 
					
						
						
							
							[libpng16] Imported from libpng-1.6.33.tar  
						
						
						
						
					 
					
						2017-09-28 13:58:30 -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 
							
						 
					 
					
						
						
						
						
							
						
						
							4f0a0b9a94 
							
						 
					 
					
						
						
							
							[libpng16] Build fuzzer with "-O0" to defeat optimizer removing "dead" code  
						
						
						
						
					 
					
						2017-09-25 08:15:51 -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 
							
						 
					 
					
						
						
						
						
							
						
						
							051dcaf877 
							
						 
					 
					
						
						
							
							[libpng16] Added a copy of Dockerfile to the contrib/oss-fuzz directory  
						
						
						
						
					 
					
						2017-09-08 08:19:31 -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