Glenn Randers-Pehrson
39c420834f
[libpng17] Imported from libpng-1.7.0beta33.tar
v1.7.0beta33
2014-02-27 08:27:24 -06:00
Glenn Randers-Pehrson
f898f69f46
[libpng17] Fixed typos in the manual and in scripts/pnglibconf.dfa
...
(CFLAGS -> CPPFLAGS and PNG_USR_CONFIG -> PNG_USER_CONFIG).
2014-02-26 22:24:20 -06:00
Glenn Randers-Pehrson
352f43cdc6
[libpng17] Bump version to 1.7.0beta33
2014-02-26 13:24:57 -06:00
Glenn Randers-Pehrson
f99393490d
[libpng17] Imported from libpng-1.7.0beta32.tar
v1.7.0beta32
2014-02-26 12:54:47 -06:00
Glenn Randers-Pehrson
deb920b4a7
[libpng17] Don't recognize known sRGB profiles as sRGB if they have been hacked,
...
but don't reject them and don't issue a copyright violation warning.
2014-02-26 11:52:00 -06:00
Glenn Randers-Pehrson
148cdac18f
[libpng17] Moved some documentation from png.h to libpng.3 and libpng-manual.txt
...
Minor editing of contrib/arm-neon/README and contrib/examples/*.c
2014-02-26 11:50:02 -06:00
Glenn Randers-Pehrson
51ecc14a8a
[libpng17] Document how to use different crc_action after reading the image
...
data in the sequential reader.
2014-02-23 13:36:31 -06:00
Glenn Randers-Pehrson
713a20c57d
[libpng17] Added png_ptr->process_mode = PNG_READ_IDAT_MODE in
...
png_push_read_chunk after recognizing the IDAT chunk, which avoids an
infinite loop while reading a datastream whose first IDAT chunk is of
zero-length.
2014-02-23 10:09:57 -06:00
Glenn Randers-Pehrson
4526f546ba
[libpng17] Use a user warning handler in contrib/gregbook/readpng2.c instead
...
of default, so warnings will be put on stderr even if libpng has CONSOLE_IO
disabled.
2014-02-23 10:08:50 -06:00
Glenn Randers-Pehrson
0c5acfa19e
[libpng17] Check for __has_extension before using it in pngconf.h, to
...
support older Clang versions (Jeremy Sequoia).
2014-02-20 07:11:17 -06:00
Glenn Randers-Pehrson
848eeacb41
[libpng17] Check for info_ptr == NULL early in png_read_end() so we don't need
...
to run all the png_handle_*() and depend on them to return if info_ptr == NULL.
This improves the performance of png_read_end(png_ptr, NULL) and makes
it more robust against future programming errors.
2014-02-17 11:53:35 -06:00
John Bowler
2ced844b0e
[libpng17] Deleted a now-redundant #define png_error from pngvalid.c
2014-02-16 22:51:23 -06:00
Glenn Randers-Pehrson
e2c5ed8d1d
[libpng17] Removed "#define PNG_NO_WARNINGS" from contrib/pngminim/*/pngusr.h
...
because warnings are already turned off in the *.dfa files.
2014-02-16 15:48:58 -06:00
John Bowler
76004ce6ed
[libpng17] Moved OS dependent code from arm/arm_init.c, to allow the included
...
implementation of the ARM NEON discovery function to be set at
build-time and provide sample implementations from the current code in the
contrib/arm-neon subdirectory. The __linux__ code has also been changed to
compile and link on Android by using /proc/cpuinfo, and the old linux code
is in contrib/arm-neon/linux-auxv.c. The new code avoids POSIX and Linux
dependencies apart from opening /proc/cpuinfo and is C90 compliant.
2014-02-16 15:41:51 -06:00
Glenn Randers-Pehrson
258b986917
[libpng17] Moved redefines of png_error(), png_warning(), png_chunk_error(),
...
and png_chunk_warning() from pngpriv.h to png.h to make them visible
to libpng-calling applications.
2014-02-16 08:36:28 -06:00
Glenn Randers-Pehrson
50a09830b8
[libpng17] Bump version to 1.7.0beta32
2014-02-05 23:32:25 -06:00
Glenn Randers-Pehrson
9a3f244085
[libpng17] Imported from libpng-1.7.0beta31.tar
v1.7.0beta31
2014-02-05 22:46:04 -06:00
John Bowler
fb1305faeb
[libpng17] Support builds with unsupported PNG_TRANSFORM_* values. All of the
...
PNG_TRANSFORM_* values are always defined in png.h and, because they
are used for both read and write in some cases, it is not reliable
to #if out ones that are totally unsupported. This change adds error
detection in png_read_image() and png_write_image() to do a
png_app_error() if the app requests something that cannot be done
and it adds corresponding code to pngimage.c to handle such options
by not attempting to test them.
2014-02-05 20:13:19 -06:00
Glenn Randers-Pehrson
3d7f3bbab7
[libpng17] Deleted the other instance of "c = b;" which is the one that
...
triggered a scan-build warning in pngrutil.c.
2014-02-05 16:54:37 -06:00
Glenn Randers-Pehrson
2d032e966d
[libpng17' Restored a line, "c = b;", that was inadvertently deleted from the
...
PAETH filtering code from libpng-1.7.0beta24/pngrutil.c and reenabled
the pngimage tests.
2014-02-05 15:19:13 -06:00
Glenn Randers-Pehrson
8dd3784f7c
[libpng17] Disabled pngimage tests temporarily.
2014-02-05 13:22:13 -06:00
Glenn Randers-Pehrson
98b9371115
[libpng17] Fixed some typos in commentary of pngimage.c
2014-02-05 13:21:41 -06:00
John Bowler
d29413a2a9
[libpng17] Do not read invalid sBIT chunks. Previously libpng only checked sBIT
...
values on write, so a malicious PNG writer could therefore cause
the read code to return an invalid sBIT chunk, which might lead to
application errors or crashes. Such chunks are now skipped (with
chunk_benign_error).
2014-02-05 12:15:42 -06:00
John Bowler
dc63b03da1
[libpng17] Completed full working pngimage test program and added two test
...
scripts. Fixed combination of ~alpha with shift. On read invert alpha,
processing occurred after shift processing, which causes the final values to be
outside the range that should be produced by the shift. Reversing the
order on read makes the two transforms work together correctly and mirrors
the order used on write.
2014-02-05 11:39:59 -06:00
John Bowler
cf354c2c82
[libpng17] Make png_read_png() and png_write_png() prototypes in png.h depend
...
upon PNG_READ_SUPPORTED and PNG_WRITE_SUPPORTED.
Removed dependence on !PNG_READ_EXPAND_SUPPORTED for calling
png_set_packing() in png_read_png().
2014-02-05 10:55:35 -06:00
Glenn Randers-Pehrson
484dad1a19
[libpng17] Bump version to 1.7.0beta31
2014-02-02 15:27:04 -06:00
Glenn Randers-Pehrson
1695471118
[libpng17] Imported from libpng-1.7.0beta30.tar
v1.7.0beta30
2014-02-02 15:26:55 -06:00
Glenn Randers-Pehrson
ae14dcd404
[libpng17] Updated documentation about sCAL_s support.
2014-02-01 11:14:06 -06:00
Glenn Randers-Pehrson
302c58b8cf
[libpng17] Added pngimage test program for png_read_png and png_write_png.
...
This is a work-in-progress; no tests are run automatically at present and
the program by virtue of exhaustively testing all the transforms is
very slow.
2014-01-31 22:00:27 -06:00
Glenn Randers-Pehrson
39fee3cee1
[libpng17] Fixed a large number of instances where PNGCBAPI was omitted from
...
function definitions.
2014-01-31 21:55:27 -06:00
Glenn Randers-Pehrson
b7362c6738
[libpng17] Bump version to 1.7.0beta30
2014-01-30 14:52:37 -06:00
Glenn Randers-Pehrson
f2d8561fdc
[libpng17] Imported from libpng-1.7.0beta29.tar
v1.7.0beta29
2014-01-30 14:52:28 -06:00
Glenn Randers-Pehrson
1bd81ffa21
[libpng17] Quiet an uninitialized memory warning from VS2013 in png_get_png().
2014-01-30 14:44:07 -06:00
Glenn Randers-Pehrson
6d2b1a7dbc
[libpng17] Bump version to 1.7.0beta29
2014-01-20 13:57:46 -06:00
Glenn Randers-Pehrson
5daa97c2eb
[libpng17] Imported from libpng-1.7.0beta28.tar
2014-01-20 13:57:38 -06:00
Glenn Randers-Pehrson
9e441e96b9
[libpng17] Checked in clang attribute support.
2014-01-18 19:55:44 -06:00
Glenn Randers-Pehrson
a0d314ce84
[libpng17] Correct a comment in pngconf.h
2014-01-13 21:40:47 -06:00
Glenn Randers-Pehrson
b871b25997
[libpng17] Added clang attribute support (Cosmin).
2014-01-13 21:13:16 -06:00
Glenn Randers-Pehrson
d38ebc9ded
[libpng17] Updated scripts/makefile.* to use CPPFLAGS (Cosmin)
2014-01-12 12:28:20 -06:00
Glenn Randers-Pehrson
995402ca6e
[libpng17] Fix typo in CHANGES and ANNOUNCE
2014-01-10 12:58:47 -06:00
Glenn Randers-Pehrson
1982968dad
[libpng17] Bump version to 1.7.0beta28
2014-01-10 08:11:36 -06:00
Glenn Randers-Pehrson
32cd66d619
[libpng17] Imported from libpng-1.7.0beta27.tar
v1.7.0beta27
2014-01-10 08:11:26 -06:00
Glenn Randers-Pehrson
03a53fa429
[libpng17] Removed potentially misleading warning from png_check_IHDR().
2014-01-10 06:22:41 -06:00
Glenn Randers-Pehrson
441de8f4fd
[libpng17] Revised png_check_IHDR() to use PNG_SIZE_MAX instead of
...
PNG_UINT_32_MAX in the test for potential overflow in PNG_ROWBYTES.
2014-01-09 20:19:36 -06:00
Glenn Randers-Pehrson
4e5c80034e
[libpng17] Only issue a warning about image width if an error has not already
...
been found in IHDR.
2014-01-08 11:44:48 -06:00
Glenn Randers-Pehrson
879d63156a
[libpng17] Updated warning in png_check_IHDR() to say "may be too large"
...
instead of "is too large".
2014-01-07 11:44:41 -06:00
Glenn Randers-Pehrson
eb021245d0
[libpng17] Bump version to 1.7.0beta27
2014-01-01 11:19:28 -06:00
Glenn Randers-Pehrson
6607a3b905
[libpng17] Imported from libpng-1.7.0beta26.tar
v1.7.0beta26
2014-01-01 11:19:08 -06:00
Glenn Randers-Pehrson
28711dff2a
[libpng17] Updated copyright year in recently-changed files.
2013-12-31 21:15:11 -06:00
John Bowler
4413d5dcd2
[libpng17] Allow unversioned links created on install to be disabled in
...
configure. In configure builds 'make install' changes/adds links like png.h
and libpng.a to point to the newly installed, versioned, files (e.g.
libpng17/png.h and libpng17.a). Three new configure options and some
rearrangement of Makefile.am allow creation of these links to be disabled.
2013-12-29 19:40:13 -06:00