Glenn Randers-Pehrson
646fad9d55
[libpng16] Check for 0 return from png_get_rowbytes() in contrib/pngminus/*.c
...
to stop some Coverity issues (162705, 162706, and 162707).
2017-08-07 14:22:56 -05:00
Glenn Randers-Pehrson
06ec4252a4
[libpng16] Made the huge_*_chunk.png files smaller. I could have removed the
...
IEND chunks, too, but although no application will read them, they give humans
something to look at.
2017-08-07 13:15:31 -05:00
Glenn Randers-Pehrson
33848546a3
[libpng16] Added contrib/testpngs/crashers/huge-XXXX-chunk.png
2017-08-07 12:27:07 -05:00
Glenn Randers-Pehrson
fa2f72258a
[libpng16] Imported from libpng-1.6.32beta11.tar
2017-08-07 09:44:32 -05:00
Glenn Randers-Pehrson
7653aaa4b1
[libpng16] Rename bad_iccp.png, huge_idat.png to bad_iCCP.png, huge_iDAT.png
...
in the contrib/testpngs/crashers directory.
2017-08-07 07:34:02 -05:00
Glenn Randers-Pehrson
c339da7fc2
[libpng16] Removed JuNK and JuNk chunks from empty_ancillary_chunks.png test file.
2017-08-06 10:52:01 -05:00
Glenn Randers-Pehrson
c33d624988
[libpng] Added huge_IDAT.png and empty_ancillary_chunks.png to testpngs/crashers
...
Make pngtest --strict, --relax, --xfail options imply -m (multiple).
2017-08-05 11:01:18 -05:00
Glenn Randers-Pehrson
378e926d78
[libpng16] Added contrib/testpngs/crashers/bad_iccp.png
2017-08-04 19:29:23 -05:00
Glenn Randers-Pehrson
207392821d
[libpng16] Moved bad pngs from tests to contrib/libtests/crashers
...
Moved testing of bad pngs into a separate tests/pngtest-badpngs script
Added the --xfail (expected FAIL) option to pngtest.c. It writes XFAIL
in the output but PASS for the libpng test.
2017-08-04 14:17:28 -05:00
Glenn Randers-Pehrson
bc68c41d5f
[libpng16] Initialized btoa[] in pngstest.c; stop memory leak in png_handle_eXIf()
...
when returning with an error.
2017-08-01 15:24:21 -05:00
Glenn Randers-Pehrson
68a80b10fe
[libpng16] updated tests/pngunknown-sAPI; it works now.
2017-07-31 20:22:08 -05:00
Glenn Randers-Pehrson
c17b7b38b0
[libpng16] Updated contrib/libtests/pngunknown.c with eXIf chunk. Note:
...
the unknown-sAPI test is failing.
2017-07-31 19:04:15 -05:00
Glenn Randers-Pehrson
9fcb846402
[libpng16] Imported from libpng-1.6.31.tar
2017-07-27 05:27:17 -05:00
John Bowler
72d07d3202
[libpng16] Removed one of the GCC-7.1.0 'strict-overflow' warnings that
...
result when integers appear on both sides of a compare. Worked around the
others by forcing the strict-overflow setting in the relevant functions to
a level where they are not reported.
Changed "FALL THROUGH" comments to "FALLTHROUGH" because GCC doesn't like
the space.
Worked around some C-style casts from (void*) because g++ 5.4.0 objects
to them.
Increased the buffer size for 'sprint' to pass the gcc 7.1.0 'sprint
overflow' check that is on by default with -Wall -Wextra.
2017-07-11 08:47:05 -05:00
Glenn Randers-Pehrson
9f7134c3fc
[libpng16] Update some "last changed" dates
2017-06-29 17:52:18 -05:00
Viktor Szakats
95f3c07d6f
use HTTPS for zlib.net
2017-05-27 13:54:30 +00:00
Glenn Randers-Pehrson
8359b90057
[libpng16] Fix typo recently introduced in rpng-win.c
2017-04-24 15:48:45 -05:00
Glenn Randers-Pehrson
11c25c0e9e
[libng16] Update copyright notices in revised "contrib" files.
2017-04-23 18:48:32 -05:00
Glenn Randers-Pehrson
b99308a33c
[libpng16] Check for integer overflow in contrib/tools/genpng.
2017-04-23 18:41:28 -05:00
Glenn Randers-Pehrson
170a44b222
[libpng16] Check for integer overflow in contrib/visupng.
2017-04-23 17:33:10 -05:00
Glenn Randers-Pehrson
53f22aed41
[libpng16] Document need to check for integer overflow when allocating a pixel
...
buffer for multiple rows in contrib/gregbook, contrib/pngminus, example.c, and
in the manual (suggested by Jaeseung Choi).
2017-04-22 15:21:58 -05:00
Viktor Szakats
b3ffdc5991
URL updates
2017-03-31 23:25:57 +00:00
Glenn Randers-Pehrson
03a6f3f9c9
[libpng16] Bump version to 1.6.30beta01
2017-03-16 10:40:01 -05:00
Glenn Randers-Pehrson
d42e88d5b3
[libpng16] Imported from libpng-1.6.29.tar
2017-03-16 07:26:33 -05:00
Glenn Randers-Pehrson
a8de1a70d1
[libpng16] Imported from libpng-1.6.29beta03.tar
2017-03-01 07:15:29 -06:00
Glenn Randers-Pehrson
b475d0593c
[libpng16] Update credits and copyright information about powerpc-vsx code
2017-02-22 15:14:22 -06:00
Glenn Randers-Pehrson
7980c79d69
Merge branch 'libpng16' of git://github.com/barkovv/libpng into libpng16
2017-02-21 20:41:27 -06:00
John Bowler
7218761fe1
Fix right code in the wrong place.
...
The recovery stuff was in the wrong if branches; the comments were
correct.
Signed-off-by: John Bowler <jbowler@acm.org>
2017-02-21 15:15:48 -08:00
Vadim Barkov
8a242668fd
Added warning with supported OSes list for VSX check
2017-02-01 14:26:02 +00:00
Vadim Barkov
b42e8bce3a
Added PNG_UNUSED macro in contrib/powerpc/linux{_aux}.c
2017-02-01 14:03:57 +00:00
Vadim Barkov
b1be78460a
Fixed mixed tabs and spaces in contrib/powerpc/linux_aux.c
2017-02-01 13:58:54 +00:00
Vadim Barkov
d57bed7838
Fixed mixed tabs and spacing and comments in contrib/powerpc/linux.c
2017-02-01 13:57:50 +00:00
Vadim Barkov
f2b829166d
Removed commentary about contrib/powerpc/READM
2017-01-31 12:13:39 +00:00
Vadim Barkov
80041d15b2
Update contrib/powerpc/linux_aux.c header
2017-01-31 15:07:14 +03:00
Vadim Barkov
bea573d370
Added auxv-based VSX detection method for PowerPC and enabled it by default
2017-01-31 11:59:11 +00:00
Vadim Barkov
c47ddcf22b
Merge branch 'libpng16' into libpng16
2017-01-30 18:44:09 +03:00
Vadim Barkov
ee5804fa14
Added PowerPC detection code for linux
2017-01-14 16:47:10 +03:00
Glenn Randers-Pehrson
dd24a6ca15
[libpng16] Imported from libpng-1.6.29beta01.tar
2017-01-12 10:02:56 -06:00
Glenn Randers-Pehrson
4c0740c8de
[libpng16] Simplified conditional compilation in pngvalid.c, for AIX (Michael Felt).
2017-01-12 09:48:12 -06:00
Glenn Randers-Pehrson
bef76802de
[libpng16] Moved SSE2 optimization code into the main libpng source directory.
...
Configure libpng with "configure --enable-intel-sse" or compile
libpng with "-DPNG_INTEL_SSE" in CPPFLAGS to enable it. This patch was
previously applied to libpng-1.6.28rc03 but withdrawn to allow time for QA.
2017-01-05 18:09:33 -06:00
Glenn Randers-Pehrson
93b3476358
[libpng16] Imported from libpng-1.6.28rc03.tar
2017-01-03 22:25:10 -06:00
Glenn Randers-Pehrson
edef058e18
[libpng16] Moved SSE2 optimization code into the main libpng source directory.
...
Configure libpng with "configure --enable-intel-see" or compile
libpng with "-DPNG_INTEL_SSE" in CPPFLAGS to enable it.
2017-01-03 19:15:15 -06:00
Glenn Randers-Pehrson
a3b5edc934
[libpng16] Bump version to 1.6.27
2016-12-29 07:50:33 -06:00
Glenn Randers-Pehrson
61a9a054fd
[libpng16] Imported from libpng-1.6.27rc01.tar
2016-12-27 08:24:22 -06:00
John Bowler
13a354f81e
Remove 'defined' within macro
...
This removes the use of a macro containing the pre-processor 'defined'
operator. It is unclear whether this is valid; a macro which
"generates" 'defined' is not permitted, but the use of the work
"generates" within the C90 standard seems to imply more than simple
substitution of an expression itself containing a well-formed defined
operation.
Signed-off-by: John Bowler <jbowler@acm.org>
2016-12-26 16:43:15 -08:00
Glenn Randers-Pehrson
0c440812db
[libpng16] Imported from libpng-1.6.26.tar
2016-10-19 19:11:38 -05:00
Glenn Randers-Pehrson
436ce2c6e9
[libpng16] Bump version to 1.6.26rc02
2016-10-17 12:46:41 -05:00
Glenn Randers-Pehrson
f6497e03d1
i[lbpng16] Quieted (bogus?) clang warnings about "absolute value has no effect".
...
Fixed offsets in contrib/intel/intel_sse.patch
2016-10-02 20:07:22 -05:00
Glenn Randers-Pehrson
ad3318ddc8
[libpng16] Bump version to 1.6.26beta03
2016-10-01 19:44:42 -05:00
John Bowler
319c9852bf
Unsigned overflow
...
Remove all currently detected cases of unsigned overflow. Detection is
runtime, so test case dependent. The changes to pngvalid.c eliminate
spurious and probably invalid tests with one while loop exception.
Apart from that and the change to the dependence on the intended
unsigned overflow in pngtrans.c the changes are limited to altering the
meme for an unsigned 'x' from:
while (x-- > 0)
to
for (; x > 0; --x)
This works because, in all cases, the control variable is not used in
the loop. The 'while' meme was, at one time, warn'ed by GCC so it is
probably a good change, for some weird religious value of good.
Signed-off-by: John Bowler <jbowler@acm.org>
2016-09-30 18:37:22 -07:00