Glenn Randers-Pehrson
a390897ba4
[libpng16] Fixed a new signed-unsigned comparison in pngrtran.c (Max Stepin).
...
Removed some useless typecasts from contrib/tools/png-fix-itxt.c
2015-07-01 14:06:39 -05:00
Glenn Randers-Pehrson
9d4ea3014b
[libpng16] Imported from libpng-1.6.18beta08.tar
2015-06-30 10:54:44 -05:00
Glenn Randers-Pehrson
c6f629ffdd
[libpng16] Unlink temporary file immediately in pngstest (PNG_USE_MKSTEMP)
2015-06-11 16:28:54 -05:00
Glenn Randers-Pehrson
f6e7551f06
[libpng16] Eliminated the final two Coverity defects (insecure temporary file
...
handling in contrib/libtests/pngstest.c; possible overflow of
unsigned char in contrib/tools/png-fix-itxt.c). To use the "secure"
file handling, define PNG_USE_MKSTEMP, otherwise "tmpfile()" will
continue to be used.
2015-06-10 07:05:18 -05:00
Glenn Randers-Pehrson
867f2ec058
[libpng16] Imported from libpng-1.6.18beta07.tar
2015-06-06 17:03:14 -05:00
Glenn Randers-Pehrson
b26b51d154
[libpng16] Quieted Coverity issues in pngfix.c, png-fix-itxt.c, pngvalid.c,
...
pngstest.c, and pngimage.c. Most seem harmless, but png-fix-itxt
would only work with iTXt chunks with length 255 or less.
2015-06-03 16:07:01 -05:00
Glenn Randers-Pehrson
f50b593ac0
[libpng16] Update revision information in cexcept.h as required by the license.
2015-06-03 15:41:46 -05:00
John Bowler
b780eba4e4
[libpng16] Fixed cexcept.h in which GCC 5 now reports that one of the auto
...
variables in the Try macro needs to be volatile to prevent value
being lost over the setjmp.
2015-06-03 14:46:34 -05:00
Glenn Randers-Pehrson
b66de48b3b
[libpng16] Changed png_voidcast(), etc., to voidcast(), etc., in
...
contrib/tools/pngfix.c to avoid confusion with the libpng private macros.
2015-05-30 22:57:33 -05:00
Glenn Randers-Pehrson
d8d18fbb02
[libpng16] Imported from libpng-1.6.18beta03.tar
2015-05-06 16:39:31 -05:00
John Bowler
74428df2fd
[libpng16] Improved DIV65535 algorithm in simpleover.c. By experiment,
...
(x + (x>>16) + 32769) works as well as the previous form and avoids one shift.
2015-05-06 11:41:17 -05:00
Glenn Randers-Pehrson
d6b1375bf5
[libpng16] Trivial editing of comments in contrib/examples/simpleover.c
2015-05-04 20:25:31 -05:00
John Bowler
0f12df19a1
[libpng16] Added PNG generation tool, fixed unitialized pointer in
...
simpleover. Also added a comment to png.h pointing out that the pointer must
be set to NULL! (simpleover crashes with any slightly complex command lines
without this fix.)
2015-05-04 19:58:41 -05:00
John Bowler
cde3078963
[libpng16] Added contrib/examples/simpleover.c, to demonstrate how to handle
...
alpha compositing of multiple images, using the "simplified API"
2015-05-02 19:53:40 -05:00
John Bowler
a21a5b22c1
[libpng16] Fixed rgb_to_gray checks and added tRNS checks to pngvalid.c
2015-03-30 21:38:31 -05:00
Glenn Randers-Pehrson
218a6fe9e5
[libpng16] Bump version to 1.6.18beta01
2015-03-26 08:55:25 -05:00
Glenn Randers-Pehrson
c98f7fb4e3
[libpng16] Imported from libpng-1.6.17.tar
2015-03-26 08:11:12 -05:00
Glenn Randers-Pehrson
bc27b2f432
[libpng16] Imported from libpng-1.6.17rc02.tar
2015-03-09 09:20:46 -05:00
Glenn Randers-Pehrson
494e75ac83
[libpng16] Fixed some typos in the pngfix usage message.
2015-02-26 10:39:13 -06:00
Glenn Randers-Pehrson
018b4fccb9
[libpng16] Happy New Year! Update copyright year.
2014-12-31 18:45:23 -06:00
John Bowler
b6788ccaff
[libpng16] Implement previously untested libpng transforms in pngvalid.c
2014-12-29 16:31:58 -06:00
John Bowler
19ec55f40e
[libpng16] Added testing of png_set_packing() to pngvalid.c
2014-12-27 19:10:04 -06:00
John Bowler
6a6eb354ff
[libpng16] Removed user limits from pngfix. Also pass NULL pointers to
...
png_read_row to skip the unnecessary row de-interlace stuff.
2014-12-24 18:54:08 -06:00
Glenn Randers-Pehrson
ecd074945c
[libpng16] Bump version to 1.6.17beta01
2014-12-21 22:56:42 -06:00
Glenn Randers-Pehrson
88dd30b232
[libpng16] Imported from libpng-1.6.16.tar
2014-12-21 21:53:00 -06:00
Glenn Randers-Pehrson
f43b5e3709
[libpng16] Imported from libpng-1.6.16beta03.tar
2014-12-20 19:21:32 -06:00
John Bowler
a00ea0aeae
[libpng16] Quiet a "comparison always true" warning in pngstest.c (John Bowler).
2014-12-16 19:18:06 -06:00
Glenn Randers-Pehrson
86a7eef997
[libpng16] Imported from libpng-1.6.16beta01.tar
2014-12-14 12:38:35 -06:00
Glenn Randers-Pehrson
2d24cbdd98
[libpng16] Bump version to 1.6.16beta01
2014-11-21 08:25:32 -06:00
Glenn Randers-Pehrson
e8ef689cb9
[libpng16] Imported from libpng-1.6.15.tar
2014-11-20 10:22:57 -06:00
Glenn Randers-Pehrson
fa49aae286
[libpng16] Imported from libpng-1.6.15beta08.tar
2014-11-08 09:08:03 -06:00
Glenn Randers-Pehrson
61ea3eacb0
[libpng16] Reverted use png_get_libpng_ver(NULL) instead of PNG_LIBPNG_VER_STRING
...
in the manual, example.c, pngtest.c, and applications in the contrib directory.
It was incorrect advice.
2014-11-06 06:39:56 -06:00
John Bowler
03df189954
[libpng16] Fixed array size calculations to avoid warnings. At various points
...
in the code the number of elements in an array is calculated using
sizeof. This generates a compile time constant of type (size_t) which
is then typically assigned to an (unsigned int) or (int). Some versions
of GCC on 64-bit systems warn about the apparent narrowing, even though
the same compiler does apparently generate the correct, in-range,
numeric constant. This adds appropriate, safe, casts to make the
warnings go away.
2014-11-05 17:19:36 -06:00
John Bowler
6f2c50e7fc
[libpng16] Free all allocated memory in pngimage. The file buffer cache was left
...
allocated at the end of the program, harmless but it causes memory
leak reports from clang.
2014-11-05 17:11:59 -06:00
Glenn Randers-Pehrson
f1b547a509
[libpng16] Use png_get_libpng_ver(NULL), not PNG_LIBPNG_VER_STRING
2014-11-04 23:33:46 -06:00
Glenn Randers-Pehrson
edb772fd6d
[libpng16] Imported from libpng-1.6.14.tar
2014-10-22 19:32:52 -05:00
Glenn Randers-Pehrson
36b246a571
[libpng16] Imported from libpng-1.6.14beta04.tar
2014-09-27 10:28:57 -05:00
Glenn Randers-Pehrson
af557d98e1
[libpng16] Imported from libpng-1.6.14beta03.tar
2014-09-19 07:58:00 -05:00
Glenn Randers-Pehrson
551019baf6
[libpng16] Revert recent pngvalid.c changes and define FE_DIVBYZERO, etc.,
...
if not already defined.
2014-09-18 16:41:40 -05:00
Glenn Randers-Pehrson
baa95a2d49
[libpng16] Do not include <fenv.h> when FLOATING_ARITHMETIC is not supported.
2014-09-18 09:23:45 -05:00
Glenn Randers-Pehrson
996046aed5
[libpng16] Use nanosleep() instead of usleep() in contrib/gregbook/rpng2-x.c
...
because usleep() is deprecated.
2014-09-14 16:34:09 -05:00
Glenn Randers-Pehrson
e4489f1db2
[libpng16] Only define usleep() in gregbook/rpng2-x.c if not already defined.
2014-09-14 15:06:00 -05:00
Glenn Randers-Pehrson
0df3198719
[libpng16] Imported from libpng-1.6.14beta01.tar
2014-09-14 14:23:32 -05:00
Glenn Randers-Pehrson
3a05d2df0f
[libpng16] Add "#include <setjmp.h>" to contrib/tools/pngfix.c (John Bowler)
2014-09-11 07:39:24 -05:00
Glenn Randers-Pehrson
de5e34f3ce
[libpng16] Add #include <setjmp.h> to contrib/tools/pngfix.c to allow "make" to
...
complete without setjmp support (bug report by Claudio Fontana)
2014-09-10 21:34:34 -05:00
Glenn Randers-Pehrson
0a3c788b51
[libpng16] Don't build contrib/tools/pngfix.c without setjmp support.
2014-09-10 17:27:53 -05:00
Glenn Randers-Pehrson
91319c67d5
[libpng16] Imported from libpng-1.6.13beta01.tar
2014-07-04 12:13:59 -05:00
Glenn Randers-Pehrson
33ebeec0b5
[libpng16] Split a long output string in contrib/gregbook/rpng2-x.c.
2014-06-13 15:34:36 -05:00
Glenn Randers-Pehrson
225af8f363
[libpng16] Removed "PNG_UNUSED()" inadvertently left in contrib/gregbook
...
/readpng2.c from the previous update.
2014-06-13 12:55:43 -05:00
Glenn Randers-Pehrson
151eb95305
[libpng16] Added "(void) png_ptr;" where needed in contrib/gregbook to quiet
...
compiler complaints about unused pointers.
2014-06-13 12:04:54 -05:00