John Bowler
0a9f8eb272
[libpng16] Fixed configurations where floating point is completely disabled.
...
Because of the changes to support symbol prefixing PNG_INTERNAL_FUNCTION
declares floating point APIs during libpng builds even if they are completely
disabled. This requires the png floating point types (png_double*) to be
declared even though the functions are never actually defined. This
change provides a dummy definition so that the declarations work, yet any
implementation will fail to compile because of an incomplete type.
2012-08-09 07:35:50 -05:00
Glenn Randers-Pehrson
cad0150d12
[libpng16] Corrected handling of row_pointers in example.c and added some
...
comments. It has apparently been wrong since libpng-1.0.1c (confusing
use of a 1D and a 2D array for the image source).
2012-08-08 21:11:55 -05:00
Glenn Randers-Pehrson
ee427ad39a
[libpng16] Add information about png_calloc() to the manual.
2012-08-03 08:39:54 -05:00
Glenn Randers-Pehrson
01b813000a
[libpng16] Removed references to png_zalloc() and png_zfree() from the manual.
...
They have not been exported to applications since libpng12.
2012-08-03 07:23:42 -05:00
Glenn Randers-Pehrson
449db5a9c1
[libpng16] Check for existence of __GNUC_MINOR__ before testing its value
...
(This is probably unnecessary because it's inside a __GNUC__ block.)
2012-07-21 13:18:42 -05:00
Glenn Randers-Pehrson
80b67e47e8
[libpng16] Added default blank "#define PNG_RESTRICT" to pngconf.h
...
This has been missing since the feature was introduced in libpng-1.6.0beta04.
2012-07-21 12:56:46 -05:00
Glenn Randers-Pehrson
0a9f26e219
[libpng16] Do not use __restrict when GNUC is <= 3.1
2012-07-21 11:16:17 -05:00
Glenn Randers-Pehrson
05ed18e7d1
[libpng16] Bump version to 1.6.0beta27
2012-07-21 11:02:42 -05:00
Glenn Randers-Pehrson
edb3523a9b
[libpng16] Imported from libpng-1.6.0beta26.tar
2012-07-10 21:00:41 -05:00
Glenn Randers-Pehrson
46cb5109bd
[libpng16] Moved scripts/chkfmt to contrib/tools.
2012-06-25 14:14:17 -05:00
Glenn Randers-Pehrson
5845d3eabd
[libpng16] Removed scripts/makefile.cegcc from the *.zip and *.7z
...
distributions; it depends on configure, which is not included in those
archives.
2012-06-25 09:11:53 -05:00
Glenn Randers-Pehrson
4a37149f66
[libpng16] Bump version to 1.6.0beta26
2012-06-16 14:50:34 -05:00
Glenn Randers-Pehrson
fc58b17772
[libpng16] Imported from libpng-1.6.0beta25.tar
2012-06-16 14:42:22 -05:00
Glenn Randers-Pehrson
96b917056d
[libpng16] Revised png_set_keep_unknown_chunks() so num_chunks < 0 means
...
ignore all unknown chunks and all known chunks except for IHDR, PLTE, tRNS,
IDAT, and IEND. Previously it only meant ignore all unknown chunks, the
same as num_chunks == 0. Revised png_image_skip_unused_chunks() to
provide a list of chunks to be processed instead of a list of chunks to
ignore. Revised contrib/gregbook/readpng2.c accordingly.
2012-06-16 13:26:28 -05:00
Glenn Randers-Pehrson
0546e4e579
[libpng16] Document deprecation of png_convert_to_rfc1123() and its
...
replacement with png_convert_to_rfc1123_buffer().
2012-06-12 13:06:52 -05:00
Glenn Randers-Pehrson
05af5cd8fb
[libpng16] Fixed some typos and grammar in manual and comments
2012-06-09 10:35:17 -05:00
Glenn Randers-Pehrson
d630301d99
[libpng16] Bump version to 1.6.0beta25
2012-06-07 10:29:14 -05:00
Glenn Randers-Pehrson
2ec8409046
[libpng16] Imported from libpng-1.6.0beta24.tar
2012-06-07 10:29:06 -05:00
Glenn Randers-Pehrson
905cc94e3d
[libpng16] Don't check palette indexes if num_palette is 0 (as it can be in
...
MNG files).
2012-06-07 10:18:25 -05:00
Glenn Randers-Pehrson
8f424b8270
[libpng16] Bump version to 1.6.0beta24
2012-06-06 13:54:41 -05:00
Glenn Randers-Pehrson
cc46157421
[libpng16] Imported from libpng-1.6.0beta23.tar
2012-06-06 13:54:28 -05:00
Glenn Randers-Pehrson
14ca47b453
[libpng16] Improved performance of new do_check_palette_indexes() function
...
(only update the value when it actually increases, move test for whether
the check is wanted out of the function.
2012-06-06 13:30:30 -05:00
Glenn Randers-Pehrson
b1e7771d5e
[libpng16] Do not depend upon a GCC feature macro being available for use in
...
generating the linker mapfile symbol prefix.
2012-06-03 19:30:02 -05:00
Glenn Randers-Pehrson
ff7b7ba060
[libpng16] Made fixes for new optimization warnings from gcc 4.7.0.
...
The compiler performs an optimization which is safe; however it then warns
about it. Changing the type of 'palette_number' in pngvalid.c removes the
warning.
2012-06-03 19:17:48 -05:00
Glenn Randers-Pehrson
1935d0738f
[libpng16] Revised CMakeLists.txt to not attempt to make a symlink under mingw.
2012-05-29 05:50:04 -05:00
Glenn Randers-Pehrson
04c1c078b9
[libpng16] Bump version to 1.6.0beta23
2012-05-23 13:19:38 -05:00
Glenn Randers-Pehrson
8f4d67218e
[libpng16] Imported from libpng-1.6.0beta22.tar
2012-05-23 13:19:30 -05:00
John Bowler
15f6fd3492
[libpng16] checked in contrib/libtests/pngstest.c which was omitted
2012-04-30 13:59:58 -05:00
John Bowler
b45416921b
[libpng16] Removed need for -Wno-cast-align with clang. clang correctly warns
...
on alignment increasing pointer casts when -Wcast-align is passed. This
fixes the cases clang warns about either (pngread.c) by eliminating the
casts from png_bytep to png_uint_16p or, for pngrutil.c where the cast
is previously verified or pngstest.c where it is OK by introducing new
png_aligncast macros to do the cast in a way that clang accepts.
2012-04-30 06:31:54 -05:00
Glenn Randers-Pehrson
040575c80b
[libpng16] Bump version to 1.6.0beta22
2012-04-28 06:34:57 -05:00
Glenn Randers-Pehrson
43309056ac
[libpng16] Imported from libpng-1.6.0beta21.tar
2012-04-28 06:34:48 -05:00
Glenn Randers-Pehrson
bc2a57f657
[libpng16] Changed deprecated NOOBJ and NOPROFILE to NO_OBJ and NO_PROFILE in
...
scripts/makefile.freebsd
2012-04-28 05:48:21 -05:00
Glenn Randers-Pehrson
56f22f4320
[libpng16] Added -lssp_nonshared in a comment in scripts/makefile.freebsd
2012-04-26 08:57:58 -05:00
Glenn Randers-Pehrson
cd39adb561
[libpng16] Removed #ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED in pngpriv.h around
...
declaration of png_handle_unknown().
2012-04-23 23:12:39 -05:00
Glenn Randers-Pehrson
b4f5c42092
[libpng16] Revised scripts/makefile.darwin: use system zlib; remove quotes
...
around architecture list; add missing ppc architecture; add architecture
options to shared library link; don't try to create a shared lib based on
missing RELEASE variable (Toby Thain).
2012-04-13 12:36:22 -05:00
Glenn Randers-Pehrson
e243a1fbd8
[libpng16] Enable png_set_check_for_invalid_index() for both read and write.
2012-04-13 12:35:21 -05:00
Glenn Randers-Pehrson
747b554a86
[libpng16] Edited new commentary in png.c
2012-03-29 08:28:19 -05:00
Glenn Randers-Pehrson
f229d4df3a
[libpng16] Bump version to 1.6.0beta21
2012-03-29 07:42:45 -05:00
Glenn Randers-Pehrson
96027d919f
[libpng16] Imported from libpng-1.6.0beta20.tar
2012-03-29 06:38:51 -05:00
Glenn Randers-Pehrson
58f277c18e
[libpng16] Revised png_set_text_2() to avoid potential memory corruption.
...
Fixes CVE-2011-3048.
2012-03-28 23:37:25 -05:00
John Bowler
921648a997
[libpng16] Recognize known sRGB ICC profiles while reading; prefer writing the
...
iCCP profile over writing the sRGB chunk, controlled by the
PNG_sRGB_PROFILE_CHECKS option.
2012-03-28 23:36:12 -05:00
John Bowler
23a30f8583
[libpng16] Prevent PNG_EXPAND+PNG_SHIFT doing the shift twice.
2012-03-28 11:38:02 -05:00
Glenn Randers-Pehrson
48015617d3
[libpng16] Recognize known sRGB ICC profiles while reading and issue a warning
...
about it, if PNG_WARN_IF_iCCP_IS_sRGB_SUPPORTED is defined.
2012-03-28 10:58:01 -05:00
John Bowler
13a87d9682
[libpng16] Fixed ICC profile parsing and sRGB profile recognition
...
and moved checksum-icc.c from contrib/libtests to contrib/tools.
2012-03-28 09:51:43 -05:00
John Bowler
c1217ee280
[libpng16] Write the profile MD5s from checksum-icc (and the date)
2012-03-22 07:53:00 -05:00
John Bowler
51d1e2be1b
[libng16] Added checksum-icc.c to contrib/libtests
2012-03-22 07:36:13 -05:00
John Bowler
f7677a348e
[libpng16] Use uLong 64 bits for crc32 return in profile check
2012-03-21 23:52:41 -05:00
Glenn Randers-Pehrson
8fbd60ded2
[libpng16] Recognize known sRGB ICC profiles while reading and handle them as
...
if the sRGB chunk had appeared instead.
2012-03-21 09:18:15 -05:00
John Bowler
b11b31aea2
[libpng16] Changed chunk handler warnings into benign errors, incrementally
...
load iCCP
2012-03-21 07:55:46 -05:00
Glenn Randers-Pehrson
51624965e2
[libpng16] Bump version to 1.6.0beta20
2012-03-19 11:04:48 -05:00