Commit Graph

2575 Commits

Author SHA1 Message Date
Glenn Randers-Pehrson
7684bcae7d [libpng16] Make cmake install public header pnglibconf.h 2016-02-09 09:08:46 -06:00
Glenn Randers-Pehrson
461c7e45b5 [libpng16] Bump version to 1.6.22beta03 2016-02-08 17:13:14 -06:00
Glenn Randers-Pehrson
a4a54aa1bf [libpng16] Imported from libpng-1.6.22beta02.tar 2016-02-08 17:13:06 -06:00
Roger Leigh
337c694971 [libpng16] Remove extra pngvalid test from CMakeLists.txt 2016-01-30 17:06:13 -06:00
Glenn Randers-Pehrson
05591abeb1 [libpng16] Updated CHANGES, ANNOUNCE, change date in pngrtran.c 2016-01-30 10:08:47 -06:00
Glenn Randers-Pehrson
196a50a4bd Merge branch 'libpng16' of git://github.com/jbowler/libpng into libpng16 2016-01-30 10:00:51 -06:00
Glenn Randers-Pehrson
84a5b7a0f8 [libpng16] Remove redundante dependencies from CMakeLists.txt 2016-01-30 09:49:45 -06:00
Glenn Randers-Pehrson
ed23815985 [libpng16] Removed pngstest-pngsuite test from CMakeLists.txt 2016-01-30 09:32:25 -06:00
John Bowler
f1eafe8b01 Relax limit checks on gamma values.
As suggested in the comments gamma values outside the range currently permitted
by png_set_alpha_mode are useful for HDR data encoding.  These values are
already permitted by png_set_gamma so it is reasonable caution to extend the
png_set_alpha_mode range as HDR imaging systems are starting to emerge.

Signed-off-by: John Bowler <jbowler@acm.org>
2016-01-29 18:09:49 -08:00
Glenn Randers-Pehrson
2d3bd021d0 Merge branch 'libpng16' of git://github.com/jbowler/libpng into libpng16 2016-01-29 16:23:51 -06:00
Glenn Randers-Pehrson
2a28a4320a [libpng16] Update copyright information in cmake scripts. 2016-01-29 09:14:41 -06:00
Roger Leigh
8fb55653d1 [libpng16] cmake: Sort test file lists for consistency 2016-01-29 08:25:14 -06:00
John Bowler
e717842a54 pngstest: options to fix per-file seed
Also avoid command output substition in tests/pngstest and fix the collation
locale to ASCII/C/POSIX

Signed-off-by: John Bowler <jbowler@acm.org>
2016-01-28 23:10:04 -08:00
Roger Leigh
74e481c743 [libpng16] Updated CMakeLists.txt, added supporting scripts/gen*.cmake.in
and test.cmake.in
2016-01-28 15:58:45 -06:00
John Bowler
98c6fa2495 PNG_IMAGE_PNG_SIZE_MAX error correction
The macro underreported the size (by up to 512 bytes) of an 8-bit non-color
palette based memory format because it failed to take into account that the
memory palette has to be expanded to full RGB when it is written to PNG.

This is not likely to be a serious bug because the macro is new, the memory
format in question is likely to be rarely used and the result of an undersized
buffer fails in a safe way.

Signed-off-by: John Bowler <jbowler@acm.org>
2016-01-27 16:22:51 -08:00
Glenn Randers-Pehrson
4dac51d260 [libpng16] Update CHANGES and ANNOUNCE 2016-01-27 06:57:02 -06:00
John Bowler
ac796d3f9a Only use exit(77) in configure builds
Signed-off-by: John Bowler <jbowler@acm.org>
2016-01-26 17:55:39 -08:00
Glenn Randers-Pehrson
e0ce90ea0a [libpng16] Bump version to 1.6.22beta02 2016-01-23 14:58:07 -06:00
Glenn Randers-Pehrson
f6a23fe205 [libpng16] Imported from libpng-1.6.22beta01.tar 2016-01-23 14:06:39 -06:00
Glenn Randers-Pehrson
d2b8d46658 [libpng16] Document new png_image_write_to_memory() API 2016-01-23 14:01:44 -06:00
Glenn Randers-Pehrson
93a3bc7343 [libpng16] Revised workaround for Coverity issue in pngvalid.c 2016-01-23 10:09:18 -06:00
John Bowler
7f576964d8 pngunknown.c: handle unknown IDAT
This is the test backported from 1.7 to ensure that when treating IDATs as
unknown the test does not fail if there are more than one IDAT chunks in the
file.

Signed-off-by: John Bowler <jbowler@acm.org>
2016-01-18 19:19:14 -08:00
Glenn Randers-Pehrson
0873ae8242 Merge branch 'libpng16-simple-memory-II' of git://github.com/jbowler/libpng-1 into libpng16 2016-01-18 13:01:19 -06:00
Glenn Randers-Pehrson
571abc9a67 [libpng16] Update CHANGES and ANNOUNCE, fix typos in png.h comments 2016-01-18 12:55:51 -06:00
John Bowler
c68f20cecc Merge branch 'libpng16' into libpng16-simple-memory-II 2016-01-18 10:50:46 -08:00
Glenn Randers-Pehrson
94f4e972b5 Merge branch 'libpng16-simple-memory-II' of git://github.com/jbowler/libpng-1 into libpng16 2016-01-18 12:43:36 -06:00
John Bowler
175a126a1a Simplified API: write-to-memory, overflow handling
This implements an API and provides a number of assist macros to allow an
application which uses the simplified API write to bypass stdio and write
directly to memory.

It also includes some warnings (png.h) and some check code to detect *possible*
overflow in the ROW_STRIDE and simplified image SIZE macros.  This disallows
image width/height/format that *might* overflow.  A quiet API change that limits
in-memory image size (uncompressed) to less that 4GByte and image row size
(stride) to less than 2GByte.

Signed-off-by: John Bowler <jbowler@acm.org>
2016-01-18 09:53:38 -08:00
Glenn Randers-Pehrson
95d2726ecc [libpng16] Update change dates in pngvalid.c and pngfix.c 2016-01-18 09:24:23 -06:00
Glenn Randers-Pehrson
b8dbd78de8 [libpng16] Updated CHANGES, ANNOUNCE, and copyright notice in pngunknown.c 2016-01-18 09:09:33 -06:00
John Bowler
777dbf46dc pngunknown: fix NO_STDIO build
pngunknown.c calls png_init_io (always), skip the test if there is no stdio.h
support.

Signed-off-by: John Bowler <jbowler@acm.org>
2016-01-18 05:08:27 -08:00
Glenn Randers-Pehrson
e8558d2160 [libpng16] Changed PNG_USE_MKSTEMP to __COVERITY__ to select alternate
"tmpfile()" implementation in contrib/libtests/pngstest.c
2016-01-17 16:08:39 -06:00
Glenn Randers-Pehrson
5031c77d85 [libpng16] Bump version to 1.6.22beta01 2016-01-16 08:00:09 -06:00
Glenn Randers-Pehrson
fc0786a442 [libpng16] Imported from libpng-1.6.21.tar 2016-01-15 13:51:06 -06:00
Glenn Randers-Pehrson
780079e771 [libpng16] Worked around a false-positive Coverity issue in pngvalid.c. 2016-01-13 09:50:41 -06:00
Glenn Randers-Pehrson
253326c52d [libpng16] Deleted a left-over cut-and-paste line in png_get_copyright(). 2016-01-08 06:30:15 -06:00
Glenn Randers-Pehrson
81dfc2163b [libpng16] Imported from libpng-1.6.21rc02.tar 2016-01-07 09:31:16 -06:00
Glenn Randers-Pehrson
9b54f0037a [libpng16] Update CHANGES and ANNOUNCE 2016-01-06 15:59:49 -06:00
John Bowler
b416dc5fc8 Mark 'limit' UNUSED in transform_range_check
Only affects release builds

Signed-off-by: John Bowler <jbowler@acm.org>
2016-01-06 12:58:01 -08:00
Glenn Randers-Pehrson
ecc022ee5f [libpng16] Bump version to libpng-1.6.21rc02.tar 2016-01-06 13:26:32 -06:00
Glenn Randers-Pehrson
092b8d7bf3 [libpng16] Imported from libpng-1.6.21rc01.tar 2016-01-04 08:24:14 -06:00
Glenn Randers-Pehrson
912f030532 [libpng16] Removed redundant "option WRITE" from scripts/pnglibconf.dfa 2016-01-02 13:43:52 -06:00
Glenn Randers-Pehrson
66db757dd4 [libpng16] Happy 2016! Updated copyright year 2016-01-02 13:40:27 -06:00
Glenn Randers-Pehrson
9616bf6882 [libpng16] In projects/vstudio, combined readme.txt and WARNING into README.txt 2015-12-29 08:24:38 -06:00
Glenn Randers-Pehrson
dea53bb460 [libpng16] Bump version to 1.6.21beta04 2015-12-19 10:48:20 -06:00
Glenn Randers-Pehrson
35a5a6c16d [libpng16] Imported from libpng-1.6.21beta03.tar 2015-12-19 10:48:12 -06:00
Glenn Randers-Pehrson
42b438b7dc [libpng16] Update CHANGES and ANNOUNCE 2015-12-17 20:51:13 -06:00
John Bowler
18765d0032 Fix undefined behavior in pngvalid.c
Undefined because (png_byte) << shift is undefined if it changes the signed bit
(because png_byte is promoted to int).  The libpng exported functions
png_get_uint_32 and png_get_uint_16 handle this.

Bug reported by David Drysdale as a result of reports from UBSAN in clang 3.8.

This changes pngvalid to use BE random numbers; this used to produce errors but
these should not be fixed as a result of the previous changes.

Signed-off-by: John Bowler <jbowler@acm.org>
2015-12-17 12:53:08 -08:00
Glenn Randers-Pehrson
4aa590288b [libpng16] Updated CHANGES and ANNOUNCE 2015-12-15 12:55:56 -06:00
Glenn Randers-Pehrson
315b39c73a Merge branch 'libpng16' of git://github.com/jbowler/libpng-1 into libpng16 2015-12-15 12:28:33 -06:00
John Bowler
2225ca0a54 pngvalid with 'limit' checks disabled in RC+
This widens the 'limit' check on the internally calculated error limits in the
'DIGITIZE' case (the code used prior to 1.7 for rgb_to_gray error checks) and it
changes the check to only operate in non-release builds (base build type not RC
or RELEASE.)

Signed-off-by: John Bowler <jbowler@acm.org>
2015-12-15 08:28:47 -08:00