Cosmin Truta
ba980b8f0c
Release libpng version 1.6.41
2024-01-24 18:59:00 +02:00
Cosmin Truta
27e548af25
chore: Clean up the return statements and update example.c accordingly
2024-01-23 21:25:03 +02:00
Cosmin Truta
92b2128a75
chore: Add, relocate or rephrase debug statements, for better clarity
2024-01-23 02:33:54 +02:00
Cosmin Truta
6159bad8a9
ci: Relicense again the CI scripts, from Boost License to MIT License
...
Many build scripts, ports and other third-party add-ons that are
circulating around appear to be distributed under the MIT License.
Examples include the Vcpkg build system (including the libpng port)
and the Meson build definitions (including the libpng definition).
I am, therefore, relicensing our CI scripts once more, as the sole
author (so far), just in case that any of the CI code might travel
from/to such projects. Hopefully, this one last license will stick.
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2024-01-22 23:55:18 +02:00
Cosmin Truta
3285bf0d4c
ci: Add help options; add checks for the boolean environment options
2024-01-22 23:45:23 +02:00
Cosmin Truta
4edbb4da81
build: Move scripts/*.cmake.in to scripts/cmake/; add cmake/AUTHORS.md
...
From the libpng licensing point of view, the build projects, the build
scripts, the test scripts, the CI verification scripts, et cetera, have
not traditionally been part of libpng proper, although some of these,
including the CMake-based build, have been released under the libpng
license.
Considering how the CMake build grew as a result of many contributions
from many contributing authors over a long time, one may argue that it
almost became an individual piece of software in its own right.
Moving on, everything CMake-related shall be placed in the subdirectory
scripts/cmake/ (except, of course, the main CMakeLists.txt). Moreover,
contributing authors shall be acknowledged in scripts/cmake/AUTHORS.md.
Please see scripts/cmake/README.md for more information.
2024-01-22 17:24:59 +02:00
Cosmin Truta
9a774b9156
chore: Rerun ./autogen.sh --maintainer and update .gitignore
...
Bring the auto-generated scripts up to date with the autoconf upgrade
from version 2.71 to version 2.72.
Make the .gitignore exclusions better tailored to the autoconf- and
configure-generated artifacts.
2024-01-22 15:22:50 +02:00
Cosmin Truta
671661849a
build: Move scripts/*.m4 to scripts/autoconf/
...
Move all Autoconf macro files (except for those that need to be in
the top-level directory) to their own subdirectory scripts/autoconf/
In this commit, we introduce a better way to organize the scripts dir,
and we make a better separation between the build scripts under the
libpng license vs. the build scripts that fall under other licenses.
Please see scripts/autoconf/README.md for more information.
2024-01-22 15:16:10 +02:00
Cosmin Truta
438a518611
Update the main AUTHORS file
2024-01-20 19:09:38 +02:00
John Bowler
8fb49b8b94
Relax pngtest-all message testing
...
Previously the 'make check' test pngtest-all looked for given messages
at EOL. The match failed with Windows/MSYS2 because of the Windows
<cr><lf> line endings output by pngtest. This changes the test to look
for the message anywhere in a line; this might give false matches but
the specific messages being searched for are not likely to cause this
problem.
Signed-off-by: John Bowler <jbowler@acm.org >
2024-01-19 15:31:53 -08:00
John Bowler
144b348e07
Use --xfail for Adler32 check in pngtest-all
...
The test always failed on systems with no support for zlib
inflateValidate and on systems where the png_set_option setting was
disabled, however pngtest-all succeeded because the failure was ignored.
The latter is now fixed so the badadler.png check needs to use --xfail,
not --relaxed.
Signed-off-by: John Bowler <jbowler@acm.org >
2024-01-19 11:10:00 -08:00
John Bowler
1a0d7a7481
Correct regression-palette-8.png
...
This corrects contrib/testpngs/badpal/regression-palette-8.png. Despite
the comment in commit da109d3e the file checked in had 255 PLTE entries
so failed to perform the regression test. This version of the PNG has
254 entries.
Signed-off-by: John Bowler <jbowler@acm.org >
2024-01-19 08:55:56 -08:00
Adam Richter
866fdf6f8f
Fix an off-by-one error in png_do_check_palette_indexes
...
The last byte of each row was ignored in a function that was executed
under the build flags `PNG_READ_CHECK_FOR_INVALID_INDEX_SUPPORTED` and
`PNG_WRITE_CHECK_FOR_INVALID_INDEX_SUPPORTED`.
This is a revert of a change previously applied in libpng-1.6.33beta01.
See SourceForge bug #269 at https://sourceforge.net/p/libpng/bugs/269/
Reviewed-by: John Bowler <jbowler@acm.org >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2024-01-19 17:45:27 +02:00
John Bowler
6f8257e437
tests/pngtest-all: detect failures add tests
...
This change is only verifiable in configure builds; cmake only executes
the basic test.
The previous version of tests/pngtest-all only returned the status code
of the final test. Apparently it could never fail. This adds checking
of all return status codes.
The change also adds a basic approach for regression testing with PNGs
that should fail a test; --strict ensures that PNGs which are valid do
not start to be reported as erroneous, this is the inverse.
At present the code (minimal traditional Bourne shell) only tests the
palette index checking code, a potentially important check if apps rely
on it.
The changes have been tested using the configure build both with a
regression which causes the libpng checking to cease to work and with a
corrected (reverted regression). The regression test verifies that the
intended check works as expected.
Signed-off-by: John Bowler <jbowler@acm.org >
2024-01-18 17:36:59 -08:00
John Bowler
269b753496
Do not build unused Adler32 code
...
This removes the default build of an undocumented feature to disable
Adler32 checksums on those systems where it was the default.
The PR is motived by github #187 however it fixes a much more general
problem (#187 is limited to an issue where libpng "crashes" on some
manufacturer systems). The fix is based on a suggestion by @sgowdev who
is the originator of the issue.
When libpng disables the checking of Adler32 checksums it does so by an
undocumented and therefore possibly unsupported call to a zlib function
which does not exist in some versions of zlib.
Fortunately libpng only does this if the caller of libpng explicitly
asks for it to happen. Unfortunately the call to the undocumented
function is still in the compiled and built libpng and this means that
on some systems (as identified in #187 ) libpng can fail to load or maybe
even crash.
The libpng authors are currently unaware of any program or system that
uses this feature and none has been identified by the contributors to
In this fix an option is added to *enable* the code so that by default
the code is *disabled* - this is a simple generalization of the
suggestion by @sgowdev.
BENEFITS: the problem is eliminated, users of the functionality, if any,
are idenfified, the functionality can be implemented correctly in the
future or it can be removed. Hardly anyone complains.
COSTS: someone will complain that they have to enable an option in a
libpng build to use a feature that never worked consistently in the
first place.
This patch has been tested both with the option enabled and with it
disabled via pngusr.dfa. Tests, checks pass with cmake and configure,
make distcheck passes on configure.
Reported-by: Stephen Gowen <dev.sgowen@gmail.com >
Signed-off-by: John Bowler <jbowler@acm.org >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2024-01-18 23:57:06 +02:00
John Bowler
2b814cde29
Regression test for off-by-one palette check error
...
This adds a file to regression-test the previously introduced off-by-one
error in the check on read for a colormapped PNG with an out-of-range
index (equal or greater than the length of the PLTE).
Previous tests covered all cases except the 8-bit palette case; the
"small" test file contains the "bad" entry at index 254, not 255 so it
passes even if the final byte is not checked. The new file has the
erroneous entry in the last byte.
Signed-off-by: John Bowler <jbowler@acm.org >
2024-01-18 23:17:51 +02:00
Zixu Wang
893b8113f0
Fix unused platform check and configuration for macOS
...
In a similar manner as zlib (https://github.com/madler/zlib/pull/895 ),
libpng contains a header configuration that's no longer valid and
hasn't been exercised for the macOS target.
- The target OS conditional macros are misused. Specifically
`TARGET_OS_MAC` covers all Apple targets, including iOS, and it
should not be checked with `#if defined` as they would always be
defined (to either 1 or 0) on Apple platforms.
- `#include <fp.h>` no longer works for the macOS target and results
in a compilation failure. macOS ships all required functions in
`math.h`, and clients should use `math.h` instead.
This problem has not been noticed until a recent extension in clang
(https://github.com/llvm/llvm-project/pull/74676 ) exposed the issue
and broke libpng builds on Apple platforms. The failure can be
reproduced now by adding `#include <TargetConditionals.h>` before the
block.
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2024-01-18 22:24:30 +02:00
Cosmin Truta
7ec2bd28c7
Update the main Authors file
2024-01-18 18:13:38 +02:00
gxw
70d10da35c
MIPS: Fixed undefined MSA interfaces
...
When compiling on the MIPS platform using the following command:
./configure --enable-hardware-optimizations && make
The options '-mmsa -mfp64' are not being passed.
PNG_MIPS_MSA_IMPLEMENTATION is defined as 2, leading to
the initialization of unimplemented MSA interfaces.
2024-01-18 18:13:23 +02:00
gxw
064f992187
Loongson: Fixed compilation warnings for undefined macros.
2024-01-18 17:58:38 +02:00
gxw
46f1106a3f
Loongson-mips: Fixed typo
2024-01-18 10:24:57 +08:00
Cosmin Truta
a7fe3414e5
mips: Wrap up the MIPS/Loongson port and acknowledge the contributors
...
Completion of this port required a rerun of `./autogen.sh --maintainer`
followed by a rebuild of scripts/pnglibconf.h.prebuilt.
2024-01-17 23:24:05 +02:00
gxw
ce4b632dd7
Optimize png16 with loongson mmi for 64-bit os
2024-01-17 22:46:16 +02:00
jinbo
6b0d1bd75b
Add loongarch support and LSX SIMD optimizations
...
Enable LSX by default:
./configure && make
Disable LSX:
./configure --enable-loongarch-lsx=no && make
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2024-01-17 22:42:02 +02:00
Cosmin Truta
2a4f0f5aee
De-volatilize the internal implementation of png_safe_execute
...
`png_safe_execute` called `setjmp` in a context where the result was
undefined (an assignment statement). This corrects the code and removes
volatile statements that were introduced previously to quell warnings
from earlier versions of GCC.
Co-authored-by: John Bowler <jbowler@acm.org >
2024-01-17 18:06:47 +02:00
Cosmin Truta
7dacc4d5aa
Rewrite various initializations for the benefit of various compilers
...
Mark the initialization of `png_signature[]` as static const inside the
function `png_sig_cmp`. This might be helpful to optimizing compilers.
Initialize the arrays `number_buf[]`, `digits[]` and `buffer[]` inside
the functions `png_convert_to_rfc1123_buffer`, `png_ascii_from_fixed`,
`png_warning_parameter_unsigned` and `png_warning_parameter_signed`.
Although these initializations are redundant, compilers such as gcc-13
fail to see the redundancy.
2024-01-17 16:59:38 +02:00
John Bowler
da109d3e6e
Improve test coverage with a "correctly" damaged palette index test
...
The PNG IDAT did not include a '255' entry, the highest entry is '254',
this corrects the test PNG to have a palette with only 254 entries so
that it triggers the palette index checks.
Signed-off-by: John Bowler <jbowler@acm.org >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2024-01-17 12:43:31 +02:00
John Bowler
f9348b77da
write palette check corrections
...
The write palette check is off-by-one when checking the maximum palette
index against the number of entries however, because of the
implementation, the simple correction would fail if no palette check had
been performed (for example for a non-palette image). This corrects
both errors so that the code outputs a warning (but not an error) if a
user of libpng writes an image with a PLTE which is one entry short.
The write palette check can be turned off on colour type 3 images
(colour mapping images) but this is done by setting the 'maximum'
palette index in the image to (-1). The ammended code works because it
only executes for paletted images, it is dependent on palette checks
being compiled in and they will always be checked unless the stored
'max' value is less than 0.
Signed-off-by: John Bowler <jbowler@acm.org >
2024-01-16 16:15:23 -08:00
John Bowler
2ea11e2235
Palette index checking fixes
...
The palette index checking function is called by default but only if
some *other* transformation is happening. This makes the 'get palette
max' public API disfunctional (sometimes it works, sometimes it returns
0) and causes the supposed default behaviour of checking the palette
index only to work sometimes. It works in pngtest, it doesn't work in
pngcp.
The check in pngread also has an off-by-one error; the number recorded
is the highest index found so it should be checked to ensure that it is
less than the palette length but it was checked for being greater.
The pull request includes a set of 8 files which all have the full range
of possible indices including one (the highest) which is invalid because
the PLTE chunk is one short of the maximum for each bit depth.
Signed-off-by: John Bowler <jbowler@acm.org >
2024-01-16 14:59:02 -08:00
John Bowler
b60316f4ee
Remove GCC7.1 arithmetic overflow fixup
...
This removes pragmas and the controlling code that quelled warnings
generated by GCC7.1 (only) with -Wstrict-overflow=3 and possibly other
levels. Tested with GCC13.2, GCC7.1 is no longer the current version of
GCC7 (GCC7.5) and GCC7.1 was replaced by GCC7.2 on August 14, 2017.
Signed-off-by: John Bowler <jbowler@acm.org >
2024-01-15 21:42:05 +02:00
John Bowler
050ce505e4
pngfix: del workround for GCC7.1 -Wstrict-overflow
...
Previously pngfix had been made warning-free in GCC7.1 by marking auto
variables (volatile). This prevented the arithmetic optimizations which
caused warnings from GCC7.1 with higher values -Wstrict-overflow=<n>
GCC has moved on a lot since 7.1 and pngfix.c now compiles with just one
warning using -Wstrict-overflow=5. The change includes a change to make
this go away by performing the rearrangement GCC was using in the code:
i == ndigits-1
becomes:
i+1 == ndigits
i is initialized to ndigits and has been decremented at least once so
this is fine.
Test, configure:
CFLAGS="-Wall -Wextra -Wno-maybe-uninitialized -Wstrict-overflow=5" \
../configure --enable-werror
make
make cehck
Test, cmake:
cmake ..
make
make test
Signed-off-by: John Bowler <jbowler@acm.org >
2024-01-15 09:50:24 -08:00
John Bowler
2a23247420
pngcp: remove GNU setjmp warning workround
...
Prior versons of the GCC warned about the 'dest' parameter of
contrib/tools/pngcp.c not being volatile, which isn't necessary because
it isn't modified. This removes the GCC specific fixup.
The function which calls setjmp, cppng() also relied on undefined
behavior because it assigned the result of setjmp() to a variable; this
is not one of the four uses of setjmp permitted by ANSI-C. This passes
the result previously returned by longjmp via (struct display). It's
very very unlikely that any compiler could have got the code wrong but
it is technically undefined.
2024-01-14 15:47:20 -08:00
Cosmin Truta
6b241f3786
Do not rely on INT_MAX in png.h
...
At a certain step in the configuration process, `gcc -Wundef`
complained about using `INT_MAX` without a definition in png.h,
which is easily fixable with an include.
We would rather not add any extra dependencies to png.h, however,
so we use some unsigned int arithmetic magic instead.
2024-01-12 01:12:08 +02:00
Cosmin Truta
b3521c60af
pngminus: Delete the incomplete output files upon premature termination
...
Defer the program termination on error until all files are closed and
(if applicable) all incompletely-written output files are deleted.
In addition, perform the following maintenance tasks:
* Rename and document the internal helpers used by the functions
`png2pnm` and `pnm2png`.
* Unset the executable permission bits for the *.bat test programs.
2024-01-09 18:54:02 +02:00
Cosmin Truta
6beae586d6
pngminus: Expect all image transformations to be available in libpng
...
The pngminus programs use several PNG image transformations:
`png_set_expand`, `png_set_expand_1_2_4_to_8`, etc. (in png2pnm.c);
`png_set_packing`, `png_set_invert_mono`, etc. (in pnm2png.c).
The availability of all of these transformations in libpng is now
required at compile time.
On the topic of transformations, apply an unrelated fix to the use
of `png_set_gamma`.
2024-01-09 00:33:39 +02:00
Cosmin Truta
bdbbcaa457
pngminus: Improve and modernize the PNG processing
...
Improve and modernize png2pnm.c:
* Remove the explicit reading of the input PNG file signature.
Libpng is now able to read it, check it, and issue an appropriate
error message in case of magic number mismatch or file corruption.
(See the function `png_read_sig`.)
* Remove the explicit allocation and dealocation of the image data.
Libpng is now able to manage all the image data automatically.
(See the function `png_read_png`.)
* Specify the needed image transformations without a-priori checking
the image type for applicability.
* Use the `png_set_expand_gray_1_2_4_to_8` transformation.
Since libpng version 1.2.9, this transformation (if needed) must
be enabled separately from `png_set_expand`.
Improve and modernize pnm2png.c:
* Modify the allocation of image data, in order to match libpng's
internal allocation model.
* Transfer the ownership of the image data from the `pnm2png` function
to libpng, which will manage and dealocate it at the right time.
(See the functions `png_set_image_rows` and `png_data_freer`.)
Refactor, clean up, etc.
2024-01-08 20:31:18 +02:00
Cosmin Truta
abb8d4a71f
pngminus: Fix and improve the PNM processing
...
Improve png2pnm.c:
* Add support for writing 16-bit raw PNM image files.
Fix and improve pnm2png.c:
* Add support for reading 16-bit raw PNM image files.
* Fix the parsing of arbitrarily long numeric strings.
In the parsing of PNM tokens, we can and we should avoid storing
more than one leading '0' in the token buffer. All valid (in-range)
numeric strings must fit in this limited-size buffer, regardless of
their actual length in the input file.
* Refactor the PNM parsing in order to make it more capable to handle
various kinds of input file errors.
* Remove the volatile qualifiers from all variable declarations.
Their original purpose was to appease old (and incorrect) warnings
issued by ancient optimizing compilers.
* Print a note about the program's lack of support for the PAM ("P7")
file format when the input is in this format.
* Add FIXME notes about the need to signal incorrect or incomplete
input files. (For png2pnm, this is done inside libpng.)
2024-01-08 14:14:33 +02:00
Cosmin Truta
c993ae4c67
pngminus: Update CMake file; rename test scripts; add .gitignore
...
Raise the minimum required CMake version to 3.5.
Add the configuration option `PNGMINUS_USE_SYSTEM_PNG` for compiling
and linking with the system libpng library instead of the internal one.
Remove the old configuration option `PNGMINUS_USE_STATIC_LIBRARIES`.
When using the internal libpng (via `PNGMINUS_USE_SYSTEM_PNG=OFF`),
simply enforce static linking and produce single-file executables.
Rename the scripts "png2pnm.sh" (etc.) to "test_png2pnm.sh" (etc.),
to make it obvious that they are test drivers, not program launchers.
Add a .gitignore file for project-specific build and test artifacts.
2024-01-05 19:59:07 +02:00
Cosmin Truta
6abf8c1e91
Fix the API comment about png_data_freer
...
The old note about this function being unlikely to work correctly was
likely incorrect.
2024-01-03 21:13:59 +02:00
Cosmin Truta
0dfe422e9f
Update the copyright year
2024-01-02 21:25:55 +02:00
John Bowler
71b9b5e16e
pngfix: ensure fclose happens last on file close
...
This reverts the code to a variant of my old style of doing an 'fclose'
correctly and adds comments explaining why it is so difficult. Thanks
to @ihsinme for pointing out the error on github.com
Signed-off-by: John Bowler <jbowler@acm.org >
2023-12-30 11:06:34 -08:00
Stephen Kitt
9f9f8d8e63
Fix bashisms
...
makepngs.sh relies on a Bash feature in one of its case statements,
";;&"; this should be made explicit in the shebang.
intgamma.sh declares a function in a manner which may fail in non-Bash
sh implementations, this patch uses the correct syntax.
Based on a patch by Roflcopter4:
https://github.com/joncampbell123/dosbox-x/pull/3850
Signed-off-by: Stephen Kitt <steve@sk2.org >
2023-12-27 12:53:48 +02:00
Cosmin Truta
437b24a958
mips: Fix the build for generic ANSI C89 compilers
...
The <stdint.h> header is a standard C99 header, and a MIPS-specific
header, but it is not a standard C89 header. It should not be included
until ensuring that the code being compiled is MIPS-specific.
2023-12-20 21:09:27 +02:00
Sui Jingfeng
2ed5a70bca
mips: Implement the run-time MIPS MSA discovery function correctly
...
The old implementation of png_have_msa() caused a bus error,
if a word in /proc/cpuinfo was longer than 10 characters.
In the original implementation, `word[10]` was too short, and
`word[i++] = ch` caused a stack smash if the characters between
spaces were more than 10.
And also, fclose(f) should be called before leaving.
For example on loongson ls3a4000 cpu platform:
$ cat /proc/cpuinfo
system type : Generic Loongson64 System
machine : loongson,loongson64g-4core-ls7a
processor : 0
cpu model : ICT Loongson-3 V0.1 FPU V0.1
BogoMIPS : 3594.02
wait instruction : yes
microsecond timers : yes
tlb_entries : 2112
extra interrupt vector : no
hardware watchpoint : no
isa : mips1 mips2 mips3 mips4 mips5 mips32r1 mips32r2 mips64r1 mips64r2
ASEs implemented : vz msa loongson-mmi loongson-cam loongson-ext loongson-ext2
shadow register sets : 1
kscratch registers : 6
package : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available
processor : 1
cpu model : ICT Loongson-3 V0.1 FPU V0.1
BogoMIPS : 3611.26
wait instruction : yes
microsecond timers : yes
tlb_entries : 2112
extra interrupt vector : no
hardware watchpoint : no
isa : mips1 mips2 mips3 mips4 mips5 mips32r1 mips32r2 mips64r1 mips64r2
ASEs implemented : vz msa loongson-mmi loongson-cam loongson-ext loongson-ext2
shadow register sets : 1
kscratch registers : 6
package : 0
core : 1
VCED exceptions : not available
VCEI exceptions : not available
Co-authored-by: Cosmin Truta <ctruta@gmail.com >
Signed-off-by: Sui Jingfeng <15330273260@189.cn >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-12-20 21:09:27 +02:00
Cosmin Truta
85f866dea3
cmake: Enable policy CMP0074 for ZLIB_ROOT; deprecate PNG_BUILD_ZLIB
...
Although the minimum required CMake version is 3.6, this policy will
only have effect under CMake 3.12 or newer.
Reported-by: Jacob Harding <54728054+jacobharding@users.noreply.github.com >
2023-12-20 19:12:42 +02:00
Cosmin Truta
2fff013a69
cmake: Raise the minimum required version to 3.6 and use its features
...
Use the `CMAKE_HOST_SOLARIS` variable, introduced in CMake 3.6, and
raise `cmake_minimum_required` accordingly.
2023-12-13 20:24:33 +02:00
Cosmin Truta
acfd50ae0b
cmake: Clean up functions, string operations, regular expressions, etc.
...
Remove the inclusion of the external module `CMakeParseArguments`.
Function argument parsing became a first-class feature in CMake 3.5.
Delete the function `find_symbol_prefix`. It is no longer used.
Use variables instead of strings in string operations where possible.
Prevent CMake from getting confused by string values that might be
accidentally identical to unrelated keywords.
Clean up spurious `.*` sequences in regex matching operations.
Rephrase a comment.
2023-12-11 20:51:06 +02:00
Cosmin Truta
8fc13a8704
cmake: Enable the libpng framework build by default on Apple systems
...
The PNG_FRAMEWORK option used to be off by default. It was possible to
turn it on, regardless of the underlying operating system, but doing so
outside of an Apple OS broke the libpng build.
PNG_FRAMEWORK is now on by default, conditionally defined on Apple
systems only, and it is ignored (without breaking the build) elsewhere.
Other minor changes have also been applied.
2023-12-08 23:22:39 +02:00
Timothy Lyanguzov
1460b3ce78
cmake: Use Zlib as a package
...
1. automatic linking of the library and add include directory
2. properly specify include directories
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-12-08 14:57:36 +02:00
Cosmin Truta
e1088f99d4
Redo "cmake: Fix CPU architecture regexes"
...
Co-authored-by: Clinton Ingram <clinton.ingram@outlook.com >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-12-07 23:17:56 +02:00
Cosmin Truta
d65b3ebf00
Revert "cmake: Fix CPU architecture regexes"
...
This reverts commit 9c1dc4d13d .
The new regex for Intel can match "x86_64", but it fails with "x86".
Moreover, the new regex for MIPS needs more testing on all MIPS ISAs.
Reported-by: Clinton Ingram <clinton.ingram@outlook.com >
2023-12-07 23:17:56 +02:00
Clinton Ingram
a3d1a35b98
cmake: Don't add Unix ASM file to the ARM-specific source list for MSVC
...
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-12-07 16:11:12 +02:00
Cosmin Truta
9c1dc4d13d
cmake: Fix CPU architecture regexes
...
Co-authored-by: Clinton Ingram <clinton.ingram@outlook.com >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-12-07 16:11:12 +02:00
Cosmin Truta
e755fb79ba
ci: Quick-fix ci_verify_cmake.sh
...
Avoid using `cmake --option=value` and `ctest --option=value`, to stay
compatible with older versions of CMake.
2023-10-19 00:26:54 +03:00
Cosmin Truta
f79c85e22d
Update the configuration for Travis CI and AppVeyor CI
...
Update the Travis CI matrix:
* Run ASan and UBSan unconditionally on FreeBSD and Linux, and
not at all on Mac.
* Remove the `CI_NO_TEST=1` runs from the environment column.
Update the AppVeyor CI matrix:
* Replace `CI_NO_TEST=1` with `CI_CMAKE_VARS=-DPNG_TESTS=0` when
testing Visual Studio on ARM64.
Also apply minor stylistic changes.
2023-10-18 22:31:49 +03:00
Cosmin Truta
53d2188fa5
ci: Update the support for cross-build verifications; refactor
...
Rename `CI_HOST_ARCH` and `CI_HOST_SYSTEM`, to `CI_BUILD_ARCH` and
`CI_BUILD_SYSTEM`, following the nomenclature used by GNU Autotools.
Unfortunately, the word "host" has confusingly opposite meanings in
CMake (and Bazel, etc.) vs. Autotools (and Meson, etc.)
Remove `CI_TARGET_TRIPLET` and `CI_TARGET_ABI` (for now).
Introduce the function `ci_expr` as a fast and easy equivalent of
`expr >/dev/null`.
Rephrase the assertions using an implementation pattern that is more
expressive, yet (arguably) just as readable. Remove `ci_assert`.
Modify the main functions to display more useful information in case
of usage error.
2023-10-18 19:36:38 +03:00
Timothy Lyanguzov
f2294569cf
Use CMake 3.5 features
...
1. Set `cmake_minimum_required` to 3.5
(see https://cmake.org/cmake/help/latest/release/3.27.html )
2. Specify the version of CMake project
3. Remove the redundant call to `cmake_policy`
4. Use `CMAKE_INSTALL_BINDIR` and `CMAKE_INSTALL_INCLUDEDIR`
5. Use private library linking for tools and test programs
6. Don't activate testing if it was not enabled
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-10-02 23:24:00 +03:00
Tyler Kropp
1547b335e4
cmake: Fix copying targets on Windows in multi-config build systems
...
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-10-02 00:00:03 +03:00
Cosmin Truta
b2ef6edbe8
cmake: Rename PNG_EXECUTABLES to PNG_TOOLS
...
For the sake of consistency with a recent addition to the configure
script, the option name PNG_EXECUTABLES (introduced in libpng-1.6.38)
shall become PNG_TOOLS.
PNG_EXECUTABLES is still maintained as a deprecated option, allowing
the applications that use it to be built without modification, but a
deprecation warning will be issued.
2023-08-03 21:08:29 +03:00
Cosmin Truta
5a6ea1822b
configure: Rerun "./autogen.sh --maintainer"
2023-08-02 21:42:10 +03:00
Cosmin Truta
22ad62c25e
configure: Rename the recently-added options
...
Rename
--enable-png-tests/--disable-png-tests
--enable-png-tools/--disable-png-tools
to
--enable-tests/--disable-tests
--enable-tools/--disable-tools
respectively.
While the `PNG_` prefix is necessary in CMakeLists.txt, a corresponding
`--...-png-` option qualifier would be redundant in a configure script.
2023-08-02 21:42:10 +03:00
Carlo Bramini
71475b064f
configure: allow to disable building of tools and test
...
This PR adds two set of options to the configure script:
--enable-png-tests/--disable-png-tests
and
--enable-png-tools/--disable-png-tools
By using this feature, a user will be allowed to build only library if
needed, which will be useful on platforms not able to build the tools
and/or the tests.
This PR leaves the existing behaviour as default setting, by building
both the tools and the tests if the options are not used.
CMakeLists.txt already supports this feature with the options PNG_TESTS
and PNG_EXECUTABLES. After this commit, Autotools will provide the same
feature.
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-08-02 17:39:36 +03:00
Cosmin Truta
ee9d6d7bf2
ci: Improve the support for cross-build verifications
...
Introduce CI_TARGET_TRIPLET and CI_TARGET_ABI.
Rename CI_HOST_MACHINE and CI_TARGET_MACHINE, respectively, to
CI_HOST_ARCH and CI_TARGET_ARCH, following on the conventional
target triplet nomenclature.
Introduce CI_BUILD_SYSTEM and CI_BUILD_ARCH, following on the
GNU Autotools (host/build/target) practice and nomenclature.
Ensure that CI_TARGET_SYSTEM, CI_TARGET_ARCH and CI_TARGET_ABI
are all initialized when verifying a cross-platform build.
Work around an obscure CMake error by ensuring that CMake variables
(CMAKE_AR and CMAKE_RANLIB) are initialized to the full executable
paths of their CI_* equivalents (CI_AR and CI_RANLIB).
Implement other general-purpose improvements:
* Check all CI_NO_* variables in an arithmetic context, to allow
setting them explicitly to zero in external configurations.
* Label the assertions with descriptions of what's being asserted.
* Add more comments and tracing printouts.
2023-07-30 17:07:25 +03:00
Cosmin Truta
f8e5fa92b0
ci: Fix ci_verify_cmake.sh; improve ci.lib.sh
...
Fix ci_verify_cmake.sh: sync up CI_BUILD_TO_INSTALL_RELDIR with
CI_INSTALL_DIR. (Oopsie!)
Replace slashes, backslashes and dots with underlines in system
names and machine hardware names. These names are now included in
the output directory naming scheme.
2023-07-09 12:27:51 +03:00
Cosmin Truta
c81516e943
ci: Fix bad copy pasta in ci_verify_configure.sh
2023-07-08 23:46:53 +03:00
Cosmin Truta
0b7bc40de1
ci: Introduce CI_HOST_* and CI_TARGET_*
...
Replace CI_SYSTEM_NAME and CI_MACHINE_NAME with CI_HOST_SYSTEM and
CI_HOST_MACHINE, respectively.
Introduce CI_TARGET_SYSTEM and CI_TARGET_MACHINE, defaulting to
CI_HOST_SYSTEM and CI_HOST_MACHINE, respectively.
Use CI_TARGET_SYSTEM and CI_TARGET_MACHINE in the naming scheme of
target build and install directories, in order to allow concurrent
verification builds for multiple cross-platform targets.
2023-07-04 19:40:05 +03:00
Cosmin Truta
82414985c1
ci: Add ci_lint_ci.sh and .shellcheckrc
...
Add ci_lint_ci.sh for linting the CI config files and scripts.
The linting is based on yamllint and shellcheck.
2023-07-04 00:12:32 +03:00
Cosmin Truta
c0616f1017
ci: Add ci.lib.ch; update ci_verify_*.sh accordingly
...
Move the common declarations and initializations from ci_verify_*.sh
to ci.lib.sh, and update them as follows:
* Simplify the ci_ function names.
* Refactor the CI_ variable names:
- Add the new variable CI_TOPLEVEL_DIR.
- Rename the variables CI_SCRIPTNAME, CI_SCRIPTDIR, etc.,
to CI_SCRIPT_NAME, CI_SCRIPT_DIR, etc.
- Rename the variables CI_SRCDIR_FROM_BUILDDIR, etc., to
CI_BUILD_TO_SRC_RELDIR, etc.
* Add new functions inside ci.lib.sh:
- Replace ci_err with ci_err_usage, ci_err_fatal, ci_err_internal.
- Add the new functions ci_warn and ci_assert.
* Simplify the ci_ function names inside ci_verify_*.sh.
2023-07-03 22:59:24 +03:00
Cosmin Truta
c741d1e392
ci: Relicense the CI scripts to the Boost Software License version 1.0
...
Fetch LICENSE_BSL_1_0.txt from http://www.boost.org/LICENSE_1_0.txt
and update the copyright notice in all ci_* scripts.
Append "SPDX-License-Identifier" tags after each copyright notice;
see https://github.com/david-a-wheeler/spdx-tutorial/#spdx-tutorial
2023-07-03 19:14:33 +03:00
Cosmin Truta
ad9e42a877
Add .yamllint.yml, a configuration file for yamllint
2023-07-03 13:38:40 +03:00
Cosmin Truta
d7f77bf271
Bump version to 1.6.41.git
2023-06-26 11:09:17 +03:00
Cosmin Truta
f135775ad4
Release libpng version 1.6.40
2023-06-21 22:06:40 +03:00
Cosmin Truta
afc6c595bf
Fix a build regression on Solaris
...
Fix a regression introduced in commit aeb26da4cb .
On an Illumos test machine, running the GCC compiler and the Solaris
link editor, the CMake build failed with the following error:
ld: fatal: unrecognized option '--version-script=/.../libpng.vers'
The fix consists in avoiding the use of CMAKE_SHARED_LIBRARY_C_FLAGS
in version script checks on Solaris.
Also clean up the surrounding code, as follows:
* Rename CMAKE_REQUIRED_FLAGS_SAVE to _SAVED_CMAKE_REQUIRED_FLAGS.
(The name of an internal variable should not begin with "CMAKE_".)
* Reformat the version script to optimize the vertical space.
2023-06-21 21:08:40 +03:00
Cosmin Truta
e6c5bf46c4
Ensure that only one eXIf chunk is written in the entire datastream
...
EXIF data can be stored in an eXIf chunk before IDAT, or after IDAT,
but the entire PNG datastream may contain one eXIf chunk at most.
Introduce the private mode flag PNG_WROTE_eXIf, which is meant to be
used like the PNG_WROTE_tIME flag. The eXIf chunk and the tIME chunk
have the same ordering rules (i.e. no constraints are imposed), and
the same multiplicity rules (i.e. no multiples are allowed), and they
should be initialized and checked using the same algorithm.
This fixes commit cd03aaf7bf ,
previously reverted in 3d57708c91 .
Reported-by: Ben Bullock <benkasminbullock@gmail.com >
2023-06-21 16:16:07 +03:00
Wan-Teh Chang
8be5c147d5
Don't report a valid tRNS chunk if it was canceled
...
Add special handling of the PNG_INFO_tRNS flag to png_get_valid() to
not report a canceled tRNS chunk as valid.
Fix https://github.com/glennrp/libpng/issues/482
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-06-20 19:20:38 +03:00
Cosmin Truta
f7abe3c419
Avoid a memory leak when allocation of a pCAL buffer fails
...
Set the PNG_FREE_PCAL flag immediately after the allocation of the
first pCAL buffer, so that, if any one of the subsequent allocations
fail, all pCAL buffers still get deallocated by png_free_data.
Also reorder the initialization of other PNG_FREE_ flags (without
altering the semantics) to improve the overall consistency inside
the pngset.c module.
Co-authored-by: Philippe Antoine <contact@catenacyber.fr >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-06-20 15:09:36 +03:00
Jesús González
82097c2108
Fix a doc typo in pnglibconf.dfa
...
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-02-16 15:34:29 +02:00
Cosmin Truta
e519af8b49
cmake: Allow overwriting the debug postfix of library filenames
...
Users may opt to change the debug suffix, e.g., from "d" to "_debug".
Rather than making CMAKE_DEBUG_POSTFIX a cache variable (which is
an antipattern in CMake), we introduce a new cache variable, named
PNG_DEBUG_POSTFIX.
Suggested-by: Diego Barrios Romero <eldruin@gmail.com >
2023-02-12 22:31:11 +02:00
Cosmin Truta
efc96c9d59
cmake: Redo the fix for Clang support on Windows
...
Redo commit 70fda1837d , with a redesign.
Define the variables PNG_SHARED_OUTPUT_NAME and PNG_STATIC_OUTPUT_NAME
for the benefit of the OUTPUT_NAME target properties of, respectively,
the shared libpng build and the static libpng build. Fix and improve
not only Clang, but also other Windows toolchains, such as Embarcadero.
Rename the variable PNGLIB_SHARED_SOVERSION to PNG_ABI_VERSION.
The applicability of this variable, which is much wider than the old
name used to suggest, includes the definitions of PNG_*_OUTPUT_NAME.
Delete the confusingly-named variables PNGLIB_NAME and PNG_LIB_NAME,
and rename PNG_LIB_TARGETS to PNG_LIBRARY_TARGETS.
Set the macros _CRT_SECURE_NO_DEPRECATE and _CRT_NONSTDC_NO_DEPRECATE,
for all compilers that use MSVC run-time library headers. Currently,
these compilers are MSVC and Clang/Windows.
Add or improve the comments that accompany user-serviceable variables
and options.
Co-authored-by: B. Scott Michel <scooter.phd@gmail.com >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-02-12 17:22:08 +02:00
Cosmin Truta
aab24fa1b3
Clean up CMakeLists.txt
...
* Rename the target `png` to `png_shared`. The main targets are now
named `png_shared`, `png_static` and `png_framework`.
* Rename the function symbol_prefix() to find_symbol_prefix().
* Rename the prefix `S` to `_SYM` in the function create_symlink().
* Rewrite the precondition checks in the function create_symlink().
* Add precondition checks to the function generate_copy().
* Delete the vestigial property CLEAN_DIRECT_OUTPUT.
* Delete the variables PNG_LIB_NAME_STATIC and PNG_LIB_NAME_FRAMEWORK.
* Initialize and use PNG_LIB_TARGETS consistently as a list.
* Move all include() commands to the top of the file.
* Acknowledge a former contributor.
* Reformat.
2023-02-08 19:44:31 +02:00
Jeremy Maitin-Shepard
efa9c2e920
cmake: Rename the custom targets to have the png_ prefix
...
This avoids taget namespace pollution when including libpng as a
sub-project.
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-02-08 17:10:52 +02:00
Cosmin Truta
c22ef3b2e3
Revert "cmake: Fix the Clang support on Windows"
...
This reverts commit 70fda1837d .
Fixing Clang on Windows is important. However, in the previous fix,
the name of the compiled libpng library file was changed, incorrectly,
on all platforms except Windows. A proper fix will follow up.
2023-02-07 17:49:06 +02:00
Cosmin Truta
66fede80d2
ci: Update the CI scripts
...
Apply the following changes:
* Update CI_BUILDDIR and CI_INSTALLDIR to reflect the new script
names.
* Introduce CI_SRCDIR_FROM_BUILDDIR and CI_INSTALLDIR_FROM_BUILDDIR
to the cmake build, to ensure that the Windows tools can handle
native Windows paths correctly when executed via Bash-on-Windows.
* Stop guessing and using CI_SRCDIR_NATIVE and CI_INSTALLDIR_NATIVE
in the cmake build, since we now have a better solution.
* Show the ninja program version in ninja-based cmake builds.
* Move the cleanup of previous builds into separate functions, and
do it in a cleaner manner. No pun intended.
2023-02-05 17:09:00 +02:00
Cosmin Truta
59fa76e164
ci: Add CMake+Ninja+Clang to the AppVeyor CI matrix
2023-02-04 20:33:23 +02:00
B. Scott Michel
70fda1837d
cmake: Fix the Clang support on Windows
...
Fix a build error that occurs with the Ninja code generator and the
Clang compiler on Windows:
ninja: error: build.ninja: multiple rules generate png16.lib
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-02-03 16:32:32 +02:00
Gunther Nikl
aeb26da4cb
cmake: Use CMAKE_SHARED_LIBRARY_C_FLAGS in version script checks
...
Building the version script test executable may fail in the link step
with GNU ld as linker like this:
ld: final link failed: Nonrepresentable section on output
Building the test excutable with CMAKE_SHARED_LIBRARY_C_FLAGS makes the
test succeed with GNU ld since this adds -fpic/-fPIC.
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-01-31 22:25:23 +02:00
Jon Creighton
cd0ea2a7f5
Fix for universal binaries on macOS
...
Fix the issue of a
clang: error: no such file or directory: 'x86_64'
error on building universal binaries on macOS.
It is also necessary to specify:
-DCMAKE_C_FLAGS="-DPNG_ARM_NEON_OPT=0"
Example CMake command:
cmake -S libpng \
-B build_libpng \
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
-DCMAKE_C_FLAGS="-DPNG_ARM_NEON_OPT=0"
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2023-01-09 19:55:04 +02:00
Cosmin Truta
9923515ff4
Update the copyright year
2023-01-09 19:50:00 +02:00
Cosmin Truta
61bfdb0cb0
Update the configuration for Travis CI and AppVeyor CI
...
Simplify the test matrix on Travis CI to reduce the testing time.
Use CI_CMAKE_TOOLCHAIN_FILE on AppVeyor CI.
2022-11-29 12:38:45 +02:00
Cosmin Truta
9db8cff6ef
ci: Fix verification under Cygwin Bash + CMake + Visual Studio; update
...
Fix autodetection and use of the cygpath executable on Windows.
Add a new variable CI_CMAKE_TOOLCHAIN_FILE to ci_verify_cmake.sh.
This should help in future cross-platform testing.
Remove the implicit initialization of CI_CC, CI_LD and CI_LIBS from
ci_verify_makefiles.sh. This should help the testing of default values
of their respective make variables (CC, LD and LIBS).
2022-11-27 21:58:07 +02:00
Cosmin Truta
b445aade83
ci: Rename the ci_* scripts
...
Give the CI scripts new names that better reflect what they do, and
make room for activities such as linting or dependency installation:
* Rename ci_autotools.sh to ci_verify_configure.sh.
* Rename ci_cmake.sh to ci_verify_cmake.sh.
* Rename ci_legacy.sh to ci_verify_makefiles.sh.
Also rename CI_LEGACY_MAKEFILES to CI_MAKEFILES.
Update the config files for Travis CI and AppVeyor CI accordingly.
2022-11-27 21:05:42 +02:00
musvaage
3c152a8ef7
Fix typos
...
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-11-27 17:39:19 +02:00
Cosmin Truta
5a0b7e9c29
manuals: Remove references to libpngpf(3); update links
...
From libpng-1.5.0 onwards, the private libpng functions are no longer
accessible to the libpng users, and the content of libpngpf(3) is no
longer relevant.
Update links, introducing the new canonical location of the libpng
source repository:
https://github.com/pnggroup/libpng
2022-11-27 16:20:31 +02:00
Cosmin Truta
b126f80710
Reorganize and update the README file; add Markdown formatting
2022-11-27 16:20:31 +02:00
Cosmin Truta
3c761b5135
Bump version to 1.6.40.git
2022-11-27 13:10:35 +02:00
Cosmin Truta
07b8803110
Release libpng version 1.6.39
2022-11-20 23:53:23 +02:00
Cosmin Truta
32f465a66b
Update the file list in README
2022-11-20 23:53:23 +02:00
Paul Eggert
074e2eaab0
configure: Fix possible regressions with trunk autoconf (vs 2.71)
...
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-11-20 23:20:10 +02:00
John Bowler
790fef342b
tools: Fix a memory leak in pngcp
...
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-11-20 23:03:43 +02:00
Alberto Barbaro
8a5732fcb3
tools: Fix a buffer overflow involving a file name in pngfix
...
Reported-by: Guoxiang Niu (@niugx), EaglEye Team
Reported-by: Riccardo Mori <patacca@autistici.org >
Reviewed-by: John Bowler <jbowler@acm.org >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-11-20 22:28:03 +02:00
Cosmin Truta
77c3a39299
Clean up comments and whitespace characters in source files
...
Remove all remaining "last changed" version info from source comments.
(The version control system maintains this information automatically.)
Delete the trailing whitespace characters.
2022-11-20 21:23:33 +02:00
Cosmin Truta
8cfdb5436d
Clean up oss-fuzz
...
With the caveat that oss-fuzz needs a full sync with upstream, here
are the changes applied to our old copy:
* Add a missing #include directive.
* Remove the "last changed" version info.
* Clean up the trailing whitespace.
Co-authored-by: Ilya Yegorov <hkctkuy@gmail.com >
Co-authored-by: Cosmin Truta <ctruta@gmail.com >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-11-20 21:13:14 +02:00
Cosmin Truta
f6036c0aeb
Update, rename and clean up various scripts
...
Rename contrib/tools/chkfmt to contrib/tools/chkfmt.sh; refactor:
* Increase the max line length for contrib/**/*.[ch] from 96 to 100.
* Set the max line length for ci_*.sh to 100.
* Use `basename $0` instead of the hard-coded script name.
* Update comments.
Remove contrib/tools/reindent. For automated code formatting, including
indentation, we need a robust solution.
Add an empty line after the hashbang line in all scripts.
Remove the "last changed" version info from comment headers.
(The version control system maintains this information automatically.)
2022-11-20 20:21:41 +02:00
Cosmin Truta
689e06516b
Clean up vestigial uses of png_size_tp
2022-11-20 17:51:33 +02:00
Cosmin Truta
33de006e12
Turn large PNG chunks into benign errors
...
Import Chromium commit
e87a029871
Add the author to the list of libpng contributing authors.
Portions from the original commit message follow:
***
A recent change to libpng [1] (included in Chromium with the recent
libpng update [2]) turns chunks that are bigger than
PNG_USER_CHUNK_MALLOC_MAX into failures. Although this matches the
intent of PNG_USER_CHUNK_MALLOC_MAX, it also causes images which used to
be viewable in Chromium to fail. Changing to a benign error allows us to
display these images once again. Though it means we do allow libpng to
allocate more than PNG_USER_CHUNK_MALLOC_MAX, it matches the behavior
prior to [2] (when we were using 1.6.22), and it does not regress
crbug.com/117369
[1] 347538efbd
[2] f82653a473
***
Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=827754
Co-authored-by: Leon Scroggins III <scroggo@google.com >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-11-20 00:56:35 +02:00
tangyaofang
9b5488054b
Fix comments
...
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-11-16 01:51:34 +02:00
Felix Hanau
04c016d79f
scripts: Fix the remaining instance of ZLIB_INCLUDE_DIR
2022-10-23 23:10:07 +03:00
Cosmin Truta
b8ca9108ac
arm: Add a compile-time assertion about PNG_ARM_NEON_CHECK_SUPPORTED
...
Following up on the previous commit by Martin Storsjö:
If the availability of ARM Neon is not only known at compile time,
but also expected by the compiler's target architecture, there should
be no further need for a run-time check. In fact, such a check would
be counter-productive.
2022-10-12 12:42:09 +03:00
Martin Storsjö
e56f79c0c6
cmake: Default to PNG_ARM_NEON=off for arm targets
...
This matches the configure script - unless the user has requested
anything, no hardware optimizations are autoenabled.
Defaulting to "check" is brittle (that configuration is deprecated
and poorly supported) - and for configurations where it would
make sense (where NEON isn't universally enabled in the compiler)
it didn't end up setting ARM_NEON_OPT to 1 in pnglibconf.h anyway.
This fixes default builds with cmake for iOS and Windows on armv7,
where NEON is universally available (but there's no runtime check
implemented) - but actually using NEON on this architecture
requires explicitly opting in to it when configuring, just like
with the configure script.
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-10-12 12:35:33 +03:00
Cosmin Truta
12222e6fbd
scripts: Add missing makefile.clang reference to README.txt
2022-09-18 23:51:58 +03:00
Cosmin Truta
9b65ad49d3
scripts: Remove the support for "install" targets from all makefiles
...
In most of the legacy makefiles (with only a few notable exceptions
such as makefile.linux), the "install" targets have been broken since
libpng-1.5.0beta01. Specifically, the "install-shared" targets produced
incorrect library names, due to a missing symbol in the definition of
the LIBSOREL macro.
Rather than correcting this long-standing and long-untested error, we
decided to remove the support for "make install" altogether, from all
legacy makefiles. Further use of "make install", "make install-static"
or "make install-shared" will fail with an error message.
Going forward, the only tested and supported manners to install libpng
shall be the conventional build and install procedures driven by the
configure script or by the CMake file.
2022-09-18 19:37:40 +03:00
Cosmin Truta
3f991d5092
scripts: Remove makefile.cegcc
...
It is obsolete and unlikely to be still working
2022-09-18 16:26:26 +03:00
Cosmin Truta
b422bc1181
.gitignore: Ignore the autoreconf artifacts
2022-09-18 11:35:35 +03:00
Cosmin Truta
6fc5119423
Bump version to 1.6.39.git
2022-09-17 13:36:12 +03:00
Cosmin Truta
0a158f3506
Release libpng version 1.6.38
2022-09-14 22:42:00 +03:00
Cosmin Truta
50d7a85154
Acknowledge the contributors of bug fixes applied to the EXIF support
...
Considering that the EXIF support is part of the core libpng library
(which excludes scripts, tests, and other independent programs), its
contributors should be acknowledged in the AUTHORS file.
2022-09-14 22:00:42 +03:00
Cosmin Truta
2733482d8e
Fix a last-minute bug in the checking of the EXIF byte-order header
...
The check should fail if the EXIF byte-order header doesn't start with
a correct character, or if the two heading characters aren't identical.
Rewrite the check to make the code logic easier to follow.
2022-09-14 22:00:42 +03:00
Cosmin Truta
3d57708c91
Revert "Remove second call to write_eXIf"
...
The second call to png_write_eXIf should not have been removed.
The first call to png_write_eXIf is for writing the eXIf chunk that is
positioned before IDAT, while the second call is for writing the eXIf
chunk that is positioned after IDAT.
TODO:
Implement a correct fix which consists in ensuring that there are no
eXIf chunks simultaneously before and after IDAT.
This reverts commit cd03aaf7bf .
2022-09-14 22:00:42 +03:00
Cosmin Truta
abccfd7968
.gitignore: Update
2022-09-14 21:56:47 +03:00
Cosmin Truta
823ef44f01
scripts: Remove leftover references to the ci_* scripts from README.txt
2022-09-14 21:56:47 +03:00
Cosmin Truta
d72cda543c
ci: Trace the paths of executable files found on the build machine
...
Also add markers to trace the boundaries of configuration and build
steps.
2022-09-14 21:56:47 +03:00
Cosmin Truta
3c67eeca51
scripts: Add makefile.emcc for building libpng with Emscripten
...
Adapt makefile.clang to invoke the Emscripten toolchain utilities.
Co-authored-by: Kirk Roerig <mr.possoms@gmail.com >
Co-authored-by: Cosmin Truta <ctruta@gmail.com >
2022-09-14 21:50:02 +03:00
Cosmin Truta
b60656ecdc
scripts: Disable the hardware-optimized compilation in legacy makefiles
...
Fix the legacy makefile builds on ARM, MIPS and PowerPC, where
hardware-optimized compilation was enabled by default in the generic
source files, but without including the machine-specific source files.
Delete scripts/makefile.linux-opt.
2022-09-14 21:35:33 +03:00
Cosmin Truta
c64655d058
scripts: Set the compiler warning options to "-Wall -Wextra -Wundef"
...
Considering that "-Wextra" is a more descriptive alternative to "-W",
and that "-Wundef" is a highly useful warning option that has been
available in ancient versions of gcc (version 2.x), we replace all
occurrences of "-W -Wall" with "-Wall -Wextra -Wundef".
Also clean up the makefiles.
2022-09-14 21:18:20 +03:00
Cosmin Truta
8b7b99c1db
scripts: Clean up the logging in makefile.std and pnglibconf.mak
...
The console logs produced by these scripts should be easy to follow,
especially on CI bots.
Delete the unnecessary macros ECHO and SED.
Add a new macro MV_F (for "mv -f"), alongside RM_F (for "rm -f").
2022-09-14 11:53:47 +03:00
Cosmin Truta
62c027d4df
Fix handling incorrect hIST chunks of uneven size
...
The hIST chunks, used for storing image histograms, contain arrays of
16-bit unsigned integers, and the chunk size is expected to be an even
number. Raise a png_chunk_benign_error() if a hIST chunk fails to meet
this expectation.
Reported-by: Eugene Kliuchnikov <eustas@google.com >
2022-09-14 11:30:14 +03:00
Cosmin Truta
e9e9801a84
Simplify the definition of png_isaligned and avoid compiler warnings
...
The following pointer subtraction was unnecessary:
((const char*)(ptr)-(const char*)0)
In order to avoid further warnings about casting a wide pointer type
to a narrower integer type, we cast the pointer to the target integer
type through (size_t).
Also fix a comment and reformat the surrounding code.
2022-09-14 11:07:36 +03:00
Cosmin Truta
0c2388cdae
projects: Delete the definition of _WINDOWS from the VStudio project
...
The _WINDOWS macro should not be defined on a modern Windows platform.
This macro was predefined by 16-bit Windows compilers only.
2022-09-14 08:54:57 +03:00
Cosmin Truta
9cb84c4cb9
Delete vestigial declarations formerly used on 16-bit platforms
...
Delete the structure members used in the 16-bit Turbo C memory models.
Delete the PNG_ABORT declaration used in the 16-bit Windows build.
Stop checking macros (e.g. _WINDOWS) predefined by 16-bit Windows
compilers (but do check the __NT__ macro, which was the only one
predefined by ancient Windows NT compilers).
2022-09-14 08:54:57 +03:00
Cosmin Truta
8c542ad9df
arm: Do not allow PNG_ARM_NEON_CHECK_SUPPORTED on ARM64
...
ARM Neon is expected to be unconditionally available on ARM64.
Issue an #error if PNG_ARM_NEON_CHECK_SUPPORTED is defined on an
ARM64-based platform.
For the plain ARM platforms where ARM Neon checking is not yet
implemented, issue a slightly more descriptive #error, including
a suggested course of action.
2022-09-14 00:42:48 +03:00
Cosmin Truta
2abaf81e0f
arm: Avoid compiler warnings in palette_neon_intrinsics.c
...
Use correct int types; wrap PNG_UNUSED around unused arguments.
2022-09-14 00:12:11 +03:00
Vadim Zeitlin
ad0245bb96
Avoid -Wundef for MIPS and PPC symbols too
...
This is similar to d532334ef (Avoid -Wundef warnings when building
libpng, 2017-11-13), but for the similar symbols used under the other
architectures: always define them, even if just as 0, to avoid gcc
warnings when comparing them with 0 later.
2022-09-14 00:12:11 +03:00
Vadim Zeitlin
1f974dd2a9
Avoid -Wundef warnings for PNG_ARM_NEON_IMPLEMENTATION
...
Define this symbol as 0 instead of leaving it undefined when not using
ARM NEON optimizations.
No real changes, but just avoid a bunch of
"PNG_ARM_NEON_IMPLEMENTATION" is not defined, evaluates to 0 [-Wundef]
warnings when building the library.
2022-09-14 00:12:11 +03:00
Sami Boukortt
3ec225dd41
Fix a memory leak in png_set_tRNS
...
This leak was discovered by OSS-Fuzz.
The old structure of the code was along the lines of:
allocate trans_alpha;
if (problem) {
// Jumps away from this function
png_warning("tRNS chunk has out-of-range samples for bit_depth");
}
mark trans_alpha as to-free;
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-09-13 14:11:33 +03:00
Cosmin Truta
36bd1bbd54
Fix a crash in png_convert_from_time_t with an invalid time_t argument
...
This bug was found by FUTAG, a program for generating automated
fuzz-targets of libraries.
TODO:
Implement a safe function, alternative to png_convert_from_time_t,
which takes a png_ptr argument and raises a png_error if the time_t
argument is invalid.
Reported-by: Tran Chi Thien <thientc@ispras.ru >
Reported-by: Shamil Kurmangaleev <kursh@ispras.ru >
2022-09-13 13:49:02 +03:00
Cosmin Truta
0406deb1ca
Fix private macro png_constcast; delete private type png_ptruint
...
In order to appease the compiler warnings that might affect the uses
of png_constcast, it should be sufficient to cast the source pointer
type to (const void*), and then to (void*), and then to the destination
pointer type. An intermediate cast through an integer type, such as
(png_ptruint), should not be needed.
2022-09-13 01:54:17 +03:00
Peter Kasting
5f5f98a1a9
Fix an instance of -Wunused-but-set-variable.
...
Bug: chromium:1203071
2022-09-13 01:49:33 +03:00
xmuli
f10c6bb603
Add spaces around '/*' and '*/'
...
Like most other Qt coding styles, the necessary spaces should be added
to the sides of '/*' and '*/'
2022-09-13 01:37:02 +03:00
luz paz
f16427e58e
Fix various typos
...
Found via `codespell -q 3 -S ./ltmain.sh,./scripts/libtool.m4 -L ake,ans,ba,bloc,crashers,doed,inout,lengthh,maked,paeth,parm,parms,redy,unx`
2022-09-13 01:35:28 +03:00
Cosmin Truta
6aff792b66
projects: Update the README file of the Visual Studio project
2022-09-13 01:23:52 +03:00
Gabor Kertesz
ed8840a36f
projects: Add ARM64 to Visual Studio project
2022-09-13 01:23:52 +03:00
Gabor Kertesz
efdb24e54b
projects: Fix C2220 warning errors for VS2019
...
It sets warning level lower and not treat as errors because of
C2220 warnings are escalated to errors in Visual Studio 2019.
2022-09-13 01:23:52 +03:00
Gabor Kertesz
1f20bc1e85
projects: Upgrade to Visual Studio 2019
2022-09-13 01:23:52 +03:00
Gabor Kertesz
bbab57105b
scripts: Add makefile for win-arm64
...
This makefile is based on makefile.vcwin32, but includes Neon
intrinsic optimization.
Co-authored-by: Gabor Kertesz <gabor.kertesz@linaro.org >
Co-authored-by: Cosmin Truta <ctruta@gmail.com >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-09-13 01:23:52 +03:00
Gabor Kertesz
a1a81cc2ac
Fix arm neon config for win-arm64 with MSVC
...
Fixes #398
It adds win-arm64 as an arm64 platform, by using a define which
is set to 1 for compilations that target 64-bit ARM processors,
otherwise undefined.
2022-09-13 01:23:52 +03:00
Cosmin Truta
c3a1d8424c
Update INSTALL
2022-09-13 00:56:32 +03:00
Samanta Navarro
eda0f47f46
Fix typo in libpng manual
2022-09-13 00:34:27 +03:00
Cosmin Truta
3848c73ab4
cmake: Refactor the PNGLIB variables that define the versioning scheme
2022-09-12 13:50:32 +03:00
Cosmin Truta
dd8db8105c
cmake: Fix the shared build on Android
...
The ld version script should not be generated on Android.
Co-authored-by: Volker Krause <vkrause@kde.org >
Co-authored-by: Cosmin Truta <ctruta@gmail.com >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-09-10 23:50:49 +03:00
Cameron Cawley
763c77e628
cmake: Fix compilation on systems without libm
...
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-09-10 22:31:28 +03:00
Christopher Sean Morrison
840af2eda6
cmake: Fix the build on Unix with source files checked out on Windows
...
The issue is that, by default, Git for Windows checks out text files
with CRLF line endings. This is a problem for awk, which is expecting
Unix-style LF line endings. When cloning on Windows and attempting to
compile on WSL, Mingw or Cygwin, there may be an error from awk.
The fix is to leverage CMake's ability to configure a file and perform
EOL conversions. We copy the awk scripts from the source directory to
the build directory. This portable method ensures they have LF endings,
and the build logic is updated to use the build directory version.
Intentionally avoiding .gitattributes to avoid setting precedent.
Co-authored-by: Christopher Sean Morrison <brlcad@gmail.com >
Co-authored-by: Cosmin Truta <ctruta@gmail.com >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-09-10 22:02:00 +03:00
Owen Rudge
8a354b41e9
cmake: Fix cross-compilation on macOS
...
Co-authored-by: Owen Rudge <owen@owenrudge.net >
Co-authored-by: Cosmin Truta <ctruta@gmail.com >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-09-10 21:31:13 +03:00
Cosmin Truta
0fe598d2f6
cmake: Rename the target "symbol-check" to "scripts_symbols_chk"
...
Follow the general conventions for naming CMake targets.
2022-09-10 20:45:21 +03:00
Gleb Mazovetskiy
cbf8c64b58
cmake: Correctly handle generated files
...
Generated files depend on other generated files, and this previously
resulted in the same custom command output being a dependency of
multiple other custom commands without a shared custom targets.
Adds a top-level target for each generated file and ensures that
commands that depend on generated files also depend on the corresponding
custom targets.
Per CMake documentation:
> Do not list the output in more than one independent target
> that may build in parallel or the two instances of the rule
> may conflict (instead use add_custom_target to drive the command
> and make the other targets depend on that one).
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-09-10 20:39:05 +03:00
Cosmin Truta
6a42bc1c8e
configure: Initialize PNG_ARM_NEON_OPT and PNG_MIPS_MSA_OPT correctly
2022-09-05 21:03:20 +03:00
Cosmin Truta
9e32b6f1ad
Rerun "./autogen.sh --maintainer"
2022-09-05 17:30:06 +03:00
Cosmin Truta
cc0e959722
Clean up configure.ac
...
Remove the obsolete autoconf macros:
AC_C_CONST, AC_HEADER_STDC, AC_TYPE_SIZE_T, AC_FUNC_STRTOD.
Clean up comments and whitespace.
2022-09-05 17:30:06 +03:00
Dan Field
403422674d
Remove obsolete/incorrect __LLVM,__asm section
...
Contributed-by: Dan Field <dnfield@google.com >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2022-09-05 13:46:00 +03:00
Cosmin Truta
bfb0abe4d9
Update the configuration for Travis CI and AppVeyor CI
...
Apply the following changes:
* Add FreeBSD (besides Linux and Mac) to the Travis CI testing.
* Use cc instead of clang for Xcode in the Travis CI testing.
* Upgrade the Windows test image from Visual Studio 2019 to
Visual Studio 2022 for AppVeyor CI.
2022-09-04 20:21:30 +03:00
Cosmin Truta
081e6751ab
ci: Update the CI scripts
...
Apply the following changes:
* Set CI_CMAKE_GENERATOR to "Ninja" by default in ci_cmake.sh.
* Set CI_CC to cc by default in ci_autotools.sh.
* Rename CI_SYSNAME to CI_SYSTEM_NAME; add CI_MACHINE_NAME.
* Apply other minor changes and fixes.
2022-09-04 19:41:33 +03:00
Cosmin Truta
103f8346e3
cmake: Set PNG_ARM_NEON to "on" by default on ARM64
...
Avoid build failures on all ARM64-based non-Linux systems.
PNG_ARM_NEON can be set to "check" on Linux/ARM32 only.
2022-08-26 03:27:42 +03:00
Cosmin Truta
723b2d9f2e
Update the copyright year
2022-08-26 03:12:35 +03:00
Cosmin Truta
b7ea74c97d
Update the copyright year
2021-03-15 20:23:26 -04:00
Cosmin Truta
8c3fdb0ac1
ci: Update the CI scripts
...
Implement the following updates:
* Add CI_SYSNAME and set it to `uname -s`.
* Set the default CI_CC value to "clang" on all BSD systems.
* Replace CI_SRCDIR_REL_BUILDDIR and CI_INSTALLDIR_REL_BUILDDIR
with CI_SRCDIR_NATIVE and CI_INSTALLDIR_NATIVE.
The former variables were hard-coded and error-prone; the new
variables are computed and safe to use.
2021-03-15 20:23:26 -04:00
Ben Bullock
a37d483651
Eliminate spaces between function name and (
2021-03-13 02:37:00 -05:00
Ben Bullock
3796518809
Remove duplicate line
2021-03-13 02:37:00 -05:00
Ben Bullock
8ca01083d6
Fix typo in README
2021-03-13 02:37:00 -05:00
Ben Bullock
cd03aaf7bf
Remove second call to write_eXIf
...
The second call to write_eXIf doesn't check whether the first call
succeeded; no other chunks except tIME and the text chunks seem to be
doubled like this.
The second call causes the eXIf chunk to incorrectly be written twice.
2021-03-13 02:37:00 -05:00
Qiang Zhou
c4bd411c35
Fix decode fail on image with invalid eXIf chunk
2021-03-13 02:10:50 -05:00
Kleber Tarcísio
2224c8ea7b
Add a check to pngimage.c
...
Check the result of png_get_IHDR inside the compare_read function.
Contributed-by: Kleber Tarcísio
Signed-off-by: Cosmin Truta
2021-03-13 01:56:32 -05:00
Cosmin Truta
e2bb5e7512
contrib: Apply various fixes to libtests
...
pngimage.c:
Initialize sig_bits on a NOTREACHED path to avoid warnings about using
uninitialized variables.
pngstest.c:
Enlarge buffers and fix signedness to avoid legitimate warnings about
potential buffer overflows.
pngunknown.c:
pngvalid.c:
Use NULL instead of 0 for pointers and apply other style fixes.
makepng.c:
tarith.c:
Apply various style fixes.
Also remove the "last changed" version info from source comments.
The version control system maintains this information automatically.
2021-03-12 22:54:32 -05:00
Cosmin Truta
d6e13b2acd
.gitignore: Add
2020-12-31 04:08:35 -05:00
Cosmin Truta
c2e2cd2ec5
ci: Fix the Visual Studio verification on AppVeyor CI
...
The Unix paths in Bash do not mix well with the Windows paths in CMake.
The uppercase and the lowercase environment variables do not mix well
in MSBuild. Et cetera.
On AppVeyor CI, verification of Windows builds with the Visual Studio
toolchain used to work, perhaps due to one or more lucky coincidences,
but it stopped working after an upgrade on the AppVeyor CI site.
Update ci_cmake.sh as follows:
* Use POSIX commands like "mkdir" and "rm" instead of CMake commands
like "make_directory" and "remove_directory".
* Avoid using absolute paths in the CMake command line; use relative
paths that are accessible from both Bash and Windows.
* Clean up incidental mixtures of Windows and Bash-on-Windows
environment variables like {$TEMP,$Temp,$temp} and {$TMP,$Tmp,$tmp}.
2020-12-31 03:29:11 -05:00
Cosmin Truta
c3f209178b
ci: Recognize more CI_ variables for better cross-platform verification
...
For ci_autotools.sh, customize CPP, CPPFLAGS, AR, RANLIB, LD, LDFLAGS
via CI_CPP, CI_CPP_FLAGS, CI_AR, CI_RANLIB, CI_LD, CI_LD_FLAGS.
For ci_cmake.sh and ci_legacy.sh, customize AR, AR_RC and RANLIB via
CI_AR and CI_RANLIB.
Rewrite portions of ci_legacy.sh to match the style of ci_cmake.sh.
2020-12-31 00:41:01 -05:00
Cristian Rodríguez
dbe3e0c43e
libpng.pc.in: zlib dependency is private
...
zlib should be injected only when pkgconfig is ran with the --static
option.
2020-05-24 23:28:35 -04:00
Cosmin Truta
2f753e260c
ci: Verify the install target
...
Add support for the install target in ci_autotools.sh and ci_cmake.sh.
Also add the environment option CI_NO_INSTALL.
2020-05-24 22:09:45 -04:00
Cosmin Truta
f5d5f5ae0e
cmake: Refactor the install target; reformat
...
Use standard CMake variables in the install target.
Reformulate comments and error messages.
Move all CMake keywords in front of their arguments.
Fix indentation.
2020-05-24 22:01:40 -04:00
Cosmin Truta
3676fd324a
ci: Add a new top-level directory, dedicated for CI verification
...
Update the ci_*.sh scripts and move them to the more conventional
ci/ directory. Update .appveyor.yml and .travis.yml, as well as
the AUTHORS file, accordingly.
Speed up ci_cmake.sh: add "-DPNG_TESTS=OFF" to the list of CMake
variables if CI_NO_TEST is true.
Remove "sudo: false" from .travis.yml.
Refactor .appveyor.yml.
2020-05-18 21:30:30 -04:00
Alex Gaynor
28c0f8895e
cmake: Add an option to enable/disable building of executables
...
Add the CMake option PNG_EXECUTABLES (on by default) in order to
allow or disallow the building of non-essential executable programs
associated with libpng.
Contributed-by: Alex Gaynor <alex.gaynor@gmail.com >
Contributed-by: Cosmin Truta <ctruta@gmail.com >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2020-05-18 18:46:32 -04:00
Cosmin Truta
87378bc21d
mips: Remove "last changed" version information from source comment
...
This information is maintained by the version control system.
2020-05-17 20:26:28 -04:00
gxw
6c6f7d105a
mips: Fix initialization: always close "/proc/cpuinfo"
2020-05-17 20:26:28 -04:00
Simon Hausmann
6842c58adc
Fix CMake build with Emscripten
...
When building with Emscripten, linkage to libm is neither required
nor working. As find_library will fail, M_LIBRARY will be set to
NOTFOUND and the build would fail later. The build works just fine
without libm linkage.
2020-05-17 20:13:17 -04:00
Dan Field
a6fc80300f
Add an __LLVM,__asm section for clang builds on ARM
2020-05-17 20:00:46 -04:00
Steve Robinson
5e8b45c436
cmake: Fix a build error on iOS
...
Avoid the awk-based configuration when cross-compiling from macOS
to iOS.
2020-05-17 19:50:18 -04:00
Zack Middleton
6dd99ca9c8
Fix example.c
2020-04-27 01:27:07 -04:00
willson-chen
52ee167644
Fix a warning on Linux caused by _BSD_SOURCE
...
I got a warning while compiling under Ubuntu 18.04 and gcc 7.4:
"__BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
Quote from the Linux Programmer's Manual:
"To allow code that requires _BSD_SOURCE in glibc 2.19 and earlier and
_DEFAULT_SOURCE in glibc 2.20 and later to compile without warnings,
define both _BSD_SOURCE and _DEFAULT_SOURCE."
2020-04-27 00:46:06 -04:00
skal
eb6767273a
Fix memory leak if eXIf has incorrect crc
...
Problem description:
Imagine a bitstream with an eXIf data segment that has invalid CRC.
If png_crc_finish() fails at line 2090, info_ptr->eXIf_buf is not freed
(despite the free_me setting at line 2062) because png_free_data() is
not called. png_read_info() is actually looping several time over the
png_eXIf chunk, calling png_handle_eXIf() several time in a row without
freeing the buffer.
This patch fixes the problem by leaving info_ptr's content in a clean
state in case of failure, as it is done at line 2084.
2020-04-27 00:16:36 -04:00
David Callu
9f734b13f4
cmake: Use the correct ZLIB_* variable names
...
ZLIB_LIBRARIES and ZLIB_INCLUDE_DIRS are the official cmake variable
names.
2020-04-26 23:54:11 -04:00
Cosmin Truta
3cec1a16f5
scripts: Clean up the makefiles
...
Delete variables (ALIGN, ARCH, DOCS) and targets (writelock) that are
no longer necessary.
Reorder the object file lists alphabetically, consistently across all
makefiles and build scripts.
Apply other minor fixes.
2020-03-29 23:58:29 -04:00
Cosmin Truta
50bd1abdb1
scripts: Fix makefile.std and include it in the CI verification
2020-03-29 22:26:32 -04:00
Cosmin Truta
2dd5630eae
Update configuration for Travis CI; add configuration for AppVeyor CI
...
Exclude the branch "libpng16" from testing. It's identical to "master".
Also exclude the other (non-current) "libpng[0-1][0-7]" branches.
Parallelize the builds and the unit tests.
For Travis CI, update the build matrix as follows:
* On Linux, use both clang and gcc.
* On macOS, use clang only, with and without Xcode.
For AppVeyor CI, add a build matrix as follows:
* On Windows, use Microsoft Visual Studio 2019 on x86, x64 and arm64.
* Also on Windows, use MSYS2 on x86 and x64.
Use the new scripts/ci_*.sh; remove the old scripts/travis.sh.
2020-03-29 01:11:42 -04:00
Cosmin Truta
b9155ce3fd
scripts: Add general-purpose utilities for continuous integration
...
Currently, libpng supports three different types of build automation:
the GNU autotools, CMake, and a legacy of hand-made makefiles.
In order to simplify the continous integration of all of the above
build options, we introduce the following scripts:
* ci_autotools.sh: CI utility for the Autotools build
* ci_cmake.sh: CI utility for the CMake build
* ci_legacy.sh: CI utility for the legacy makefiles
2020-03-29 00:41:33 -04:00
Cosmin Truta
2c0aee56a0
Update the copyright year
2020-02-02 20:02:00 -05:00
Christopher Thompson
301f7a1429
oss-fuzz: Add custom malloc with max limit to prevent OOM
...
This adds the custom malloc/free functions from the old
libpng_read_fuzzer to the upstream fuzzer to prevent clusterfuzz
running into OOM.
Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=904054
Contributed-by: Christopher Thompson <cthomp@chromium.org >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2019-04-25 00:37:57 -04:00
Ryan VanderMeulen
386707c6d1
arm: Use <arm_neon.h> when compiling aarch64 intrinsics with clang-cl
...
MSVC's <arm64_neon.h> header contains cl.exe intrinsics that are not
recognized by clang-cl.
Contributed-by: Ryan VanderMeulen <rvandermeulen@mozilla.com >
Contributed-by: Mike Klein <mtklein@google.com >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2019-04-24 23:57:14 -04:00
Cosmin Truta
216387f6f7
arm: Move a png_debug statement to its correct place
...
It should be placed immediately after all variable declarations.
2019-04-22 23:56:57 -04:00
Cosmin Truta
b9e811fa99
scripts: Delete makefile.clang-asan and makefile.gcc-asan
...
Travis CI is now running sanitizer-enabled test jobs.
2019-04-22 23:00:58 -04:00
Cosmin Truta
cdbb8ec7aa
Add support for Travis CI
2019-04-22 23:00:58 -04:00
Cosmin Truta
72fa126446
Avoid random test failures by running pngtest sequentially only
...
It is unreliable to run pngtest in parallel, due to competing writes
to the same intermediate/output file ("pngout.png").
Customization of this output file name should be possible, but it is
currently broken.
2019-04-21 00:30:14 -04:00
Cosmin Truta
5df8e982e2
Bump version to 1.6.38.git
2019-04-14 14:10:32 -04:00
Cosmin Truta
a40189cf88
Release libpng version 1.6.37
2019-04-14 14:10:32 -04:00
Miguel Ojeda
8da8257d0b
Fix typo in the new v2 license
...
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2019-04-14 11:15:51 -04:00
Cosmin Truta
27e8b99287
pngminus: Use the system zlib by default
...
If a zlib source tree exists besides the libpng source tree in the
same parent directory, the pngminus build may fail, unless the zlib
tree is built fully. In order to avoid this failing scenario, do not
use the custom-built zlib by default.
(The custom-built zlib is still necessary on platforms that lack a
system-built zlib.)
2019-04-10 22:23:25 -04:00
Willem van Schaik
62a56d4fcc
pngminus: Change license to MIT, etc.
...
Change the license to MIT.
Move the license text from the source files to a LICENSE file.
Move the change log from the source files to a CHANGES file.
Delete the Turbo C makefile and simplify the Linux makefile heavily.
Create explicitly named static and shared executables in the makefile.
Refresh the README file a bit from the twenty year old one.
Signed-off-by: Willem van Schaik <willem@schaik.com >
Signed-off-by: Cosmin Truta <ctruta@gmail.com >
2019-04-10 22:23:25 -04:00
Cosmin Truta
3342fafa60
pngminus: Add a CMakeLists file
2019-04-10 22:23:25 -04:00
Cosmin Truta
3f0f1d5579
pngminus: Improve portability and fix style (cont'd)
2019-04-10 22:23:25 -04:00
Cosmin Truta
dcefbc7dcd
pngminus: Improve portability and fix style
2019-04-10 22:23:25 -04:00
Cosmin Truta
1f0221fad7
pngminus: Fix a buffer overflow in tokenizer
2019-04-10 22:23:25 -04:00
Cosmin Truta
a627bd26a3
arm: Partially revert "Fix a memory leak in the riffled palette [...]"
...
The memory leak remains fixed, but the associated refactoring is
being reverted. Moving the initialization of the riffled palette
from png_do_read_transformations to png_init_palette_transformations
has caused a regression in some of the test programs.
Although png_init_palette_transformations is the proper place to
perform this initialization, and the test programs are technically
incorrect to fail, we are still undoing that refactoring for the
time being.
2019-04-07 19:50:12 -04:00
Cosmin Truta
82ae623ec9
arm: Rename all functions to the pattern png_*_neon; add debug traces
2019-03-31 09:44:45 -04:00
Cosmin Truta
9c0d5c77bf
Call png_image_free_function without guarding it with png_safe_execute
...
png_image_free_function (or any other destructor) should never fail.
Destructors need not and must not be executed under png_safe_execute.
Reference: CVE-2019-7317, use-after-free in png_image_free
2019-02-03 22:40:56 -05:00
Cosmin Truta
8439534daa
Fix a memory leak in pngtest.c
...
Ensure that row_buf is deallocated not only after a read error, but
also after a write error.
Use the format "%p" instead of "0x%08lx" for printf-ing row_buf in
a portable manner.
2019-02-03 21:00:49 -05:00
Cosmin Truta
70d122aac4
Fix a memory leak in the riffled palette optimization on ARM; refactor
...
Move deallocation of riffled_palette from png_write_destroy to
png_read_destroy. The reader (not the writer) is the owner of
riffled_palette.
Move allocation and initialization of riffled_palette from
png_do_read_transformations to png_init_palette_transformations.
Allow riffled_palette inside png_struct only if the ARM Neon
optimizations are enabled.
Rename png_riffle_palette_rgba to png_riffle_palette_rgba8, etc.,
to better indicate the strict applicability of these routines.
Fix an unused parameter warning in the build configurations where
riffled palette optimization is not enabled.
Fix indentation.
2019-02-03 19:51:18 -05:00
Cosmin Truta
0a882b5787
scripts: Add makefile.clang, makefile.clang-asan and makefile.gcc-asan
...
Also apply minor updates to makefile.gcc and makefile.msys
2019-01-20 22:21:48 -05:00
Cosmin Truta
fef895aa28
Update the copyright year
2019-01-19 19:01:19 -05:00
Cosmin Truta
43b4141839
scripts: Delete makefile.ne12bsd; clean up makefile.*bsd
2018-12-30 13:34:15 -05:00
Cosmin Truta
6a94d14567
Bump version to 1.6.37.git
2018-12-30 12:00:41 -05:00
Cosmin Truta
0e13545712
Join the branches 'libpng16' and 'master'
...
The branch 'libpng16' is for tracking libpng version 1.6.x.
The branch 'master' is for tracking the latest stable libpng version.
These branches will diverge again at the next major libpng upgrade.
2018-12-01 09:36:00 -05:00
Cosmin Truta
eddf902320
Release libpng version 1.6.36
2018-12-01 09:36:00 -05:00
Cosmin Truta
85acd919b9
[master] Imported from libpng-1.6.36.tar
2018-12-01 09:36:00 -05:00
Cosmin Truta
e79085a172
Introduce the PNG Reference Library License version 2
...
The new libpng license comprises the terms and conditions from the zlib
license, and the disclaimer from the Boost license.
The legacy libpng license, used until libpng-1.6.35, is appended to the
new license, following the precedent established in the Python Software
Foundation License version 2.
From now on, the list of contributing authors shall be maintained in a
separate AUTHORS file.
The lists of previous contributing authors, mentioned in the legacy
libpng license and considered to be an integral part of that license,
are kept intact, with no further updates.
2018-11-25 23:33:30 -05:00
Cosmin Truta
81a65de25d
Clean up config, scripts, examples, etc.
2018-11-25 20:27:04 -05:00
Kyle Bentley
702a07e716
CMakeLists: Fix incorrect creation of pkg-config file
...
(Contributed by Kyle Bentley)
2018-11-23 18:58:18 +00:00
Cosmin Truta
7b2224cb6e
CMakeLists: Require CMake version 3.1 or newer
...
Although CMake version 3.0.2 was previously required, the policies
CMP0053 and CMP0054, introduced only in CMake version 3.1 and used
in this CMakeLists file, can have surprising effects under an older
CMake version.
Simplify the CMakeLists file by setting the global policy version
to 3.1, and remove the specific policy settings.
As an added bonus, remove the vestigial workarounds for all ancient
CMake versions.
2018-11-17 23:39:15 -05:00
Cosmin Truta
ee7967eea4
CMakeLists: Fix detection of libm
...
Only use libm on Unix and Unix-like systems, except for Apple (where
it's unnecessary), and BeOS and Haiku (where it's unavailable).
Avoid searching for libm at explicit locations. They may be incorrect,
especially for cross-platform builds.
2018-11-17 21:31:55 -05:00
Cosmin Truta
a54a0562c5
Rerun autogen.sh
2018-09-04 01:10:21 -04:00
Cosmin Truta
94429a335b
Remove the "last changed" version information from source comments
2018-09-04 00:58:55 -04:00
Cosmin Truta
1ceaa83a84
Fix the build with MSVC ARM64
2018-09-04 00:53:38 -04:00
Cosmin Truta
b66ed71131
Restore the ANSI C compliance after adding the ARM optimization
...
Also apply style and formatting fixes
2018-09-04 00:15:30 -04:00
Richard Townsend
7734cda20c
Optimize png_do_expand_palette for ARM
...
ARM-specific optimization processes 8 or 4 pixels at once.
Improves performance by around 10-22% on a recent ARM Chromebook.
2018-09-04 00:04:58 -04:00
Cosmin Truta
2fc5ddff18
Restore the ANSI C compliance after applying the MSVC ARM64 fix
2018-09-03 22:27:45 -04:00
zzzzRuby
8033c96f32
Fix build errors with MSVC ARM64
...
(Contributed by Zhijie Liang)
2018-09-03 22:26:06 -04:00
Samuel Williams
d3d1baadb4
Prefer memcpy to manual pointer arithmetic.
2018-08-19 01:16:22 -04:00
luz.paz
a294c1bcb6
Some more trivial source typos
...
Found via `codespell` and `grep`
2018-08-19 00:57:20 -04:00
Cosmin Truta
ceb327789b
Remove top-level const from function-scope variables
...
As per the const correctness rules, top-level const-ness of data
in automatic scopes does not propagate outside of these scopes
(unlike const-ness at lower levels, such as pointers to const data).
Previously, const was used liberally, but inconsistently across the
libpng codebase. Using const wherever applicable is not incorrect.
However, _consistent_ use of const is difficult to maintain in such
conditions.
In conclusion, we shall continue to use const only where doing so is
strictly necessary:
1. If a function guarantees that it will not modify an argument
passed by pointer, the corresponding function parameter should be
a pointer-to-const (const T *).
2. Static data should not be modified, therefore it should be const.
Reference:
Google C++ Style Guide
https://google.github.io/styleguide/cppguide.html#Use_of_const
2018-08-18 22:47:16 -04:00
Cosmin Truta
1ef8882814
Replace the remaining uses of PNG_CONST with const
...
In v1.6.0, compiler support for const became a requirement.
It should be used consistently. To maintain backwards compatibility,
PNG_CONST is still maintained in deprecated form.
2018-08-18 21:01:02 -04:00
Cosmin Truta
58eedced25
CMakeLists: Update the contributor list
2018-08-18 19:49:56 -04:00
Cosmin Truta
1d89a5db66
CMakeLists: Fix style
2018-08-18 19:49:56 -04:00
Cosmin Truta
43446b735d
Fix a build warning on OpenBSD
...
(Contributed by Theo Buehler)
2018-08-12 23:46:02 -04:00
Cosmin Truta
6c059f8f5b
configure: Remove the memset check and the HAVE_MEMSET macro
...
The compatibility workaround png_memset() has been removed long ago.
The availability of memset() is a platform requirement.
2018-08-11 00:47:18 -04:00
Cosmin Truta
f5d48df418
CMakeLists: Remove the PNGARG option
...
Pre-ANSI function prototypes are no longer supported.
2018-08-11 00:47:18 -04:00
Cosmin Truta
9730362202
CMakeLists: Avoid symlinks on MSYS
...
create_symlink breaks the MSYS generator in the Windows CMake.
2018-08-10 00:58:48 -04:00
Cameron Cawley
7cb7afb43d
CMake: Fix compilation on systems without libm
2018-08-01 00:24:48 -04:00
Cosmin Truta
1bd4214a42
Clean up the scripts/ directory
...
Delete the files that are unused, redundant, or fundamentally broken:
def.c, makefile.bor, makefile.knr, makefile.msc, makefile.solaris-x86,
makefile.tc3
2018-07-29 22:19:43 -04:00
Cosmin Truta
6d55a14c58
Update projects/vstudio
2018-07-29 21:51:48 -04:00
Cosmin Truta
8440326590
Update the documentation
2018-07-29 00:33:12 -04:00
Cosmin Truta
b729fff4a3
Remove the Y2K compliance statement
...
As of July 2018, this statement is no longer necessary.
2018-07-28 23:39:55 -04:00
Cosmin Truta
c36c09f004
Update the export control information
...
Also reformat the license text.
2018-07-28 23:00:48 -04:00
Cosmin Truta
a873893279
Remove the "last changed" version information from source comments
...
This information is maintained by the version control system.
2018-07-28 18:47:21 -04:00
Cosmin Truta
47f18784e4
Rerun autogen.sh
2018-07-28 18:34:58 -04:00
Cosmin Truta
d4fb621429
Bump version to 1.6.36.git and update copyright notice
2018-07-28 18:34:58 -04:00
Vicki Pfau
fb6312a9f9
ARM: Disable hand-written AArch32 NEON on AArch64
2018-07-16 22:52:24 -04:00
Vicki Pfau
ddc842bf06
CMakeLists: Fix passing "off" for PNG optimizations
2018-07-16 22:52:04 -04:00
Vicki Pfau
46924bd877
CMakeLists: Fix disabling hardware optimizations
2018-07-16 22:50:32 -04:00
Cosmin Truta
8da397423e
[master] Imported from libpng-1.6.35.tar
2018-07-15 23:58:00 -04:00
Cosmin Truta
c17d164b44
Run autogen.sh
2018-07-15 23:58:00 -04:00
Cosmin Truta
46aedd8961
Release libpng version 1.6.35
2018-07-15 23:58:00 -04:00
Cosmin Truta
2471434d29
[libpng16] Added missing parentheses to a macro definition
...
(Contributed by github.com/irwir)
2018-07-01 23:32:08 -04:00
Cosmin Truta
8a05766cb7
[libpng16] Fix the calculation of row_factor in png_check_chunk_length
...
(Bug report by Thuan Pham, SourceForge issue #278 )
2018-06-17 22:56:29 -04:00
Cosmin Truta
a74aa9a002
[libpng16] Replace the remaining uses of png_size_t with size_t
...
In v1.6.0, size_t became a required type. It should be used
consistently. To maintain backwards compatibility, png_size_t
is still maintained in deprecated form.
2018-06-17 22:37:44 -04:00
Glenn Randers-Pehrson
916117d970
[libpng16] Allow compresion-type to be NULL in png_set_iCCP().
2018-03-29 10:37:12 -05:00
Glenn Randers-Pehrson
7784cd3f6f
[libpng16] Fix png_get_iCCP() to allow null compression-type
2018-03-28 18:02:32 -05:00
Glenn Randers-Pehrson
cde1e1fe79
[libpng16] Bump version to 1.6.35beta02
2018-03-06 14:06:57 -06:00
Glenn Randers-Pehrson
0e06b5948c
[libpng16] Imported from libpng-1.6.35beta01.tar
2018-03-06 14:06:24 -06:00
Glenn Randers-Pehrson
3fecfeada1
Merge branch 'more-misc-typos' of git://github.com/luzpaz/libpng into libpng16
2018-03-05 11:18:16 -06:00
taigacon
140f3aa280
Fix png_set_option to work.
2018-03-05 22:10:41 +08:00
luz.paz
eb91c0e4ed
More misc. typos
...
found via `codespell-q 3`
please review
2018-02-09 06:57:29 -05:00
Glenn Randers-Pehrson
d5e4915ebe
[libpng16] Update copyright year to 2018 in png.c
2018-01-07 20:06:11 -06:00
Glenn Randers-Pehrson
fe669f6f38
[libpng16] Update copyright year
2018-01-07 19:55:19 -06:00
Glenn Randers-Pehrson
84e6e35675
[libpng16] Fix potential problem with bKGD (Cosmin Truta)
2018-01-07 17:43:09 -06:00
Glenn Randers-Pehrson
28d0ee757d
[libpng16] temporarily disable 16-to-8 downscaling in the fuzzer
2017-12-17 17:52:45 -06:00
Glenn Randers-Pehrson
f07b985ddb
[libpng16] CHange "ASM C" to "C ASM" in CMakelists.txt
2017-12-17 17:49:26 -06:00
Vadim Zeitlin
d532334ef5
Avoid -Wundef warnings when building libpng
...
Always define PNG_INTEL_SSE_OPT and PNG_INTEL_SSE_IMPLEMENTATION before
comparing them with 0.
2017-11-13 22:06:01 +01:00
Glenn Randers-Pehrson
7292c861b1
[master] Imported from libpng-1.6.34.tar
2017-11-06 16:10:16 -06:00
Glenn Randers-Pehrson
fc32eb1662
[libpng16] Initialize entire 256-entry palette in png_set_PLTE().
2017-11-04 16:31:45 -05:00
Glenn Randers-Pehrson
7ca2f0e078
[libpng16] Fix one more typo
2017-11-03 11:31:39 -05:00
Glenn Randers-Pehrson
babae66b48
[libpng16] Update CHANGES and ANNOUNCE
2017-11-03 11:30:36 -05:00
Glenn Randers-Pehrson
3403a6e387
Merge branch 'typos' of git://github.com/luzpaz/libpng into libpng16
2017-11-03 10:57:27 -05:00
Glenn Randers-Pehrson
b196bd6566
[Libpng16] Add typecast to NULL argument to png_do_expand()
2017-11-03 10:50:38 -05:00
Unknown
f23b41d7b1
Misc. typos
...
Some are user facing. Some are in actual code. Most are in source comments. Also, please double check the changes in contrib/tools/pngfix.c
2017-11-03 00:52:06 -04:00
Glenn Randers-Pehrson
7125401411
[libpng16] Undo recent pngrutil.c change that did not fix oss-fuzz issue
2017-10-31 20:58:19 -05:00
Glenn Randers-Pehrson
4b52ef8e76
[libpng16] Removed some unnecessary brackets in pngrtran.c
2017-10-31 20:57:23 -05:00
Glenn Randers-Pehrson
5d7b4ab289
[libpng16] Replace png_set_add_alpha with png_set_trns_to_alpha in fuzzer.
2017-10-30 15:16:33 -05:00
Glenn Randers-Pehrson
7ee802a5a2
[libpng16] Initialize trans_color.red, green, and blue == trans_color.gray
...
in attempt to stop an oss-fuzz "use of ininitialized value" issue
2017-10-29 17:49:38 -05:00
Glenn Randers-Pehrson
2f8b82ebca
[libpng16] Revert recent changes that did not help with oss-fuzz issues
2017-10-29 10:30:42 -05:00
Glenn Randers-Pehrson
aea0ec4346
[libpng16] Initialize tRNS read buffers in pngrutil.c
2017-10-20 19:38:03 -05:00
Glenn Randers-Pehrson
af08094ba6
[libpng16] Use png_calloc instead of png_malloc in png_set_tRNS
2017-10-19 20:59:40 -05:00
Glenn Randers-Pehrson
9bddba26de
[libpng16] Initialize entire palette array to zero in png_handle_PLTE().
2017-10-17 16:22:22 -05:00
Glenn Randers-Pehrson
3b5bcea010
[libpng16] Revert recent changes to pngset.c
2017-10-17 15:20:31 -05:00
Glenn Randers-Pehrson
adefba1b03
[libpng16] Free tRNS chunk data when abandoning it
2017-10-16 21:03:43 -05:00
Glenn Randers-Pehrson
48a2460393
[libpng16] Do not enable tRNS having trans_color with out-of-range value.
2017-10-16 07:25:58 -05:00
Glenn Randers-Pehrson
2be0f33e7c
[libpng16] Nullify trans_color with out-of-range value, to stop oss-fuzz issue.
2017-10-15 11:04:53 -05:00
Glenn Randers-Pehrson
ccc77d2a8d
[libpng16] Add a call to png_set_packing() to the fuzzer.
2017-10-14 11:33:59 -05:00
Glenn Randers-Pehrson
f648294931
[libpng16] Removed call to png_read_start_image() from the fuzzer. In libpng16
...
it is an error to call that along with png_read_update_info().
2017-10-13 14:00:36 -05:00
Glenn Randers-Pehrson
83f27f018c
[libpng16] Relocate png_read_update_info() wrt png_start_image() in fuzzer.
2017-10-12 20:10:40 -05:00
Glenn Randers-Pehrson
fefe0affc1
[libpng16] Update CHANGES and ANNOUNCE and last-changed date in the fuzzer.
2017-10-12 14:30:36 -05:00
Glenn Randers-Pehrson
a3d1057a73
[libpng16] Fix typo in fuzzer (png_info_ptr should be info_ptr)
2017-10-11 16:58:39 -05:00
Glenn Randers-Pehrson
12384eae6f
[libpng16] Relocate malloc of row_ptr after png_read_update_info() in fuzzer
2017-10-11 16:28:14 -05:00
Glenn Randers-Pehrson
357af1f095
]libpng16] Add png_read_update_info() where needed in the fuzzer
2017-10-11 11:56:30 -05:00
Glenn Randers-Pehrson
ab791fc9d6
[libpng16] Add some commonly-used transforms to the libpng fuzzer
2017-10-10 20:30:54 -05:00
Glenn Randers-Pehrson
f5f8b98dbb
[libpng16] Remove "cd ../libpng" from oss-fuzz build.sh
2017-10-09 21:02:15 -05:00
Glenn Randers-Pehrson
293b6aaa59
[libpng16] Revert to using the system zlib with the libpng fuzzer
2017-10-07 12:38:04 -05:00
Glenn Randers-Pehrson
98a3b2a5c2
[libpng16] Use --with-libpng-prefix=OSS_FUZZ_ while building the fuzzer
2017-10-07 09:46:51 -05:00
Glenn Randers-Pehrson
78ad1208d6
[libpng16] Use "--with-zlib-prefix=z_" while building oss-fuzz fuzzer
2017-10-05 08:31:26 -05:00
Glenn Randers-Pehrson
477a241c10
[libpng16] Use --zprefix in oss-fuzz libpng build to avoid conflict with system libz.
2017-10-03 09:51:09 -05:00
Glenn Randers-Pehrson
edb1f47139
[libpng16] Clone zlib into the oss-fuzz zlib project and build zlib alongside libpng.
2017-10-01 16:21:16 -05:00
Glenn Randers-Pehrson
0f9f170e9f
[libpng16] Restore bad interlaced files, in contrib/pngsuite/interlaced
2017-09-29 18:15:53 -05:00
Glenn Randers-Pehrson
99d4a62c9a
[libpng16] Restored 21 of the contrib/pngsuite/i*.png, which were correct.
2017-09-29 11:06:17 -05:00
Glenn Randers-Pehrson
2227793efc
[libpng16] Bump version to 1.6.35beta01
2017-09-29 10:52:22 -05:00
Glenn Randers-Pehrson
b78804f9a2
[libpng16] Imported from libpng-1.6.34.tar
2017-09-29 03:42:33 -05:00
Glenn Randers-Pehrson
345fc37fdc
[libpng16] Bump version to 1.6.34beta01
2017-09-28 17:51:45 -05:00
Glenn Randers-Pehrson
c1effe1bbf
[master] Imported from libpng-1.6.33.tar
2017-09-28 13:58:53 -05:00
Glenn Randers-Pehrson
2ee8cb0559
[libpng16] Imported from libpng-1.6.33.tar
2017-09-28 13:58:30 -05:00
Glenn Randers-Pehrson
414de98047
[libpng16] Add end_info structure to libpng fuzzer; add row_ptr to CLEANUP
2017-09-28 09:20:20 -05:00
Glenn Randers-Pehrson
0512c63533
[libpng16] Revert contrib/oss-fuzz/libpng_read_fuzzer.cc to libpng-1.6.32 status
2017-09-27 18:05:07 -05:00
Glenn Randers-Pehrson
cae11e3e43
[libpng16] Treat benign errors as warnings in the libpng fuzzer
2017-09-27 08:19:11 -05:00
Glenn Randers-Pehrson
4f0a0b9a94
[libpng16] Build fuzzer with "-O0" to defeat optimizer removing "dead" code
2017-09-25 08:15:51 -05:00
Glenn Randers-Pehrson
dc22583aca
[libpng16] Undo another faulty attempt to defeat the compiler from
...
optimizing out the the core of libpng_read_fuzzer.cc
2017-09-25 03:54:22 -05:00
Glenn Randers-Pehrson
346cbf2c2a
[libpng16] Another attempt to defeat the fuzzer optimizer
2017-09-24 09:25:12 -05:00
Glenn Randers-Pehrson
8eb79b3435
[libpng16] Undo faulty attempt to defeat the fuzzer optimizer
2017-09-24 08:31:08 -05:00
Glenn Randers-Pehrson
13a158690f
[libpng16] Imported from libpng-1.6.33rc02.tar
2017-09-23 21:25:19 -05:00
Glenn Randers-Pehrson
e4c8312d31
[libpng16] Document alpha_mode choices in the man page
2017-09-23 21:23:59 -05:00
Glenn Randers-Pehrson
3d2d0b52a3
[libpng16] Fix Coverity defect regarding errmsg in pngrutil.c
2017-09-23 21:22:18 -05:00
Glenn Randers-Pehrson
073fe76f6a
[libpng16] Add support for loading images with associated alpha in the
...
Simplified API (Samuel Williams).
2017-09-23 15:12:52 -05:00
Glenn Randers-Pehrson
4b7635ce72
[libpng16] Support associated alpha in the simplified api
2017-09-23 15:11:18 -05:00
Glenn Randers-Pehrson
96333b6bea
[libpng16] Defeat optimization that removes reading rows in the fuzzer.
2017-09-23 10:34:40 -05:00
Glenn Randers-Pehrson
90dd185aed
[libpng16] Removed more redundant tests (suggested by "irwir" in Github issue #180 ).
2017-09-22 17:29:59 -05:00
Glenn Randers-Pehrson
8746d57184
[libpng16] Fix some color types and bit depths in new pngsuite files
2017-09-22 16:15:12 -05:00
Glenn Randers-Pehrson
0165badb9d
[libpng16] Relocate new memset() call in pngrutil.c (irwir).
2017-09-22 15:21:36 -05:00
Glenn Randers-Pehrson
60d297d592
[libpng16] Added interlaced versions of each file in contrib/pngsuite.
2017-09-21 20:09:50 -05:00
Glenn Randers-Pehrson
2da37077db
[libpng16] Bump version to 1.6.33rc02
2017-09-20 18:40:13 -05:00
Glenn Randers-Pehrson
e1220aefc4
[libpng16] Imported from libpng-1.6.33rc01.tar
2017-09-20 18:13:17 -05:00
Glenn Randers-Pehrson
5efa483265
[libpng16] Removed a redundant test (suggested by "irwir" in Github issue #180 ).
2017-09-20 15:53:38 -05:00
Glenn Randers-Pehrson
5f0c9fabbc
[libpng16] Bump version to 1.6.33rc01
2017-09-20 15:50:17 -05:00
Glenn Randers-Pehrson
397c7eea38
[libpng16] Add a memset() in png_read_buffer()
2017-09-19 18:52:21 -05:00
Glenn Randers-Pehrson
066cb34268
[libpng16] Fix some comments
2017-09-19 15:52:36 -05:00
Glenn Randers-Pehrson
721b96ef90
[libpng16] zero out memory allocated by png_inflate
2017-09-18 14:23:41 -05:00
Glenn Randers-Pehrson
562a68513e
[libpng16] Initialize tag_start etc. in png_icc_check_tag_table().
2017-09-16 20:53:21 -05:00
Glenn Randers-Pehrson
a7722aee32
[libpng16] Undo faulty attempt to stifle oss-fuzz complaint about
...
png_icc_check_tabler()
2017-09-16 08:37:54 -05:00
Glenn Randers-Pehrson
413de0a56a
[libpng16] Undo another faulty attempt to stifle oss-fuzz complaint
2017-09-16 08:29:06 -05:00
Glenn Randers-Pehrson
04e16d2817
[libng16] Attempt to stop Use of Uninitialized Value in png_set_text_2()
2017-09-15 16:44:20 -05:00
Glenn Randers-Pehrson
d1a0937cae
[libpng16] Still another attempt to fix oss-fuzz uninitialized value
2017-09-15 08:20:23 -05:00
Glenn Randers-Pehrson
1c98b85886
[libpng16] Bump version to 1.6.33beta04
2017-09-14 12:48:53 -05:00
Glenn Randers-Pehrson
4de130c255
[libpng16] Imported from libpng-1.6.33beta03.tar
2017-09-14 12:46:28 -05:00
Glenn Randers-Pehrson
4ddead1e1c
[libpng16] Undo failed attempt to prevent UMR in png_icc_check_table().
2017-09-14 07:21:58 -05:00
Glenn Randers-Pehrson
d7edcc40e4
[libpng16] Undo failed attempt to debug UMR in png_set_text_2().
2017-09-13 19:34:51 -05:00
Glenn Randers-Pehrson
7d40b53fbf
[libpng16] Use png_chunk_report when handling a truncated ICC chunk.
2017-09-13 06:09:10 -05:00
Glenn Randers-Pehrson
76b269b1f4
[libpng16] Attempt to debug Uninitialized Memory Read in png_set_text_2(),
...
detected by the oss-fuzz project.
2017-09-12 08:52:44 -05:00
Glenn Randers-Pehrson
61d29bfc80
[libpng16] Guard against Uninitialized Memory Read in png_check_icc_table(),
...
detected by the oss-fuzz project.
2017-09-12 08:22:09 -05:00
Glenn Randers-Pehrson
0f2adc19eb
[libpng16] Trying to avoid a UMR in png_set_text_2(().
2017-09-10 09:47:29 -05:00
Glenn Randers-Pehrson
1aabcfdbae
[libpng16] Trying to isolate oss-fuzz issue in png_set_text_2().
2017-09-10 05:45:44 -05:00
Glenn Randers-Pehrson
b5ae93d72e
[libpng16] Rearrange order of tests in png_iccp_check_tag_table()
2017-09-10 05:33:17 -05:00
Glenn Randers-Pehrson
6a2a762914
[libpng16] Fix typo in ANNOUNCE and CHANGES
2017-09-08 17:40:23 -05:00
Glenn Randers-Pehrson
50c9e15a7d
[libpng16] Do not try to generate pngprefix.h on ANDROID
2017-09-08 14:57:09 -05:00
Glenn Randers-Pehrson
c0f02a8078
[libpng16] Use pnglibconf.h.prebuilt when building for ANDROID with cmake
...
Github issue 162, by rcdaily).
2017-09-08 12:26:18 -05:00
Glenn Randers-Pehrson
3789cba2f2
[libpng16] Attempt to isolate an oss-fuzz issue in png_set_text_2
2017-09-08 09:34:08 -05:00
Glenn Randers-Pehrson
8592873f24
[libpng16] Attempting to fix an oss-fuzz issue.
2017-09-08 08:27:10 -05:00
Glenn Randers-Pehrson
051dcaf877
[libpng16] Added a copy of Dockerfile to the contrib/oss-fuzz directory
2017-09-08 08:19:31 -05:00
Samuel Williams
95046512a4
Add support for loading images with associated alpha.
2017-09-06 17:22:46 +12:00
Glenn Randers-Pehrson
4e9839d453
[libpng16] Update "last changed" date in contrib/oss-fuzz/*.cc
2017-09-05 18:51:36 -05:00
Glenn Randers-Pehrson
d17041f052
Merge pull request #176 from kcc/patch-1
...
properly define PNG_CLEANUP
2017-09-05 19:46:00 -04:00
Kostya Serebryany
cbcb39932c
properly define PNG_CLEANUP
...
Should fix https://github.com/google/oss-fuzz/issues/809
2017-09-05 14:02:15 -07:00
Glenn Randers-Pehrson
52a566af97
[libpng16] Fix typecast in pngtrans.c
2017-09-04 18:23:06 -05:00
Glenn Randers-Pehrson
9050c32365
[libpng16] Remove one remaining "png_handler." from contrib/oss-fuzz/*.cc
2017-09-04 16:52:46 -05:00
Glenn Randers-Pehrson
4911714f74
[libpng16] Fix incorrect typecast of "intent" (should be png_alloc_size_t,
...
was unsigned int). Fixes github issue #175 .
2017-09-04 16:45:45 -05:00
Glenn Randers-Pehrson
c77de19ba9
[libpng16] Revise contrib/oss-fuzz/libpng_read_fuzzer.cc
2017-09-04 08:22:39 -05:00
Glenn Randers-Pehrson
051d6cc19b
[libpng16] Fixed incorrect typecast of some arguments to png_malloc() and
...
png_calloc() that were png_uint_32 instead of png_alloc_size_t
(Bug report by "irwir" in Github libpng issue #175 ).
2017-09-03 15:19:59 -05:00
Glenn Randers-Pehrson
61e0a38091
[libpng16] Reference CVE-2017-12652 in CHANGES.
2017-09-03 09:01:09 -05:00
Glenn Randers-Pehrson
fca1862ac9
[libpng16] Bump version to 1.6.33beta03
2017-09-02 19:48:40 -05:00
Glenn Randers-Pehrson
c2c8b398a9
[libpng16] Imported from libpng-1.6.33beta02.tar
2017-09-02 19:48:19 -05:00
Glenn Randers-Pehrson
9495ab477b
[libpng16] Enabled ARM support in CMakeLists.txt (Bernd Kuhls).
2017-09-02 19:35:06 -05:00
Glenn Randers-Pehrson
62a2463211
[lbipng16] Use current date (DATE) instead of release-date (RDATE) in last
...
changed date of contrib/oss-fuzz files.
2017-09-02 17:17:55 -05:00
Glenn Randers-Pehrson
dcd3edaf87
[libpng16] Restored part of ~PngObjectHandler() that was deleted from
...
contrib/oss-fuzz/libpng_read_fuzzer.cc
2017-09-02 16:13:15 -05:00
Bernd Kuhls
b47e0f5ceb
CMakeLists.txt: Enable building asm code
...
NEON support is provided by filter_neon.S which is currently not build
by cmake causing an error when linking with libpng16.so.16.32.0:
[ 97%] Linking C executable pngstest
libpng16.so.16.32.0: undefined reference to `png_read_filter_row_avg4_neon'
libpng16.so.16.32.0: undefined reference to `png_read_filter_row_paeth3_neon'
libpng16.so.16.32.0: undefined reference to `png_read_filter_row_up_neon'
libpng16.so.16.32.0: undefined reference to `png_read_filter_row_avg3_neon'
libpng16.so.16.32.0: undefined reference to `png_read_filter_row_paeth4_neon'
libpng16.so.16.32.0: undefined reference to `png_read_filter_row_sub4_neon'
libpng16.so.16.32.0: undefined reference to `png_read_filter_row_sub3_neon'
2017-09-02 15:09:30 +02:00
Glenn Randers-Pehrson
84a5bf83ff
[libpng16] Nullify all pointers in PNG_CLEANUP of libpng_read_fuzzer.cc
2017-08-31 16:46:15 -05:00
Glenn Randers-Pehrson
f3a22d396a
[libpng16] Trivial reordering of libpng_read_fuzzer.cc
2017-08-31 15:01:25 -05:00
Glenn Randers-Pehrson
eb2f42aa97
[libpng16] Compute a larger limit on IDAT because some applications write a
...
deflate buffer for each row (Bug report by Andrew Church).
2017-08-31 11:14:23 -05:00
Glenn Randers-Pehrson
47aa798127
[libpng16] Cosmetic changes to contrib/oss-fuzz/libpng_read_fuzzer.cc
2017-08-30 13:11:16 -05:00
Glenn Randers-Pehrson
5c27e93f51
[libpng16] Bump version to 1.6.33beta02
2017-08-30 07:03:12 -05:00
Glenn Randers-Pehrson
efaf42e5df
[libpng16] Initialize png_handler.row_ptr in
...
contrib/oss-fuzz/libpng_read_fuzzer.cc
2017-08-30 06:47:55 -05:00
Glenn Randers-Pehrson
d3220babe2
[libpng16] Revised contrib/oss-fuzz/libpng_read_fuzzer.cc
2017-08-29 19:36:49 -05:00
Glenn Randers-Pehrson
a1b5be044f
[libpng16] Update "last changed" date in pngtrans.c
2017-08-29 12:32:29 -05:00
Glenn Randers-Pehrson
58720d3c06
[libpng16] Fix "last changed" dates
2017-08-29 12:29:03 -05:00
Glenn Randers-Pehrson
d64c5ea1a8
[libpng16] Update ANNOUNCE and CHANGES about pnm2png.c fix
2017-08-28 19:07:27 -05:00
Glenn Randers-Pehrson
50d2d49220
[libpng16] Imported from libpng-1.6.33beta01.tar
2017-08-28 18:34:23 -05:00
Glenn Randers-Pehrson
d2b9af04ac
[libpng16] Fixed off-by-one error in png_do_check_palette_indexes() (Bug report
...
by Mick P., Source Forge Issue #269 ).
2017-08-28 11:58:11 -05:00
Glenn Randers-Pehrson
321c24b0d7
[libpng16] Bump version to 1.6.33beta01
2017-08-28 11:30:44 -05:00
Christian Hesse
14a8996fe6
[libpng] Updated PNGMINUS_UNUSED macro and comments in contrib/pngminus/p*.c
2017-08-28 11:28:18 -05:00
Glenn Randers-Pehrson
ef76b1f688
[libpng16] Free row_ptr in contrib/oss-fuzz/libpng_read_fuzzer.cc PNG_CLEANUP
...
to fix google/oss-fuzz issue 3193.
2017-08-28 11:07:10 -05:00
Glenn Randers-Pehrson
5c616548a0
[libpng16] Added PNGMINUS_UNUSED macro to contrib/pngminus/p*.c and added
...
missing parenthesis in contrib/pngminus/pnm2png.c (bug report by Christian
Hesse).
2017-08-28 07:13:22 -05:00
Glenn Randers-Pehrson
da923d334d
[libpng16] Add calls to png_read_update_info() and png_read_end()
...
to contrib/oss-fuzz/libpng_read_fuzzer.cc, trying to increase coverage.
2017-08-26 20:39:50 -05:00
Glenn Randers-Pehrson
e06ec26906
[libpng16] Revise contrib/oss-fuzz/build.sh links to other oss-fuzz files
2017-08-25 18:56:37 -05:00
Glenn Randers-Pehrson
f6ca33d42c
[libpng16] Bump version to 1.6.33beta01
2017-08-25 18:54:30 -05:00
Glenn Randers-Pehrson
f8110669f0
[master] Imported from libpng-1.6.32.tar
2017-08-24 16:39:24 -05:00
Glenn Randers-Pehrson
df7e9dae0c
[libpng16] Imported from libpng-1.6.32.tar
2017-08-24 16:39:02 -05:00
Glenn Randers-Pehrson
4760bac13d
[libpng16] Removed mention of the .yaml file in the oss-fuzz README.txt
2017-08-23 21:09:59 -05:00
Glenn Randers-Pehrson
737f347f23
[libpng16] Removed contrib/-ss-fuzz/project.yaml which belongs in
...
google/oss-fuzz/projects/libpng
2017-08-23 21:02:57 -05:00
Glenn Randers-Pehrson
1257369169
[libpng16] Bump version to 1.6.32rc03
2017-08-22 20:06:04 -05:00
Glenn Randers-Pehrson
de315dfaad
[libpng16] Imported from libpng-1.6.32rc02.tar
2017-08-22 16:31:50 -05:00
Glenn Randers-Pehrson
ba5f7f6a3e
[libpng16] Bump version to 1.6.32rc02
2017-08-22 14:01:00 -05:00
Glenn Randers-Pehrson
b0d14c7d13
'libpng16] Imported more files into the contrib/oss-fuzz directory
2017-08-22 13:58:59 -05:00
Glenn Randers-Pehrson
735fde494a
[lbpng16] Clarified licensing info in contrib/oss-fuzz/*
2017-08-21 20:34:26 -05:00
Glenn Randers-Pehrson
d2533b96f3
[libpng16] Use png_handler.png_ptr instead of read_ptr in png_set_options(()
2017-08-21 20:19:43 -05:00
Glenn Randers-Pehrson
ddabd0c70a
[libpng16] Added contrib/oss-fuzz directory
2017-08-21 19:14:39 -05:00
Glenn Randers-Pehrson
945759162e
[libpng16] Imported from libpng-1.6.32rc01.tar
2017-08-18 20:01:11 -05:00
Glenn Randers-Pehrson
bcb739a864
[libpng16]Fix several "{" that were written in a different coding style;
...
update version number and copyright year
2017-08-11 10:14:33 -05:00
Glenn Randers-Pehrson
90b437e372
[libpng16] specify full path name of huge_*safe_to_copy.png in pngtest-badpngs
2017-08-11 07:48:19 -05:00
Glenn Randers-Pehrson
ab3ea490fd
[libpng16] Revise tests/pngtest-badpngs to include the two renamed huge* files.
2017-08-11 07:42:38 -05:00
Glenn Randers-Pehrson
d19e8b9a4b
[libpng16] Renamed chunks in contrib/testpngs/crashers to avoid having files
...
whose names differ only in case; this causes problems with some platforms
(github issue #172 ).
2017-08-11 06:39:26 -05:00
Glenn Randers-Pehrson
c5f801c82b
[libpng16] Fix typo
2017-08-07 14:35:06 -05:00
Glenn Randers-Pehrson
7b8b7115d9
[libpng16] Bump version to 1.6.32beta12
2017-08-07 14:25:51 -05:00
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
c362a8c80e
[libpng16] Free eXIf_buf when detecting bad byte-order specifier.
2017-08-07 06:31:58 -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
33787340a4
Fix typo (1 should be 2) in png_handle_eXIf
2017-08-06 10:35:23 -05:00
Glenn Randers-Pehrson
cf713fb0ab
[libpng16] Check that the eXIf chunk has at least 2 bytes and begins
...
with "II" or "MM".
2017-08-06 10:24:04 -05:00
Glenn Randers-Pehrson
c82ae40e9f
[libpng16] Test or 11 bytes instead of 14 after the iCCP keyword has been read.
2017-08-06 08:37:48 -05:00
Glenn Randers-Pehrson
099558d100
[libpng16] Relocate the iCCP length test to a point after reading the keyword
2017-08-06 08:25:56 -05:00
Glenn Randers-Pehrson
8ed418b042
[libpng16] Increase minimum zlib stream from 9 to 14 in png_handle_iCCP(),
...
to account for the minimum 'deflate' stream.
2017-08-06 07:59:02 -05:00
Glenn Randers-Pehrson
39d84f4f6a
[lbpng16] Attempt to fix a UMR in png_set_text_2() to fix OSS-fuzz issue.
2017-08-05 20:51:23 -05:00
Glenn Randers-Pehrson
c5c778bcfc
[libpng16] Initialize profile_header[] in png_handle_iCCP() to fix OSS-fuzz issue.
2017-08-05 20:15:52 -05:00
Glenn Randers-Pehrson
1ebe4f75cc
[Libpng16] Relocated setting free_me for eXIf data, to stop an OSS-fuzz leak.
2017-08-05 19:58:41 -05:00
Glenn Randers-Pehrson
13bc0b6b1f
[libpng16] Make png_check_chunk_length|name() parameters const
2017-08-05 15:35:45 -05:00
Glenn Randers-Pehrson
fcd1bb9312
[libpng16] Removed unused chunk_name parameter from png_check_chunk_length().
2017-08-05 15:08:40 -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
0ec733ce61
[libpng16] Added "eXIf" to "chunks_to_ignore[]" in png_set_keep_unknown_chunks().
2017-08-05 08:01:53 -05:00
Glenn Randers-Pehrson
dbdeb1f3fa
[libpng16] Bump version to 1.6.32beta11
2017-08-04 20:09:13 -05:00
Glenn Randers-Pehrson
3d7f3e57b5
[libpng16] Imported from libpng-1.6.32beta10.tar
2017-08-04 20:06:23 -05:00
Glenn Randers-Pehrson
a64c8ca9e9
[libpng16] Insert a newline at beginning of libpng warning in pngtest.c
2017-08-04 20:04:58 -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
3a957dd96f
[lbipng16] Fix "const" declaration info_ptr argument to png_get_eXIf_1() and the
...
num_exif argument to png_get_eXIf_1() (Github Issue 171).
2017-08-04 16:29:06 -05:00
Glenn Randers-Pehrson
554d4400ab
[libpng16] Fix "const" declaration info_ptr argument to png_get_eXIf_1().
2017-08-04 15:38:41 -05:00
Clifford Yapp
2037030d50
[lbpng16] Require cmake-3.0.2 in CMakeLists.txt (Clifford Yapp).
2017-08-04 14:46:17 -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
2dca15686f
[libpng16] Moved chunk-length check into a png_check_chunk_length() private
...
function (Suggested by Max Stepin).
2017-08-04 14:09:27 -05:00
Glenn Randers-Pehrson
469317d9bd
[libpng16] Removed a left-over debugging "printf" statement from pngrutil.c
2017-08-04 12:14:39 -05:00
Glenn Randers-Pehrson
894a9869dd
[libpng16] Bump version to 1.6.32beta10
2017-08-03 18:15:46 -05:00
Glenn Randers-Pehrson
c14be73428
[libpng16] Imported from libpng-1.6.32beta09.tar
2017-08-03 18:15:21 -05:00
Glenn Randers-Pehrson
2dbef2f2a9
[libpng16] Restored IDAT length check. Previously the calculated limit was five
...
bytes too small (neglected to account for a partial DEFLATE buffer)
2017-08-03 18:03:12 -05:00
Glenn Randers-Pehrson
4ac8b5e0d6
[libpng16] Use png_debug2() instead of printf() for bug reporting.
2017-08-03 16:29:58 -05:00
Glenn Randers-Pehrson
9d4215e6c0
[libpng16] Require cmake-2.8.8 in CMakeLists.txt. Revised symlink creation,
...
no longer using deprecated cmake LOCATION feature (Clifford Yapp).
2017-08-03 16:10:27 -05:00
Glenn Randers-Pehrson
d683af0f12
[libpng16] Temporarily disable IDAT length-limiting.
2017-08-03 16:04:22 -05:00
Glenn Randers-Pehrson
095b4ce16b
[libpng16] Disabled new limit test on IDAT chunks. It was producing too small
...
a limit for some files.
2017-08-03 12:43:56 -05:00
Glenn Randers-Pehrson
bfdabdacff
[libpng16] Bump version to 1.6.32beta09
2017-08-03 10:57:55 -05:00
Glenn Randers-Pehrson
6f89dff45e
[libpng16] Imported from libpng-1.6.32beta08.tar
2017-08-03 10:57:37 -05:00
Glenn Randers-Pehrson
d930d36155
[libpng16] Restored png_get_eXIf_1() and png_set_eXIf_1() because strlen(eXIf_buf)
...
does not work (the eXIf chunk data can contain zeroes).
2017-08-03 10:29:10 -05:00
Glenn Randers-Pehrson
a1fe2c9848
[libpng16] Check length of IDAT against maximum possible IDAT size, accounting
...
for height, rowbytes, interlacing and zlib/deflate overhead.
2017-08-03 10:01:35 -05:00
Glenn Randers-Pehrson
6b53a5ed7b
[libpng16] Update manpage about user malloc_max limit
2017-08-02 19:58:31 -05:00
Glenn Randers-Pehrson
70041f4038
[libpng16] Bump version to 1.6.32beta08
2017-08-02 19:30:40 -05:00
Glenn Randers-Pehrson
96b65b3644
[libpng16] Imported from libpng-1.6.32beta07.tar
2017-08-02 19:30:21 -05:00
Glenn Randers-Pehrson
347538efbd
[libng16] Check length of all chunks except IDAT against user limit.
2017-08-02 19:21:19 -05:00
Glenn Randers-Pehrson
2b37d46564
[libpng16] Bump version to 1.6.32beta07
2017-08-02 17:32:15 -05:00
Glenn Randers-Pehrson
2df5c96352
[libpng16] Imported from libpng-1.6.32beta06.tar
2017-08-02 17:31:55 -05:00
Glenn Randers-Pehrson
3fa1df48a1
[libpng16] Removed png_get_eXIf_1() and png_set_eXIf_1().
2017-08-02 17:27:41 -05:00
Glenn Randers-Pehrson
f30f1ae3ea
[libpng16] Imported from libpng-1.6.32beta05.tar
2017-08-02 16:50:30 -05:00
Glenn Randers-Pehrson
7c709f039f
[libpng16] Restored png_get_eXIf() and png_set_eXIf() to maintain API compatability.
2017-08-02 16:48:11 -05:00
Glenn Randers-Pehrson
f8de55da04
[libpng16] Fix descriptions of eXIf function calls in the manpage.
2017-08-02 06:56:19 -05:00
Glenn Randers-Pehrson
fd6b87253c
[libpng16] Eliminate local eXIf_buf from png_handle_eXIf()
2017-08-02 06:35:15 -05:00
Glenn Randers-Pehrson
821b1dcf34
[libpng16] Bump version to 1.6.32beta04
2017-08-01 22:07:53 -05:00
Glenn Randers-Pehrson
611b29acd8
[libpng16] Imported from libpng-1.6.32beta03.tar
2017-08-01 22:07:34 -05:00
Glenn Randers-Pehrson
71a56180e5
[libpng16] Stop memory leak when returning from png_handle_eXIf() with an error
...
(Bug report from the OSS-fuzz project).
2017-08-01 21:42:16 -05:00
Glenn Randers-Pehrson
cb628b2e4e
[libpng16] Bump version to 1.6.32beta03
2017-08-01 15:26:36 -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
4aad3c0eb0
[libpng16] Imported from libpng-1.6.32beta02.tar
2017-08-01 07:59:07 -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
91540c56af
[libpng16] Update png_get|set_eXIf_1() prototypes in libpng.3
2017-07-31 17:19:01 -05:00
Glenn Randers-Pehrson
90d3ff290f
[libpng16] Bump version to 1.6.32beta02
2017-07-31 17:07:42 -05:00
Glenn Randers-Pehrson
619cf868e6
[libpng16] Imported from libpng-1.6.32beta01.tar
2017-07-31 17:07:23 -05:00
Glenn Randers-Pehrson
3524b0d201
[libpng16] Update "Last changed" dates and some copyright years
2017-07-31 17:03:17 -05:00
Glenn Randers-Pehrson
3e753f5cbe
[libpng16] Changed name of png_get_eXIF and png_set_eXIf() to png_get_eXIf_1()
...
and png_set_eXIf_1(), respectively, to avoid breaking API compatibility
with libpng-1.6.31.
2017-07-31 16:56:30 -05:00
Glenn Randers-Pehrson
c77274ffa9
[libpng16] Committed png.h and pngpriv.h that were omitted from previous checkin
2017-07-31 16:43:19 -05:00
Glenn Randers-Pehrson
323c8655cf
[libpng16] Updated pngread.c with calls to png_handle_eXIf() omitted from previous checkin
2017-07-31 15:23:06 -05:00
Glenn Randers-Pehrson
40afb68570
[libpng16] Added calls to png_handle_eXIf(() in pngread.c and png_write_eXIf()
...
in pngwrite.c, and made various other fixes to png_write_eXIf().
Eliminated png_ptr->num_exif member from pngstruct.h and added num_exif
to arguments for png_get_eXIf() and png_set_eXIf().
2017-07-31 14:21:46 -05:00
Glenn Randers-Pehrson
4ab78af90a
[libpng16] Avoid possible NULL dereference in png_handle_eXIf when benign_errors
...
are allowed. Avoid leaking the input buffer "eXIf_buf".
2017-07-30 19:36:25 -05:00
Glenn Randers-Pehrson
b73c891891
[libpng16] Bump version to 1.6.32beta01
2017-07-27 14:18:21 -05:00
Glenn Randers-Pehrson
fbff8986e7
[master] Imported from libpng-1.6.31.tar
2017-07-27 05:27:39 -05:00
Glenn Randers-Pehrson
9fcb846402
[libpng16] Imported from libpng-1.6.31.tar
2017-07-27 05:27:17 -05:00
Glenn Randers-Pehrson
136b3203f4
[libpng16] Imported from libpng-1.6.31rc02.tar
2017-07-25 15:33:58 -05:00
Glenn Randers-Pehrson
1ed0b3f7ca
[libpng16] Fixed typo in example.c (png_free_image should be png_image_free)
...
(Bug report by John Smith)
2017-07-25 15:32:19 -05:00
Glenn Randers-Pehrson
a354e5c1ff
[libpng16] Imported from libpng-1.6.31rc01.tar
2017-07-19 09:51:35 -05:00
Glenn Randers-Pehrson
3de6fa1122
[libpng16] Imported from libpng-1.6.31beta07.tar
2017-07-18 06:42:54 -05:00
Glenn Randers-Pehrson
db16b27d11
[libpng16] Revised the eXIf chunk in pngtest.png to fix "Bad IFD1 Directory" warning.
2017-07-18 06:41:18 -05:00
Glenn Randers-Pehrson
d2fcc41eec
[libpng16] Imported from libpng-1.6.31beta06.tar
2017-07-17 06:09:30 -05:00
Glenn Randers-Pehrson
cd37210184
[libpng16] Added a minimal eXIf chunk (with Orientation and FocalLengthIn35mmFilm
...
tags) to pngtest.png.
2017-07-16 16:38:01 -05:00
Glenn Randers-Pehrson
a5b6751bbd
[libpng16] Bump version to 1.6.31beta06
2017-07-13 11:28:18 -05:00
Glenn Randers-Pehrson
cd8eb93ecb
[libpng16] Imported from libpng-1.6.31beta05.tar
2017-07-13 11:25:51 -05:00
Glenn Randers-Pehrson
68cb0aaee3
[libpng16] Implement eXIf chunk support
2017-07-13 11:22:48 -05:00
Glenn Randers-Pehrson
40943eb67a
[libpng16] Bump version to 1.6.31beta05
2017-07-11 12:30:36 -05:00
Glenn Randers-Pehrson
f78a3e7326
[libpng16] Imported from libpng-1.6.31beta04.tar
2017-07-11 12:29:53 -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
ecea632c4c
[libpng16] Cross-reference scripts/makefile.linux-opt in INSTALL
2017-07-09 19:35:10 -05:00
Glenn Randers-Pehrson
fd9c48fd9c
[libpng16]Fixed release numbering in makefile.linux,linux-opt, msys
2017-07-09 17:23:56 -05:00
Glenn Randers-Pehrson
f2621c5137
[libpng16] Bump version to 1.6.31beta04
2017-07-09 16:31:45 -05:00
Glenn Randers-Pehrson
a947052ec2
[libpng16] Imported from libpng-1.6.31beta03.tar
2017-07-09 16:31:25 -05:00
Glenn Randers-Pehrson
0a9d2719c5
[libpng16] Added scripts/makefile-linux-opt, which has hardware optimizations
...
enabled.
2017-07-09 16:27:15 -05:00
Glenn Randers-Pehrson
aa6e0482fa
[libpng16] Quieted "declaration after statement" warnings in intel/filter_sse2.c.
2017-07-09 11:51:42 -05:00
Glenn Randers-Pehrson
77a063af16
[libpng16] Balance an if/endif pair in CMakeLists.txt
2017-07-09 08:28:03 -05:00
Glenn Randers-Pehrson
5cc23552a7
[libpng16]Change "int" to "png_uint_32" in intel/filter_sse2.c to prevent
...
possible integer overflow (Bug report by John Bowler).
2017-07-09 08:26:54 -05:00
Glenn Randers-Pehrson
76b3a7e78f
[libpng16] Add "libpng_mips_sources" to CMakeLists.txt when building MIPS_MSA
2017-07-08 20:09:07 -05:00
Glenn Randers-Pehrson
2b80b401be
[libpng16] Mention cmake "PNG_HARDWARE_OPTIMIZATIONS" in INSTALL
2017-07-08 19:25:08 -05:00
Glenn Randers-Pehrson
f16c3406cd
[libpng16] Updated CMakeLists.txt to add INTEL_SSE and MIPS_MSA platforms.
2017-07-08 19:10:49 -05:00
Glenn Randers-Pehrson
918a6ac2b4
[libpng16] Bump version to 1.6.31beta03
2017-07-08 13:26:36 -05:00
Glenn Randers-Pehrson
bd5a826d37
[libpng16] Imported from libpng-1.6.31beta02.tar
2017-07-08 13:15:10 -05:00
Glenn Randers-Pehrson
50b6df5389
[libpng16] Added "--enable-hardware-optimizations" configuration flag to enable
...
or disable all hardware optimizations with one flag.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
to subscribe)
or to glennrp at users.sourceforge.net
Glenn R-P
2017-07-08 12:59:23 -05:00
Glenn Randers-Pehrson
857ef82edf
[libpng16] Expand INSTALL instructions about enabling hardware optimizations.
2017-07-06 20:17:09 -05:00
Glenn Randers-Pehrson
f380ae5243
[libpng16] Added instructions for disabling hardware optimizations in INSTALL.
2017-07-05 19:20:57 -05:00
Glenn Randers-Pehrson
23b51990e3
[libpng16] Bump version to 1.6.31beta02
2017-07-05 06:46:10 -05:00
Glenn Randers-Pehrson
77417b8ea0
[libpng16] Imported from libpng-1.6.31beta01.tar
2017-07-05 06:45:46 -05:00
Glenn Randers-Pehrson
eed9efec4e
[libpng16] Added special case for FreeBSD in arm/filter_neon.S (Maya Rashish).
2017-07-05 05:36:59 -05:00
Glenn Randers-Pehrson
b5c16f8bfc
[libpng16] Added note about png_get_rowbytes() being affected by transforms
2017-07-03 11:11:44 -05:00
Glenn Randers-Pehrson
89b8c133e7
[libpng16] Added "Requires: zlib" to libpng.pc.in (Pieter Neerincx).
2017-07-03 10:08:31 -05:00
Glenn Randers-Pehrson
54126d5c59
[libpng16] Revised pngpriv.h to use PNG_VERSION_INFO_ONLY instead of
...
PNG_ARM_NEON_IMPLEMENTATION == 2 to exclude some definitions that assembler
cannot recognize.
2017-07-02 07:35:17 -05:00
Glenn Randers-Pehrson
660ce58597
[libpng16] Revised pngpriv.h to work around failure to compile arm/filter_neon.S
...
("typedef" directive is unrecognized by the assembler).
2017-07-01 16:29:42 -05:00
Glenn Randers-Pehrson
9f7134c3fc
[libpng16] Update some "last changed" dates
2017-06-29 17:52:18 -05:00
Glenn Randers-Pehrson
145361aaac
[libpng16] Bump version to 1.6.31beta01
2017-06-28 14:39:39 -05:00
Glenn Randers-Pehrson
8c552ddf5b
[master] Imported from libpng-1.6.30.tar
2017-06-28 13:50:50 -05:00
Glenn Randers-Pehrson
58649f19cb
[libpng16] Imported from libpng-1.6.30.tar
2017-06-28 13:50:29 -05:00
Glenn Randers-Pehrson
14be73c8a3
[libpng16] Imported from libpng-1.6.30rc02.tar
2017-06-25 13:46:37 -05:00
Glenn Randers-Pehrson
87cd2dc07d
[libpng16] Imported from libpng-1.6.30rc01.tar
2017-06-14 10:11:47 -05:00
Glenn Randers-Pehrson
2d306c4b15
[libpng16] Bump version to 1.6.30beta05
2017-06-06 19:44:20 -05:00
Glenn Randers-Pehrson
5aaf6e889c
[libpng16] Imported from libpng-1.6.30beta04.tar
2017-06-06 19:38:17 -05:00
Glenn Randers-Pehrson
c548328904
[libpng16] Avoid writing an empty IDAT when the last IDAT exactly fills the
...
compression buffer (bug report by Brian Baird). This bug was introduced in
libpng-1.6.0.
2017-06-06 18:40:45 -05:00
Glenn Randers-Pehrson
11629b1c1a
[libpng16] Mention github issues and pull requests as a bug-reporting method.
2017-05-27 13:12:37 -05:00
Glenn Randers-Pehrson
774922da91
[libpng] Update GIT URL in documentation
2017-05-27 12:33:48 -05:00
Glenn Randers-Pehrson
7da2ea45b9
Merge branch 'ssl' of git://github.com/vszakats/libpng into libpng16
...
to update zlib.net URLs
2017-05-27 12:25:20 -05:00
Viktor Szakats
95f3c07d6f
use HTTPS for zlib.net
2017-05-27 13:54:30 +00:00
Glenn Randers-Pehrson
a315efe3b2
[libpng16] Mention CVE-2016-5737 in CHANGES, update intel "last changed" date
2017-05-24 09:58:09 -05:00
Glenn Randers-Pehrson
6155c6629d
[libpng16] Bump version to 1.6.30beta04
2017-05-22 10:03:26 -05:00
Glenn Randers-Pehrson
d40ac082ef
[libpng16] Imported from libpng-1.6.30beta03.tar
2017-05-22 10:03:04 -05:00
Glenn Randers-Pehrson
d2ac910a53
[libpng16] Fix urls
2017-05-19 17:34:31 -05:00
Glenn Randers-Pehrson
a1577bf965
[libpng16] Test CMAKE_HOST_WIN32 instead of WIN32 in CMakeLists.txt
2017-05-18 18:15:50 -05:00
Glenn Randers-Pehrson
e486c76253
[libpng16] Update ftp site mentioned in README
2017-05-16 17:34:45 -05:00
Glenn Randers-Pehrson
30d1f909ed
[libpng16] Do not double evaluate CMAKE_SYSTEM_PROCESSOR in CMakeLists.txt
2017-05-16 16:12:42 -05: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
0808d75851
[libpng16] Bump version to 1.6.30beta03
2017-04-22 15:52:24 -05:00
Glenn Randers-Pehrson
2eff8ef504
[libpng16] Imported from libpng-1.6.30beta02.tar
2017-04-22 15:46:59 -05:00
Glenn Randers-Pehrson
60d8ae1003
[libpng16] Removed reference to the obsolete PNG_SAFE_LIMITS macro in
...
the documentation.
2017-04-22 15:45:37 -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
Glenn Randers-Pehrson
13370c536c
[libng16] Update CHANGES about a bugfix in libpng-1.6.27 related to ADLER32
...
handling.
2017-04-16 15:01:42 -05:00
Viktor Szakats
054be18721
fix URL regressions
2017-04-03 21:23:09 +00:00
Glenn Randers-Pehrson
64f81108db
[libpng16] Re-apply URL patch to libpng-manual.txt and libpng.3
2017-04-03 15:25:40 -05:00
Glenn Randers-Pehrson
ead7079f1d
[libpng16] Bump version to 1.6.30beta02
2017-04-01 11:14:04 -05:00
Glenn Randers-Pehrson
82add753e5
[libpng16] Imported from libpng-1.6.30beta01.tar
2017-04-01 11:08:09 -05:00
Viktor Szakats
b3ffdc5991
URL updates
2017-03-31 23:25:57 +00:00
Glenn Randers-Pehrson
e744ee1338
[libpng16] Update CHANGES, ANNOUNCE, and "last changed" dates.
2017-03-30 12:24:55 -05:00
Glenn Randers-Pehrson
ab8dbdcce5
Merge branch 'conststrip' of git://github.com/vszakats/libpng into libpng16
2017-03-30 12:23:15 -05:00
Viktor Szakats
7bbd665b34
tweak
2017-03-30 12:25:33 +00:00
Viktor Szakats
dce241c107
silence clang -Wcast-qual const drop warnings
2017-03-30 00:12:53 +00:00
Viktor Szakats
8c50acb9d2
silence clang -Wcomma warnings
2017-03-29 23:54:40 +00:00
Glenn Randers-Pehrson
92fcd25e9d
[libpng16] Further revised documentation of png_get_error_ptr().
2017-03-28 12:47:49 -05:00
Glenn Randers-Pehrson
9b0170dd03
[libpng16] Revised documentation of png_get_error_ptr() in the libpng manual.
2017-03-28 12:38:47 -05:00
Glenn Randers-Pehrson
2239961279
[libpng16] Fix "last changed" dates in powerpc/*.c
2017-03-21 19:37:27 -05:00
Glenn Randers-Pehrson
18834ff62b
[libpng16] Added missing "$(CPPFLAGS)" to the compile line for c.pic.o in
...
makefile.linux and makefile.solaris-x86 (Cosmin).
2017-03-16 12:40:49 -05:00
Glenn Randers-Pehrson
03a6f3f9c9
[libpng16] Bump version to 1.6.30beta01
2017-03-16 10:40:01 -05:00
Glenn Randers-Pehrson
b363e01e6b
[master] Imported from libpng-1.6.29.tar
2017-03-16 07:27:43 -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
fae874c8ca
[libpng16] Imported from libpng-1.6.29rc01.tar
2017-03-08 17:08:36 -06:00
Glenn Randers-Pehrson
0b1f7e412b
[libpng16] Bump version to 1.6.29beta04
2017-03-01 07:15:58 -06:00
Glenn Randers-Pehrson
a8de1a70d1
[libpng16] Imported from libpng-1.6.29beta03.tar
2017-03-01 07:15:29 -06:00
Glenn Randers-Pehrson
7db98a18fe
[libpng16] Suppress clang warnings about implicit sign changes in png.c
2017-03-01 07:09:05 -06:00
Glenn Randers-Pehrson
a7029a5b4c
[libpng16] Change test ZLIB_VERNUM >= 0x1281 to ZLIB_VERNUM >= 0x1290 in
...
pngrutil.c because Solaris 11 distributes zlib-1.2.8.f that is older
than 1.2.8.1.
2017-03-01 06:52:16 -06:00
Glenn Randers-Pehrson
4f31b7f242
[libpng16= Avoid potential overflow of shift operations in png_do_expand() (Aaron Boxer).
2017-02-27 20:17:56 -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
862a2858b0
[libpng16] Bump version to 1.6.29beta03
2017-02-22 14:41:30 -06:00
Glenn Randers-Pehrson
364450bf8d
[libpng16] Imported from libpng-1.6.29beta02.tar
2017-02-22 14:34:14 -06:00
Glenn Randers-Pehrson
f6d358ff42
[libpng16] Update CHANGES and ANNOUNCE
2017-02-21 20:45:49 -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
Glenn Randers-Pehrson
5e8c50cc8d
[libpng16] Update CHANGES and ANNOUNCE
2017-02-21 20:11:47 -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
3644db298b
Added VSX code to libconfig scripts
2017-02-12 12:19:01 +00:00
Vadim Barkov
29775cef5e
Fixed VSX compilation time checks
...
__ppc64__ -> __PPC64__
2017-02-12 09:57:16 +00:00
Vadim Barkov
a343882c74
Made VSX code pedantic strict C90 compliant
...
Fixed signed/unsigned comparations, png_byte and summations. Also
fixed combound literals which are permited by C90.
2017-02-11 21:33:32 +00:00
Vadim Barkov
6f6c396604
Added prefix to cmake VSX check warning
2017-02-10 07:38:28 +00:00
Vadim Barkov
483bcad21d
Changed minimum supported PowerPC CPU comment
...
Changed it from POWER8 to POWER7 due to the last one
supports VSX too.
2017-02-10 07:33:06 +00:00
Vadim Barkov
310dee21f7
Refactoring
...
Now all defines in filter VSX file are prefixed with VSX
and have more clear names
2017-02-10 07:20:59 +00:00
Vadim Barkov
d1c12e85c1
Added support for ppc64 big endian for filter_paeth VSX
2017-02-09 19:11:31 +00:00
Vadim Barkov
99d7285f20
Fixed filter_paeth for PowerPC VSX
...
Now all tests are fine for ppc64le
2017-02-09 18:57:53 +00:00
Vadim Barkov
d4bdca45b3
Fixed multiple bugs in VSX filter functions
...
Now up,sub and avg filter VSX functions pass tests
2017-02-08 14:02:44 +00:00
Vadim Barkov
58e9d5d59d
Refactoring
2017-02-02 22:37:36 +00:00
John Bowler
7428ca944d
Merge branch 'libpng16' of ../../libpng into libpng16
2017-02-02 14:05:46 -08:00
Vadim Barkov
ae15e839d9
Small bugfix
2017-02-02 04:51:56 +00: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
Glenn Randers-Pehrson
b8afc73b73
[libpng16] Added "mips" and "mips-msa" to the directory listing in README
2017-01-31 08:20:23 -06:00
Vadim Barkov
19425d32f3
Update README
2017-01-31 16:48:17 +03:00
Vadim Barkov
9bd58f9387
Removed PNG_ALIGN check in VSX code since it is not used
2017-01-31 12:15:45 +00:00
Vadim Barkov
f2b829166d
Removed commentary about contrib/powerpc/READM
2017-01-31 12:13:39 +00:00
Vadim Barkov
ab2a639a2a
Removed trailing spaces
2017-01-31 15:12:00 +03:00
Vadim Barkov
0aa1b967f0
Removed PNG_ALIGN dependency from VSX since it is not needed
2017-01-31 15:09:48 +03:00
Vadim Barkov
80041d15b2
Update contrib/powerpc/linux_aux.c header
2017-01-31 15:07:14 +03:00
Vadim Barkov
2cc569eab7
Removed remark about poor supporting VSX check code
2017-01-31 12:00:02 +00: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
d0d310f1cb
Added cmake support for PowerPC VSX optimizations
2017-01-31 03:56:23 +00:00
debian
3907feb306
Added ppc64le to arch's in configure.ac script
2017-01-31 03:53:12 +00:00
Vadim Barkov
acb155d893
Implemented filter_paeth PowerPC VSX variant
2017-01-31 04:05:19 +03:00
Vadim Barkov
c47ddcf22b
Merge branch 'libpng16' into libpng16
2017-01-30 18:44:09 +03:00
Vadim Barkov
565d4beea2
Updated CFLAGS recomendations
2017-01-29 19:07:12 +03:00
Vadim Barkov
c43aaa8b20
Implemented filter_avg for PowerPC VXS
2017-01-29 18:44:54 +03:00
Vadim Barkov
6ddcd33daa
Fixed potential align errors for PowerPC VSX filter functions
...
The problem is that row and prev_row may not be aligned to the same
byte count. This situation leaded to undefined behaviour.
2017-01-29 18:37:53 +03:00
John Bowler
24b27e5948
Merge branch 'libpng16' of ../../libpng into libpng16
2017-01-23 19:01:45 -08:00
Glenn Randers-Pehrson
f604c74a5f
[libpng16] Avoid conditional directives that break statements in pngrutil.c (Romero
...
Malaquias)
2017-01-20 14:46:21 -06:00
Romero B. de S. Malaquias
c3f4e5fb1a
Avoiding conditional directives that break statements
2017-01-20 16:31:54 -03:00
Vadim Barkov
adbf1d6d1c
Fixed missing defines for VSX filter_sub
2017-01-19 18:12:13 +03:00
Vadim Barkov
9b0311a4d8
Implemented filter_sub optimisation for PowerPC VSX
2017-01-19 02:11:34 +03:00
Vadim Barkov
b455622aa8
Fixed potential bug on align calculation for VSX filter_up
2017-01-19 01:29:24 +03:00
Vadim Barkov
ccef5edbfe
Fixed bug with unaligned input on VSX filter_up
2017-01-16 19:45:17 +03:00
Vadim Barkov
91acd4baf8
Implemented png_read_filter_up_vsx
2017-01-15 20:20:29 +03:00
root
6ff408d423
Modified CFLAGS recomendations for PowerPC VSX
2017-01-14 18:35:36 +03:00
Vadim Barkov
ee5804fa14
Added PowerPC detection code for linux
2017-01-14 16:47:10 +03:00
Vadim Barkov
2b6e59d968
Added initial code for PowerPC VSX optimisation
2017-01-14 16:05:33 +03:00
Glenn Randers-Pehrson
ae794eefaa
[libpng16] Bump version to 1.6.29beta02
2017-01-12 17:52:05 -06:00
Glenn Randers-Pehrson
dd24a6ca15
[libpng16] Imported from libpng-1.6.29beta01.tar
2017-01-12 10:02:56 -06:00
Glenn Randers-Pehrson
a0e3160ad4
Merge branch 'libpng16' of ssh://git.code.sf.net/p/libpng/code into libpng16
2017-01-12 09:49:15 -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
8c6c9e6d56
[libpng16] Update credits to include Google Inc, for the Intel/SSE patch.
2017-01-12 09:45:02 -06:00
John Bowler
f8fe5f8560
Merge branch 'libpng16' of ../../libpng into libpng16
2017-01-06 08:45:05 -08:00
Glenn Randers-Pehrson
eaca53a2d9
[libpng16] Update credits to include Google Inc, for the Intel/SSE patch.
2017-01-05 18:11:59 -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
ebede25ceb
[libpng16] Readded "include(GNUInstallDirs)" to CMakeLists.txt (Gianfranco
...
Costamagna).
2017-01-05 11:51:54 -06:00
Glenn Randers-Pehrson
4ddac468c4
[libpng16] Bump version to 1.6.29beta01
2017-01-05 11:37:54 -06:00
Glenn Randers-Pehrson
0a181e1665
[master] Imported from libpng-1.6.28.tar
2017-01-05 11:50:11 -05:00
Glenn Randers-Pehrson
17ad597dba
[libpng16] Imported from libpng-1.6.28.tar
2017-01-05 07:59:36 -06:00
John Bowler
b784934049
Merge branch 'libpng16' of ../../libpng into libpng16
2017-01-04 13:22:53 -08:00
Glenn Randers-Pehrson
93b3476358
[libpng16] Imported from libpng-1.6.28rc03.tar
2017-01-03 22:25:10 -06:00
Glenn Randers-Pehrson
6df2225c55
[libpng16] Fix version numbers in ANNOUNCE
2017-01-03 19:50:07 -06:00
Glenn Randers-Pehrson
562751dcc9
[libpng16] Fix typo in CHANGES: it should say "configure --enable-intel-sse"
...
to enable the SSE optimization
2017-01-03 19:32:33 -06:00
Glenn Randers-Pehrson
3785125faf
[libpng16] Imported from libpng-1.6.28rc02.tar
2017-01-03 19:23: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
John Bowler
16fe975928
Merge branch 'libpng16' of ../../libpng into libpng16
2017-01-03 16:38:52 -08:00
Glenn Randers-Pehrson
24dfd3f2d7
[libpng16] Imported from libpng-1.6.28rc01.tar
2017-01-03 12:51:38 -06:00
Glenn Randers-Pehrson
f8bdbd4d8f
[libpng16] Changed png_ptr->options from a png_byte to png_uint_32, to
...
accomodate up to 16 options.
2017-01-02 19:03:36 -06:00
Glenn Randers-Pehrson
f981826204
[libpng16] Update CHANGES and ANNOUNCE with recent CMakeLists.txt update.
2017-01-02 09:40:23 -06:00
Sam Serrels
14e885a54c
Added option to Cmake build allowing a custom location of Zlib to be specified. This is useful in a scenario where libpng is being built as a subproject alongside zlib by another project..
2017-01-02 01:36:47 +00:00
Glenn Randers-Pehrson
dd8aa3e939
[libpng16] Fixed arm/aarch64 detection in CMakeLists.txt (Gianfranco Costamagna)
2016-12-31 13:03:23 -06:00
John Bowler
29b9fd605e
Merge branch 'libpng16' of ../../libpng into libpng16
2016-12-31 09:18:27 -08:00
Glenn Randers-Pehrson
aa5bb2c3dd
[libpng16] Clean up LICENSE, mention CVE-2016-10087 in CHANGES.
2016-12-30 14:00:19 -06:00
John Bowler
993bd61329
Merge branch 'libpng16' of ../../libpng into libpng16
2016-12-30 09:03:40 -08:00
Glenn Randers-Pehrson
b9b490c7f5
[libpng16] Bump version to 1.6.28beta01
2016-12-30 08:29:24 -06:00
John Bowler
09fae1b5d3
Merge branch 'libpng16' of ../../libpng into libpng16
2016-12-29 19:14:43 -08:00
Glenn Randers-Pehrson
e4b59e5583
[master] Imported from libpng-1.6.27.tar
2016-12-29 08:10:06 -06:00
Glenn Randers-Pehrson
e9c3d83d5a
[libpng16] Bump version to 1.6.27
2016-12-29 07:52:43 -06:00
Glenn Randers-Pehrson
812768d7a9
[libpng16] Fixed a potential null pointer dereference in png_set_text_2()
...
(bug report and patch by Patrick Keshishian).
2016-12-29 07:52:27 -06:00
Glenn Randers-Pehrson
a3b5edc934
[libpng16] Bump version to 1.6.27
2016-12-29 07:50:33 -06:00
John Bowler
aaed6782e8
Merge branch 'libpng16' of ../../libpng into libpng16
2016-12-27 13:28:55 -08:00
Glenn Randers-Pehrson
fd3a683b2a
[libpng16] Add CHANGES entry about CMakeLists.txt ARM support
2016-12-27 11:14:18 -06:00
John Bowler
08d00b25d8
Merge branch 'libpng16' of ../../libpng into libpng16
2016-12-27 08:21:12 -08:00
Glenn Randers-Pehrson
61a9a054fd
[libpng16] Imported from libpng-1.6.27rc01.tar
2016-12-27 08:24:22 -06:00
John Bowler
bf90247a63
Merge branch 'libpng16' of ../../libpng into libpng16
2016-12-26 18:16:55 -08:00
Glenn Randers-Pehrson
4708ca268e
[libpng16] Update CHANGES and ANNOUNCE
2016-12-26 19:44:25 -06:00
Glenn Randers-Pehrson
7bb00afec3
Merge branch 'libpng16' of git://github.com/jbowler/libpng into libpng16
2016-12-26 19:36:00 -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
8187ba1518
[libpng16] PNG_IGNORE_ALDLER32_SUPPORTED -> PNG_IGNORE_ADLER32 in pngtest.c
2016-12-26 18:15:02 -06:00
Glenn Randers-Pehrson
dbb5fce3d8
[libpng16] Control ADLER32 checking with new PNG_IGNORE_ADLER32 option.
2016-12-26 18:00:46 -06:00
Glenn Randers-Pehrson
d65a92b951
[libpng16] Revert ADLER32 error handling in pngrutil.c and pngpread.c.
2016-11-08 16:04:08 -06:00
Glenn Randers-Pehrson
a69dd76eac
[libpng16] Bump version to 1.6.27beta02
2016-11-02 17:54:15 -05:00
Glenn Randers-Pehrson
e36003e9b8
[libpng16] Imported from libpng-1.6.27beta01.tar
2016-11-02 17:37:21 -05:00
Glenn Randers-Pehrson
2accfbd6f3
[libpng16] Restrict the new ADLER32-skipping to IDAT chunks. It broke iCCP
...
chunk handling.
2016-10-28 15:50:46 -05:00
Glenn Randers-Pehrson
858cb585d7
[libpng16] Bump version to 1.6.27beta01
2016-10-28 15:25:26 -05:00
Glenn Randers-Pehrson
35cbe7640b
[master] Imported from libpng-1.6.26.tar
2016-10-19 19:11:48 -05: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
a1312f7b19
[libpng16] Cosmetic change "ptr != 0" to "ptr != NULL" in png.c and pngrutil.c
2016-10-16 14:34:40 -05:00
Glenn Randers-Pehrson
01e99bbac1
[libpng16] Imported from libpng-1.6.26rc01.tar
2016-10-12 08:16:13 -05:00
Glenn Randers-Pehrson
dd6d7f031f
[libpng16] Bump version to 1.6.26beta07
2016-10-07 15:57:32 -05:00
Glenn Randers-Pehrson
f7fe4db91b
[libpng16] Imported from libpng-1.6.26beta06.tar
2016-10-07 15:57:10 -05:00
Glenn Randers-Pehrson
a106899acd
[libpng16] Use zlib-1.2.8.1 inflateValidate() instead of inflateReset2() to
...
avoid ADLER32 evaluation.
2016-10-07 13:33:50 -05:00
Glenn Randers-Pehrson
ffaeff82d3
[libpng16] Bump version to 1.6.26beta06
2016-10-05 19:43:55 -05:00
Glenn Randers-Pehrson
13bdd8bcdf
[libpng16] Imported from libpng-1.6.26beta05.tar
2016-10-05 19:43:35 -05:00
Glenn Randers-Pehrson
7d7694ae6a
[libpng16] Changed integer constant 4294967294 to unsigned 4294967294U in pngconf.h
...
to avoid a signed/unsigned compare in the preprocessor.
2016-10-05 09:23:08 -05:00
Glenn Randers-Pehrson
b3540f9932
[libpng16] Bump version to 1.6.26beta05
2016-10-03 12:31:18 -05:00
Glenn Randers-Pehrson
a5084f1522
[libpng16] Imported from libpng-1.6.26beta04.tar
2016-10-03 12:31:06 -05:00
Glenn Randers-Pehrson
565a751ca2
[libpng16] Quieted (bogus?) clang warnings about "absolute value has no effect".
2016-10-02 20:16:36 -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
b7b59b7fe9
[libpng16] Bump version to 1.6.26beta04
2016-10-02 19:18:29 -05:00
Glenn Randers-Pehrson
890611200a
[libpng16] Imported from libpng-1.6.26beta03.tar
2016-10-02 19:10:10 -05:00
Glenn Randers-Pehrson
ce45f85c61
[lbpng16] Removed contrib/libtests/*.orig and *.rej that slipped into the
...
tarballs.
2016-10-02 19:03:57 -05:00
Glenn Randers-Pehrson
761d833372
[libpng16] Quieted all remaining -Wconversion compiler warnings
2016-10-02 18:46:35 -05:00
Glenn Randers-Pehrson
3875d9af4c
[libpng16] Quieted 45 (out of 86 remaining) -Wconversion compiler warnings
2016-10-02 17:08:46 -05:00
Glenn Randers-Pehrson
ad3318ddc8
[libpng16] Bump version to 1.6.26beta03
2016-10-01 19:44:42 -05:00
Glenn Randers-Pehrson
7184475a98
[libpng16] Imported from libpng-1.6.26beta02.tar
2016-10-01 19:44:32 -05:00
Glenn Randers-Pehrson
c180e7a437
[libpng16] Updated CHANGES and ANNOUNCE
2016-09-30 21:54:06 -05:00
Glenn Randers-Pehrson
fbe3e002bc
Merge branch 'libpng16' of git://github.com/jbowler/libpng into libpng16
2016-09-30 21:51:27 -05:00
Glenn Randers-Pehrson
b5b77a72b4
Revert "[libpng16] Quieted about 100 warnings from clang-3.8 in pngtrans.c, pngread.c,"
...
This reverts commit 97dfccb632 .
2016-09-30 21:34:21 -05:00
Glenn Randers-Pehrson
97dfccb632
[libpng16] Quieted about 100 warnings from clang-3.8 in pngtrans.c, pngread.c,
...
pngwrite.c, pngunknown.c, and pngvalid.c. Several warnings still remain
in pngvalid.c
2016-09-30 21:02:03 -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
Glenn Randers-Pehrson
1b363fa6b0
[libpng16] Quieted 116 (out of 288) -Wconversion compiler warnings by changing
...
flag definitions in pngpriv.h from 0xnnnn to 0xnnnnU and trivial changes
in png.c, pngread.c, and pngwutil.c.
2016-09-30 17:19:12 -05:00
Glenn Randers-Pehrson
fa24421216
[libpng16] Quieted 74 (out of 288) -Wconversion compiler warnings by changing
...
flag definitions in pngpriv.h from 0xnnnn to 0xnnnnU.
2016-09-30 16:26:07 -05:00
Glenn Randers-Pehrson
d84fd77bf8
[libpng16] Quieted a warning from clang-3.8 in pngtrans.c.
2016-09-30 14:22:57 -05:00
Glenn Randers-Pehrson
04dab1e82d
[libpng16] Updated the documentation about CRC and ADLER32 handling.
2016-09-26 11:15:22 -05:00
Glenn Randers-Pehrson
394be58371
[libpng16] Bump version to 1.6.26beta02
2016-09-26 08:58:04 -05:00
Glenn Randers-Pehrson
217546ae43
[libpng16] Imported from libpng-1.6.26beta01.tar
2016-09-26 08:57:44 -05:00
Glenn Randers-Pehrson
8aa1638ccc
[libpng16] Add tests/badcrc.png and tests/badadler.png to tests/pngtest.
...
Merged pngtest.c with libpng-1.7.0beta84/pngtest.c
2016-09-26 08:09:44 -05:00
Glenn Randers-Pehrson
89ea081433
[libpng16] If CRC handling of critical chunks has been set to PNG_CRC_QUIET_USE,
...
ignore the ADLER32 checksum in the IDAT chunk as well as the chunk CRCs.
2016-09-25 17:42:15 -05:00
Glenn Randers-Pehrson
7835716cef
[libpng16] Changed PNG_ZLIB_VERNUM to ZLIB_VERNUM in pngpriv.h, pngstruct.h,
...
and pngrutil.c.
2016-09-19 16:46:54 -05:00
Glenn Randers-Pehrson
cb1787f033
[libpng16] Conditionally compile png_set_benign_error in pngtest.c
2016-09-11 22:02:57 -05:00
Glenn Randers-Pehrson
1842d7c865
[libpng16] Issue a png_benign_error instead of a png_error on ADLER32 mismatch
...
while decoding compressed data chunks.
2016-09-11 22:02:05 -05:00
Glenn Randers-Pehrson
bc2bb96cd7
[libpng16] Conditionally compile png_set_benign_errors() in pngread.c
2016-09-11 19:22:28 -05:00
Glenn Randers-Pehrson
5cb1700702
[libpng16] Update CHANGES and ANNOUNCE and last-changed date in pngset.c
2016-09-03 11:51:29 -05:00
John Bowler
7dc0329250
[libpng16] png_set_pCAL: do not png_error on read
...
Because png_handle_pCAL has allocated memory to free.
Signed-off-by: John Bowler <jbowler@acm.org >
2016-09-02 19:26:42 -07:00
Glenn Randers-Pehrson
90ea4af4a1
[libpng16] Update CHANGES and ANNOUNCE
2016-09-01 17:28:08 -05:00
Glenn Randers-Pehrson
a744b11975
Merge branch 'libpng16' of git://github.com/jbowler/libpng into libpng16
2016-09-01 17:11:57 -05:00
John Bowler
597b1a1b5e
Merge branch 'libpng16' of ../../libpng into libpng16
2016-09-01 13:27:58 -07:00
John Bowler
f0b453bc3e
[libpng16] pngfix zero-length IDAT fix
...
When an input file contains a zero length IDAT and pngfix is not applying the
IDAT rechunking (--max) option pngfix will go into a loop writing the zero
length IDAT for ever.
This is a fairly minor issue for interactive use; zero length IDAT is very rare,
the problem is obvious (pngfix hangs) and the fix (use --max, or --max=4096
etc), while not obvious, is easy.
For non-interactive use, e.g. trying to automatically repair a PNG that cannot
be read by libpng, there are security consequences:
1) pngfix hangs. This may permit a DoS attack.
2) When the --out option is used pngfix will just keep writing. This is a very
likely DoS scenario.
Signed-off-by: John Bowler <jbowler@acm.org >
2016-09-01 07:22:40 -07:00
Glenn Randers-Pehrson
c9d7b865b6
[libpng16] Bump version to 1.6.26beta01
2016-08-31 23:19:25 -05:00
Glenn Randers-Pehrson
eb5cdf0c64
[master] Imported from libpng-1.6.25.tar
2016-08-31 22:30:55 -05:00
Glenn Randers-Pehrson
e3a6631123
[libpng16] Imported from libpng-1.6.25.tar
2016-08-31 22:30:47 -05:00
Glenn Randers-Pehrson
434aecf327
[libpng16] Bump version to 1.6.25rc06
2016-08-30 11:21:11 -05:00
Glenn Randers-Pehrson
abd88841ef
[libpng16] Imported from libpng-1.6.25rc05.tar
2016-08-30 11:15:49 -05:00
Glenn Randers-Pehrson
42e5441888
[libpng16] Bump version to 1.6.25rc05
2016-08-30 10:46:51 -05:00
Glenn Randers-Pehrson
01b6ca34b7
[libpng16] Imported from libpng-1.6.25rc04.tar
2016-08-30 10:46:43 -05:00
Glenn Randers-Pehrson
4ade4e8a0d
[libpng16] Updated CHANGES and ANNOUNCE
2016-08-30 04:26:29 -05:00
Mandar Sahastrabuddhe
d1f14c829a
Added MIPS MSA optimization for following functions:
...
1. png_read_filter_row_sub4_msa
2. png_read_filter_row_avg4_msa
3. png_read_filter_row_paeth4_msa
4. png_read_filter_row_sub3_msa
5. png_read_filter_row_avg3_msa
6. png_read_filter_row_paeth3_msa
Signed-off-by: Mandar Sahastrabuddhe <Mandar.Sahastrabuddhe@imgtec.com >
2016-08-30 13:51:25 +05:30
Mandar Sahastrabuddhe
b43133b361
Merge pull request #1 from glennrp/libpng16
...
Update from original
2016-08-30 11:13:12 +05:30
Glenn Randers-Pehrson
2e2330bf25
[libpng16] Bump version to 1.6.25rc04
2016-08-29 16:15:28 -05:00
Glenn Randers-Pehrson
0a2d496d58
[libpng16] Imported from libpng-1.6.25rc03.tar
2016-08-29 16:10:33 -05:00
Glenn Randers-Pehrson
000f07bfbe
[libpng16] Bump version to 1.6.25rc03
2016-08-29 10:57:26 -05:00
Glenn Randers-Pehrson
2e7c3a6e70
[libpng16] Imported from libpng-1.6.25rc02.tar
2016-08-29 10:45:13 -05:00
Glenn Randers-Pehrson
05a4db1fcd
[libpng16] Update CHANGES, ANNOUNCE with entry about MIPS support
2016-08-29 09:13:09 -05:00
Mandar Sahastrabuddhe
ee5e39835c
Added build support for MIPS MSA
...
Also added one msa optimized function: png_read_filter_row_up_msa
Signed-off-by: Mandar Sahastrabuddhe <Mandar.Sahastrabuddhe@imgtec.com >
2016-08-29 19:07:25 +05:30
Glenn Randers-Pehrson
143434ac78
[libpng16] Bump version to 1.6.25beta03
2016-08-18 12:23:08 -05:00
Glenn Randers-Pehrson
4dc4b2efac
[libpng16] Imported from libpng-1.6.25beta02.tar
2016-08-18 12:17:31 -05:00
Glenn Randers-Pehrson
e175eb1ffb
[libpng16] Further trivial editing of whitespace in INSTALL
2016-08-18 12:15:53 -05:00
Glenn Randers-Pehrson
4be85e1b37
[libpng16] Rebased contrib/intel/intel_sse.patch
2016-08-17 06:52:07 -05:00
Glenn Randers-Pehrson
9cab7a24fd
[libpng16] Minor editing of INSTALL, (whitespace, added copyright line)
2016-08-17 06:39:26 -05:00
Glenn Randers-Pehrson
39df0ced18
[libpng16] Don't install pngcp; it conflicts with pngcp in the pngtools package.
...
Moved it from bin_PROGRAMS to check_PROGRAMS in Makefile.am so it will be
built but not installed.
2016-08-13 21:23:42 -05:00
Glenn Randers-Pehrson
2705f55221
[libpng16] Bump version to 1.6.25beta02
2016-08-12 07:05:46 -05:00
Glenn Randers-Pehrson
4679be7c2b
[libpng16] Imported from libpng-1.6.25beta01.tar
2016-08-12 07:00:44 -05:00
Glenn Randers-Pehrson
935676cdad
[libpng16] Revert use of png_malloc_array in iCCP chunk reader
2016-08-12 06:58:15 -05:00
Glenn Randers-Pehrson
8ff2ed2fe1
[libng16] Conditionally compile png_inflate(). It's not needed for iCCP
...
chunk reading.
2016-08-11 20:13:33 -05:00
Glenn Randers-Pehrson
6bdaf38d12
[libpng16] Revert change to png_malloc_array(). It's not needed
...
now that iCCP profile_length honors PNG_USER_CHUNK_MALLOC_MAX.
2016-08-10 22:26:12 -05:00
Glenn Randers-Pehrson
e018ab98be
Merge branch 'libpng16' of git://github.com/jbowler/libpng into libpng16
2016-08-10 20:49:48 -05:00
John Bowler
92a7c79db2
[libpng16] Reject oversized iCCP profile length
...
The code now validates the ICC profile length against the user chunk limit
before the buffer is allocated, as opposed to doing it while the buffer is read.
This removes the potential to consume virtual address space with a carefully
crafted ICC profile; only an issue on 32-bit systems where a valid profile can
be up to 2^32-4 bytes in length. libpng never writes beyond the application
supplied limit, but previously it did allocate a buffer of the size specified in
the profile header. The exploitability of this is almost zero; the address
space is released as soon as the PNG read completes.
Also clean up PNG_DEBUG compile of pngtest.c.
Signed-off-by: John Bowler <jbowler@acm.org >
2016-08-10 15:35:09 -07:00
Glenn Randers-Pehrson
19fefd3a4b
[libpng16] Return NULL from png_malloc_array() with a warning instead of calling
...
png_error() on failure. Reject oversized iCCP profile immediately.
2016-08-10 12:09:22 -05:00
Glenn Randers-Pehrson
cdc0e74ee6
[libpng16] Bump version to 1.6.25beta01
2016-08-03 21:59:27 -05:00
Glenn Randers-Pehrson
0c29ab2b31
[master] Imported from libpng-1.6.24.tar
2016-08-03 21:42:00 -05:00
Glenn Randers-Pehrson
b50d5cea2b
[libpng16] Imported from libpng-1.6.24.tar
2016-08-03 21:32:26 -05:00
Glenn Randers-Pehrson
3d3c23b39f
[libpng16] Bump version to 1.6.24rc04
2016-08-02 12:58:15 -05:00
Glenn Randers-Pehrson
2bb9ee89fa
[libpng16] Imported from libpng-1.6.24rc03.tar
2016-08-02 12:58:07 -05:00
Glenn Randers-Pehrson
96db0fff50
[libpng16] Conditionally compile ARM_NEON headers in pngpriv.h
...
Updated contrib/intel/intel_sse.patch
2016-08-02 09:31:05 -05:00
Glenn Randers-Pehrson
99663e95f8
[libpng16] Bump version to 1.6.24rc03
2016-08-01 18:00:51 -05:00
Glenn Randers-Pehrson
1153ddccb6
[libpng16] Imported from libpng-1.6.24rc02.tar
2016-08-01 18:00:40 -05:00
Glenn Randers-Pehrson
8d091a640b
[libpng16] Conditionally compile png_decompress_chunk().
2016-08-01 17:50:42 -05:00
Glenn Randers-Pehrson
2c0b7a8ff6
[libpng16] Conditionally compile SSE2 headers in contrib/intel/intel_sse.patch
2016-07-31 21:22:06 -05:00
Glenn Randers-Pehrson
faa3e537e1
[libpng16] Imported from libpng-1.6.24rc01.tar
2016-07-25 07:53:38 -05:00
Glenn Randers-Pehrson
0a5e99d7ee
[libpng16] Rebased contrib/intel/intel_sse.patch
2016-07-24 19:39:43 -05:00
Glenn Randers-Pehrson
d1f9149d8a
[libpng16] Bump version to 1.6.24beta07
2016-07-19 17:01:50 -05:00
Glenn Randers-Pehrson
ee079481c9
[libpng16] Imported from libpng-1.6.24beta06.tar
2016-07-19 17:00:00 -05:00
Glenn Randers-Pehrson
639b48625f
[libpng16] Eliminated unnecessary tests of boolean png_isaligned() vs 0.
2016-07-15 17:22:10 -05:00
Glenn Randers-Pehrson
dd70604cec
[libpng16] Fixed more indentation
2016-07-15 11:20:46 -05:00
Glenn Randers-Pehrson
34c783e2fe
[libpng16] Fix permission on reindent; add license info to contrib/tools/chkfmt
2016-07-14 18:53:30 -05:00
Glenn Randers-Pehrson
82d0009885
[libpng16] Add PD license to new "reindent" tool; remove unused environment var
...
I didn't intend to distribute this but it leaked into the libpng16 source,
so here it is.
2016-07-14 17:40:37 -05:00
Glenn Randers-Pehrson
baed0e32f9
[libpng16] Bump version to 1.6.24beta06
2016-07-14 09:55:45 -05:00
Glenn Randers-Pehrson
3c7c436303
[libpng16] Imported from libpng-1.6.24beta05.tar
2016-07-14 09:55:35 -05:00
Glenn Randers-Pehrson
9b14f5f85a
[libpng16] Fix a bad indent in pngvalid.c
2016-07-13 17:21:31 -05:00
Glenn Randers-Pehrson
0fd9a249de
[libpng16] Update "last changed" dates
2016-07-13 16:29:22 -05:00
Glenn Randers-Pehrson
7a18a2de59
[libpng16] Undo bad indentation change in example.c
2016-07-13 16:26:00 -05:00
Glenn Randers-Pehrson
5d7c7d5132
[libpng16] Fixed a harmless typo in pngwutil.c
2016-07-13 14:45:10 -05:00
Glenn Randers-Pehrson
192e92d681
[libpng16] Fixed some indentation to comply with our coding style.
2016-07-13 14:43:42 -05:00
Glenn Randers-Pehrson
1b9f4817c8
[libpng16] Bump version to 1.6.24beta05
2016-07-08 10:14:50 -05:00
Glenn Randers-Pehrson
d9940f6207
[libpng16] Imported from libpng-1.6.24beta04.tar
2016-07-08 10:14:42 -05:00
Glenn Randers-Pehrson
f7d5419816
[libpng16] Avoid filter-selection heuristic sum calculations in cases where
...
only one filter is a candidate for selection. This trades off code size (added
png_setup_*_row_only() functions) for speed.
2016-07-08 10:09:25 -05:00
Glenn Randers-Pehrson
9928ee0a52
[libpng16] Bump version to 1.6.24beta04
2016-07-04 09:55:49 -05:00
Glenn Randers-Pehrson
66f796e74c
[libpng16] Imported from libpng-1.6.24beta03.tar
2016-07-04 09:55:12 -05:00
Glenn Randers-Pehrson
a3eac818d5
[libpng16] Update CHANGES and ANNOUNCE
2016-07-03 18:10:21 -05:00
John Bowler
cfc19ff1b6
pngcp bug fixes
...
The fixed size buffer for the file name being processed could have a byte
written beyond the end; a bug where the test was updated without changing the
size of the buffer. This commit reduces the buffer to the system maximum.
png_getrowbytes could, in theory, return 0; probably only if there is a bug in
libpng but the code now checks.
Signed-off-by: John Bowler <jbowler@acm.org >
2016-07-03 13:49:36 -07:00
Glenn Randers-Pehrson
80495124b2
[libpng16] Don't call png_icc_set_sRGB() when it's not compiled.
2016-07-03 10:28:54 -05:00
Glenn Randers-Pehrson
2c21a4778d
[libpng16] Relocated misplaced #endif in png.c sRGB profile checking.
2016-07-02 21:17:56 -05:00
Glenn Randers-Pehrson
14b8dee96f
Merge branch 'libpng16' of ssh://git.code.sf.net/p/libpng/code into libpng16
2016-07-02 14:32:37 -05:00
Glenn Randers-Pehrson
11c88033d4
[libpng16] Added "Common linking failures" section to INSTALL
2016-07-02 14:29:29 -05:00
Glenn Randers-Pehrson
25bb30c9b8
[libpng16] Added "Common linking failures" section to INSTALL
2016-07-02 12:00:07 -05:00
John Bowler
54feb0ad2a
pngimage: correct #define checking
...
In libpng 1.7 pngimage needs to check PNG_WRITE_PNG_SUPPORTED (new in 1.7), not
PNG_WRITE_SUPPORTED because png_write_png can be disabled without disabling
PNG_WRITE_SUPPORTED. Copied the approach from 1.6 pngcp.c (so this still works
in 1.6 as well.)
2016-07-02 08:03:09 -07:00
Glenn Randers-Pehrson
b733c50bc0
[libpng16] Updated CHANGES and ANNOUNCE
2016-07-01 18:42:07 -05:00
John Bowler
a93744423d
pngcp.c: correct total time output
...
Signed-off-by: John Bowler <jbowler@acm.org >
2016-07-01 11:29:58 -07:00
John Bowler
9957c45073
pngcp: add high resolution timing
...
If PNG_PNGCP_TIMING_SUPPORTED is defined maximal resolution CPU time logging of
png_read_png and png_write_png is enabled via the --time command line option.
This is not on by default but is enabled by contrib/conftests/pngcp.dfa
Signed-off-by: John Bowler <jbowler@acm.org >
2016-07-01 11:29:45 -07:00
John Bowler
0ac91cc657
pngcp: tool to copy PNG files
...
This adds pngcp to the build together with a pngcp.dfa configuration test; the
test revealed some configuration bugs which are fixed by corrections to the
_SUPPORTED macros.
pngcp builds on all tested configurations and a number of bugs have been fixed
to make this happen relative to the version in libpng 1.7 contrib/examples.
pngcp.dfa will have to be different for 1.7 but pngcp.c should work fine (not
yet tested). pngcp itself is still missing a usage message; this is a
preliminary version, although since it behaves the same way as 'cp' most unoids
shouldn't have a problem using it correctly.
Signed-off-by: John Bowler <jbowler@acm.org >
2016-07-01 11:27:43 -07:00
Glenn Randers-Pehrson
d9779744f9
[libpng16] Optimized absolute value calculation in filter selection, similar to
...
code in the PAETH decoder in pngrutil.c. Build with PNG_USE_ABS to use this.
2016-06-29 21:53:57 -05:00
Glenn Randers-Pehrson
ed5a01d922
[libpng16] Update ANNOUNCE
2016-06-23 11:53:31 -05:00
Glenn Randers-Pehrson
d43f93ff93
[libpng16] Bump version to 1.6.24beta03
2016-06-23 11:27:12 -05:00
Glenn Randers-Pehrson
3f2879bf60
[libpng16] Imported from libpng-1.6.24beta02.tar
2016-06-23 11:26:59 -05:00
Glenn Randers-Pehrson
ee1e535298
[libpng16] Bump version to 1.6.24beta03
2016-06-23 11:08:14 -05:00
Glenn Randers-Pehrson
4b4a9583b4
[libpng16] Imported from libpng-1.6.24beta02.tar
2016-06-23 11:08:06 -05:00
John Bowler
da2ba024a5
[libpng16] Update CHANGES and ANNOUNCE
2016-06-23 10:51:44 -05:00
John Bowler
e5d468ea9c
projects/vstudio: enthusiastic warnings
...
The commit removes the three compile warning options from the individual project
files into the zlib.props globals (this should probably be renamed in 1.7). It
increases the warning level from 4 to All and adds a list of the warnings which
need to be turned off. This is semi-documentary; the intent is to tell users of
libpng which warnings have been examined and judged non-fixable at present.
The warning about structure padding *IS* fixable, but it is a signficant change
(moving structure members around). It is currently partially fixed in 1.7, but
only partially.
Signed-off-by: John Bowler <jbowler@acm.org >
2016-06-22 17:40:06 -07:00
John Bowler
21d9e6e0fb
SKIP definition in pngstest.c misplaced
...
The SKIP definition needs to come after the png.h include (see all the other .c
files in contrib/libtests) because it depends on PNG_LIBPNG_VER. This commit
puts it in the correct place.
Signed-off-by: John Bowler <jbowler@acm.org >
2016-06-22 17:38:56 -07:00
John Bowler
98af505439
Fix MSVC Level 4 warning
...
MSVC does not like (uInt) = -(unsigned) (i.e. as an initializer), but it is fine
with it if the conversion is explicitly invoked by a cast.
Signed-off-by: John Bowler <jbowler@acm.org >
2016-06-22 17:37:20 -07:00
John Bowler
1df0ace0b4
Fix MSVC Level 2 warning
...
MSVC doesn't like '-(unsigned)', so replace it by 0U-(unsigned) (in 1.6).
Signed-off-by: John Bowler <jbowler@acm.org >
2016-06-22 17:35:49 -07:00
John Bowler
4af267c07b
Merge branch 'libpng16' of ../../libpng into libpng16
2016-06-20 09:23:59 -07:00
Glenn Randers-Pehrson
6c7c5a04b8
[libpng16] More efficient absolute value calculation on SSE2 (Matthieu Darbois).
2016-06-20 08:28:34 -05:00
Glenn Randers-Pehrson
42069e9432
Merge branch 'tryagain' of git://github.com/mattsarett/libpng into libpng16
2016-06-20 08:27:24 -05:00
Matt Sarett
36762ac4b4
More efficient absolute value on SSE2
2016-06-20 09:06:25 -04:00
Glenn Randers-Pehrson
147dc568da
[libpng16] Backed out previous optimization; the compiler should handle that.
2016-06-19 22:20:52 -05:00
Glenn Randers-Pehrson
29135161d7
[libpng16] Avoid filter-selection heuristic sum calculations in cases where
...
only one filter is a candidate for selection. This trades off code size (added
png_setup_*_row_only() functions) for speed.
2016-06-19 18:43:35 -05:00
John Bowler
9c04f57cab
[libpng15] Corrected filter heuristic overflow handling.
2016-06-19 18:01:33 -05:00
John Bowler
e1123aa80c
Merge branch 'libpng16' of ../../libpng into libpng16
2016-06-12 06:51:09 -07:00
Glenn Randers-Pehrson
4a8105e925
[libpng16] Bump version to 1.6.24beta02
2016-06-11 18:07:44 -05:00
Glenn Randers-Pehrson
51df269afe
[libpng16] Imported from libpng-1.6.24beta01.tar
2016-06-11 18:07:22 -05:00
John Bowler
bf2613b975
Merge branch 'libpng16' of ../../libpng into libpng16
2016-06-11 14:18:35 -07:00
John Bowler
5c6b7e177c
[libpng16] Avoid potential overflow of the PNG_IMAGE_SIZE macro. This macro
...
is not used within libpng, but is used in some of the examples.
2016-06-11 14:11:09 -05:00
Glenn Randers-Pehrson
428f5ddabd
[libpng16] Bump version to 1.6.24beta01
2016-06-11 14:10:03 -05:00
John Bowler
a4b26efa1f
Change image size checks
...
This covers the case where PNG_IMAGE_BUFFER_SIZE can overflow in the application
as a result of the application using an increased 'row_stride'; previously
png_image_finish_read only checked for overflow on the base calculation of
components. (I.e. it checked for overflow of a 32-bit number on the total
number of pixel components in the output format, not the possibly padded row
length and not the number of bytes, which for linear formats is twice the number
of components.)
Signed-off-by: John Bowler <jbowler@acm.org >
2016-06-11 10:04:28 -07:00
Glenn Randers-Pehrson
5a8b04137f
[master] Imported from libpng-1.6.23.tar
2016-06-09 07:08:36 -05:00
Glenn Randers-Pehrson
ed6db9d86b
[libpng16] Imported from libpng-1.6.23.tar
2016-06-09 06:49:42 -05:00
Glenn Randers-Pehrson
ee3c4e43ae
[libpng16] Fixed bad link to RFC2083 in png.5 (Nikola Forro).
2016-06-07 08:22:18 -05:00
Glenn Randers-Pehrson
6d4e4d0cce
[libpng16] Imported from libpng-1.6.23rc02.tar
2016-06-03 21:28:20 -05:00
Glenn Randers-Pehrson
89158b9ad1
[libpng16] Fixed undefined behavior in png_push_save_buffer(). Do not call
...
memcpy() with a null source, even if count is zero (Leon Scroggins III).
2016-06-03 18:40:42 -05:00
Glenn Randers-Pehrson
1fdac25f66
[libpng16] Imported from libpng-1.6.23rc01.tar
2016-06-01 19:17:57 -05:00
Glenn Randers-Pehrson
1017744c94
[libpng16] Added missing ")" in pngerror.c (Matt Sarrett).
2016-06-01 08:59:48 -05:00
Glenn Randers-Pehrson
f757d74898
[libpng16] Moved sse2 prototype from pngpriv.h to contrib/intel/intel_sse.patch.
2016-05-31 09:45:17 -05:00
John Bowler
bd2370c054
pngvalid.c: don't use size_t count arguments
...
Coverity rejects code where an array element count has type size_t, this
elminates the code in question from contrib/libtests/pngvalid.c
Signed-off-by: John Bowler <jbowler@acm.org >
2016-05-30 08:12:51 -07:00
Glenn Randers-Pehrson
dbfd68ae3a
[libpng16] Update CHANGES, ANNOUNCE, and change date in pngvalid.c
2016-05-29 15:47:57 -05:00
John Bowler
801b925edf
pngvalid.c: correct progressive read input buffer
...
The previous version of the code invariably passed just one byte at a time to
libpng. The intention was to pass a random number of bytes in the range 0..511
(and this is what happens now).
Signed-off-by: John Bowler <jbowler@acm.org >
2016-05-29 09:30:00 -07:00
Glenn Randers-Pehrson
a201f859cd
[libpng16] Bump version to 1.6.23beta02
2016-05-29 09:52:31 -05:00
Glenn Randers-Pehrson
84cc738166
[libpng16] Imported from libpng-1.6.23beta01.tar
2016-05-29 09:47:30 -05:00
John Bowler
81f0273d54
[libpng16] Added tests in pngvalid.c to check zero-length IDAT chunks in various
...
positions. Fixed the sequential reader to handle these more robustly
(John Bowler).
2016-05-29 09:45:33 -05:00
Timothy Nikkel
3f46c67c69
[libpng16] Fixed the progressive reader to handle empty first IDAT chunk
...
properly (patch by Timothy Nikkel).
2016-05-29 09:44:04 -05:00
Glenn Randers-Pehrson
6c7459e455
[libpng16] Ensure png_ptr->trans_values is set in png_set_tRNS().
2016-05-27 20:09:23 -05:00
Glenn Randers-Pehrson
8d16725373
[libpng16] Stop a potential memleak in png_set_tRNS() (Bug report by Ted Ying).
2016-05-27 19:55:44 -05:00
Glenn Randers-Pehrson
4e34fd3b8a
[libpng16] Bump version to 1.6.23beta01
2016-05-27 19:48:24 -05:00
Glenn Randers-Pehrson
87c14c528a
[master] Imported from libpng-1.6.22.tar
2016-05-26 07:25:22 -05:00
Glenn Randers-Pehrson
ac43a87820
[libpng16] Imported from libpng-1.6.22.tar
2016-05-26 07:25:14 -05:00
Glenn Randers-Pehrson
474751e6b2
[libpng16] Bump version to 1.6.22rc04
2016-05-18 07:32:07 -05:00
Glenn Randers-Pehrson
37ab4d946c
[libpng16] Imported from libpng-1.6.22rc03.tar
2016-05-18 07:26:06 -05:00
Glenn Randers-Pehrson
d6e5a72c84
[libpng16] Restored contrib/timepng to default build but check for check for
...
presence of clock_gettime() in configure.ac and Makefile.am.
2016-05-17 18:35:59 -05:00
Glenn Randers-Pehrson
add4581894
[libpng16] Imported from libpng-1.6.22rc02.tar
2016-05-16 16:18:48 -05:00
Glenn Randers-Pehrson
45ad37b31b
[libpng16] Removed contrib/timepng from default build; it does not build
...
on platforms that don't supply clock_gettime().
2016-05-16 16:14:12 -05:00
Glenn Randers-Pehrson
f6ca49c863
[libpng16] Imported from libpng-1.6.22rc01.tar
2016-05-14 09:47:55 -05:00
Glenn Randers-Pehrson
7fa1b5b26c
[libpng16] Bump version to 1.6.22beta07
2016-05-05 19:38:04 -05:00
Glenn Randers-Pehrson
0794fee913
[libpng16] Imported from libpng-1.6.22beta06.tar
2016-05-05 19:37:54 -05:00
David Capello
319a7b842b
Fix genout compilation when CMAKE_OSX_ARCHITECTURES isn't specified
2016-05-04 11:30:43 -03:00
Glenn Randers-Pehrson
50d41533d2
[libpng16] Log changes to scripts/genout.cmake.in (David Capello, Nixon Kwok):
2016-05-01 19:38:12 -05:00
Glenn Randers-Pehrson
8e89b13c47
[libpng16] Fixed issues with scripts/genout.cmake.in (pull requests from dacap@github):
...
Added support to use multiple directories in ZLIBINCDIR variable,
Fixed CMAKE_C_FLAGS with multiple values when genout is compiled on MSVC,
Fixed pnglibconf.c compilation on OS X including the sysroot path.
2016-05-01 19:27:30 -05:00
Glenn Randers-Pehrson
f962ee9dc6
Merge branch 'fix-pnglibconf-on-osx' of git://github.com/aseprite/libpng into libpng16
2016-05-01 19:04:25 -05:00
Glenn Randers-Pehrson
a271625928
Merge branch 'fix-genout-with-multiple-zlib-inc-dirs' of git://github.com/aseprite/libpng into libpng16
2016-05-01 19:03:46 -05:00
Glenn Randers-Pehrson
9f642c1bbc
Merge branch 'fix-genout-with-multiple-c-flags' of git://github.com/aseprite/libpng into libpng16
2016-05-01 19:02:49 -05:00
Glenn Randers-Pehrson
21939d36ec
[libpng16] Use PNG_UINT_31_MAX instead of constant 0x7fffffff in timepng.c
2016-04-29 21:48:52 -05:00
Glenn Randers-Pehrson
8c754b1834
[libpng16] Quieted two Coverity issues in contrib/libtests/timepng.c.
2016-04-28 21:23:37 -05:00
Glenn Randers-Pehrson
2b9f68631c
[libpng16] Rebased contrib/intel_sse.patch.
2016-04-27 22:40:39 -05:00
Glenn Randers-Pehrson
830608b4b8
[libpng16] Bump version to 1.6.22beta06
2016-04-27 13:01:29 -05:00
Glenn Randers-Pehrson
eefd9127ca
[libpng16] Imported from libpng-1.6.22beta05.tar
2016-04-27 13:01:14 -05:00
Glenn Randers-Pehrson
0392e36e94
[libpng16] Fixed typo (missing underscore) in #define PNG_READ_16_TO_8_SUPPORTED
...
(Bug report by Y.Ohashik).
2016-04-19 08:35:09 -05:00
Glenn Randers-Pehrson
a967818235
[libpng16] Moved INTEL-SSE code from pngpriv.h to contrib/intel/intel_sse.patch.
2016-04-19 08:23:10 -05:00
Glenn Randers-Pehrson
8eaa434163
[libpng16] Update CHANGES and ANNOUNCE about timepng.c changes
2016-04-15 11:29:29 -05:00
John Bowler
af9d06e06a
timepng: better errors, fix signed overflow
...
Too many input files would overflow nfiles
Signed-off-by: John Bowler <jbowler@acm.org >
2016-04-13 10:04:08 -07:00
John Bowler
703944c39d
timepng: C++ fixes, correct add_one_file
...
timepng would could a file as added even if it failed and the assembly file got
rewound.
Signed-off-by: John Bowler <jbowler@acm.org >
2016-04-13 09:37:25 -07:00
John Bowler
e81f16bf5d
timepng: more support requirements
...
Signed-off-by: John Bowler <jbowler@acm.org >
2016-04-12 21:17:22 -07:00
John Bowler
7572840cd0
timepng requires STDIO
...
Signed-off-by: John Bowler <jbowler@acm.org >
2016-04-12 21:10:04 -07:00
John Bowler
569a1d27b4
Fix timepng 'skip' return code.
...
Signed-off-by: John Bowler <jbowler@acm.org >
2016-04-12 21:04:27 -07:00
John Bowler
d642eede9a
timepng: fix builds when there is no read support
...
Signed-off-by: John Bowler <jbowler@acm.org >
2016-04-12 21:01:50 -07:00
John Bowler
5b0a0ded05
ANSI C overlength string fix
...
Signed-off-by: John Bowler <jbowler@acm.org >
2016-04-12 20:43:29 -07:00
John Bowler
819b125e6e
Merge branch 'libpng16' of ../../libpng into libpng16
2016-04-12 20:10:55 -07:00
Glenn Randers-Pehrson
fa551df95e
[libpng16] Added PNG_FAST_FILTERS macro (defined as
...
PNG_FILTER_NONE|PNG_FILTER_SUB|PNG_FILTER_UP).
2016-04-11 08:23:16 -05:00
John Bowler
76531da252
Merge branch 'libpng16' of ../../libpng into libpng16
2016-04-05 18:52:26 -07:00
Glenn Randers-Pehrson
daf2169797
[libpng16] Bump version to 1.6.22beta05
2016-04-05 19:38:42 -05:00
Glenn Randers-Pehrson
e0acad59cb
[libpng16] Imported from libpng-1.6.22beta04.tar
2016-04-05 19:38:22 -05:00
Glenn Randers-Pehrson
5765a22249
[libpng16] Eliminate PNG_NO_INTEL_SSE_3BPP from intel INSTALL
2016-04-05 12:33:17 -05:00
Glenn Randers-Pehrson
f47e1d4995
[libpng16] Eliminated PNG_NO_INTEL_SSE_3BPP which was just for testing.
2016-04-05 12:16:27 -05:00
Mike Klein
8f506d3257
SSE filter speed improvements for bpp=3.
...
- memcpy-free implementations of load3() / store3().
These should have less variance compiler to compiler.
- call load3() only when needed at the end of a scanline.
In the middle, we can use the faster load4(), ignoring that byte.
2016-04-04 16:10:09 -04:00
David Capello
d960ced6e1
Fix pnglibconf.c compilation on OS X including the sysroot path
...
Without these flags pnglibconf.c compilation fails because it
includes zlib.h -> zconf.h -> sys/types.h which is not found until we
give a correct SDK path with -isysroot flag.
2016-03-31 17:41:16 -03:00
David Capello
7cf9a34ade
Fix CMAKE_C_FLAGS with multiple values when genout is compiled on MSVC
...
Without this patch, CMAKE_C_FLAGS will be processed as a
string/filename on MSVC (e.g. when CMAKE_C_FLAGS is equal
to " /D_WIN32 /D_WINDOWS /W3") and the whole compilation fails.
2016-03-31 14:28:45 -03:00
David Capello
5ef8d1bfbf
Add support to use multiple directories in ZLIBINCDIR variable
...
For example, ZLIB_INCLUDE_DIR might include the directory where zlib.h
is located (source dir) and the zconf.h file is located (binary dir).
2016-03-31 14:18:27 -03:00
John Bowler
6ee90f06ab
Merge branch 'libpng16' of ../../libpng into libpng16
2016-03-18 11:49:11 -07:00
Glenn Randers-Pehrson
46861bc41e
[libpng16] Reformatted the new code in configure.ac
2016-03-15 07:55:41 -05:00
Dagobert Michelsen
12e63e91af
Force back to C89 if needed. This fixes #245
2016-03-14 16:21:06 +01:00
Glenn Randers-Pehrson
edad4639cf
[libpng16] Bump version to 1.6.22beta04
2016-03-09 12:04:48 -06:00
Glenn Randers-Pehrson
1a3fa1e091
[libpng16] Imported from libpng-1.6.22beta03.tar
2016-03-09 12:04:40 -06:00
Glenn Randers-Pehrson
9295264b6f
[libpng16] Update CHANGES and ANNOUNCE
2016-03-07 07:17:28 -06:00
Krishnaraj Bhat
46c47291e8
gcc6: fix misleading indentation warning
...
Although not a bug in this case, but shows up when -Wall is used
2016-03-07 13:56:15 +05:30
John Bowler
e25323e81b
Merge remote-tracking branch 'local/libpng16' into libpng16
2016-02-28 17:44:34 -08:00
John Bowler
2a25fc41f6
[libpng16] timepng usage message, ability to cache the test set
...
This makes tests slightly quicker by allowing the temporary file to be created
beforehand.
Signed-off-by: John Bowler <jbowler@acm.org >
2016-02-28 12:24:52 -06:00
John Bowler
4b4700ceca
Usage message, ability to cache the test set
...
This makes tests slightly quicker by allowing the temporary file to be created
beforehand.
Signed-off-by: John Bowler <jbowler@acm.org >
2016-02-27 21:35:29 -08:00
Glenn Randers-Pehrson
0df91242a2
[libpng16] Update CHANGES and ANNOUNCE, about timepng.c
2016-02-26 19:35:59 -06:00
John Bowler
9821954ecc
contrib/libtests/timepng: make robust, improve
...
The code no longer gives up/fails on invalid PNG data, it just skips it (with
error messages). The code no longer fails on PNG files with data beyond IEND.
Options exist to use png_read_png (reading the whole image, not by row) and, in
that case, to apply any of the supported transforms. This makes for more
realistic testing; the decoded data actually gets used in a meaningful fashion.
Signed-off-by: John Bowler <jbowler@acm.org >
2016-02-26 16:33:38 -08:00
Glenn Randers-Pehrson
e2d113cadf
[libpng16] Updated INSTALL instructions for intel SSE code
2016-02-23 09:29:08 -06:00
Glenn Randers-Pehrson
b4f9f5d041
[libpng16] Fixed cut-and-paste errors in the new intel_sse.patch
...
and added PNG_NO_INTEL_SSE_3BPP macro.
2016-02-22 18:50:59 -06:00
Glenn Randers-Pehrson
6c3d5bd2a0
[libpng16] Moved contrib/intel/*.patch into INSTALL and added intel_sse.patch
2016-02-22 16:38:10 -06:00
Glenn Randers-Pehrson
da9d1d7aa6
[libpng16] Added pngdebug() statements to the new intel code and the arm code.
2016-02-19 14:58:59 -06:00
Glenn Randers-Pehrson
52846504da
[libpng16] Fix copyright in sse code, use C-style comments
2016-02-19 09:46:51 -06:00
Glenn Randers-Pehrson
d06d66e899
[libpng16] Added contrib/intel/INSTALL
2016-02-18 22:17:46 -06:00
Glenn Randers-Pehrson
cdd9a23fd4
[libpng16] Fixed include directives in two new intel files to reflect
...
their new location in contrib/intel/* (was intel/*)
2016-02-18 21:23:24 -06:00
Glenn Randers-Pehrson
4233766b1d
[libpng16] Added Intel SSE support (Matt Sarrett, Google Inc.)
2016-02-18 21:20:28 -06:00
Glenn Randers-Pehrson
f78d1cd47a
[libpng16] Updated LICENSE to say files in the contrib directory are not
...
necessarily under the libpng license, and that some makefiles have
other copyright owners.
2016-02-18 21:10:52 -06:00
Matt Sarett
c3a45944e2
Fix paths in Makefile.am.patch
2016-02-18 12:45:13 -05:00
Matt Sarett
342c4eab2a
Move sse opts into contrib/intel
2016-02-18 12:43:50 -05:00
Matt Sarett
fb375429b5
Fix host_cpu check
2016-02-17 11:52:09 -05:00
Matt Sarett
9a308a3344
Add intel opts to Makefile and configure.ac
2016-02-17 11:43:34 -05:00
Glenn Randers-Pehrson
0348a407e5
[libpng16] Add ${INCLUDES} in scripts/genout.cmake.in (Bug report by Nixon Kwok).
2016-02-16 14:38:28 -06:00
Matt Sarett
5bc58a0ebc
Use immintrin, tweak checks for SSE4, SSSE3
2016-02-16 10:53:36 -05:00
Matt Sarett
577c1f0305
Reformat a bit, add MSVS checks, add SSE4
2016-02-16 10:10:11 -05:00
Matt Sarett
f84f957881
Use PNG_INTEL_SSE_OPT instead of PNG_INTEL_SSE2_OPT
2016-02-15 14:45:14 -05:00
Matt Sarett
9c946e22fc
Add SSSE3 and SSE2 optimized png filter functions
2016-02-15 14:41:27 -05:00
Glenn Randers-Pehrson
1099cdcb5a
[libpng16] Removed dubious "#if INT_MAX" test from png.h that was added to
...
libpng-1.6.19bet02 (John Bowler).
2016-02-13 15:02:16 -06:00
Robert C. Seacord
0c27c8633e
[libpng16] Changed PNG_INFO_cHNK and PNG_FREE_cHNK from 0xnnnn to 0xnnnnU
...
(Robert C. Seacord).
2016-02-13 12:59:39 -06:00
Glenn Randers-Pehrson
baf301d122
[libpng16] Restored "& 0xff" in png_save_uint_16() and png_save_uint_32() that
...
were accidentally removed from libpng-1.6.17.
2016-02-13 12:01:35 -06:00
Glenn Randers-Pehrson
08bd7654bc
[libpng16] Added a common-law trademark notice and export control information
...
to the LICENSE file, png.h, and the man page.
2016-02-10 11:46:31 -06:00
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
5756fcab2f
[master] Imported from libpng-1.6.21.tar
2016-01-15 14:04:53 -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
Glenn Randers-Pehrson
ad29c03711
[libpng16] Bump version to 1.6.21beta03
2015-12-13 23:24:36 -06:00
Glenn Randers-Pehrson
0a4967ce0c
[libpng16] Imported from libpng-1.6.21beta02.tar
2015-12-13 23:23:41 -06:00
Glenn Randers-Pehrson
b3d3a5ed6a
[libpng16] Imported from libpng-1.6.21beta02.tar
2015-12-13 22:44:31 -06:00
Glenn Randers-Pehrson
4d8de33979
[libpng16] Update copyright uears in source files.
2015-12-13 22:41:17 -06:00
Glenn Randers-Pehrson
32629bb522
[libpng16] Update CHANGES and ANNOUNCE
2015-12-13 20:35:15 -06:00
Glenn Randers-Pehrson
0bc972fbc2
[libpng16] Fix typo in "last-changed" date.
2015-12-13 20:19:36 -06:00
John Bowler
6cc84b3c44
Fix rgb_to_gray graylo==0 errors, build issues
...
Fixes to pngvalid for various reduced build configurations (eliminate unused
statics) and a fix for the case in rgb_to_gray when the digitize option reduces
graylo to 0, producing a large error.
Signed-off-by: John Bowler <jbowler@acm.org >
2015-12-13 18:00:41 -08:00
John Bowler
c5e81c51d9
Remove LE/BE dependencies in pngvalid
...
This 'fixes' the current problem in the BE tests by not testing it, making the
BE code the same as the LE version.
Signed-off-by: John Bowler <jbowler@acm.org >
2015-12-13 17:15:02 -08:00
John Bowler
cbe5d34f6f
Backport pngvalid.c from libpng17
...
One fix is required for libpng16 LE, more for libpng16 BE
Signed-off-by: John Bowler <jbowler@acm.org >
2015-12-13 17:07:36 -08:00
Glenn Randers-Pehrson
975cbbb029
[libpng16] Moved png_check_keyword() from pngwutil.c to pngset.c
2015-12-13 15:04:18 -06:00
Glenn Randers-Pehrson
f3da771890
[libpng16] Bump version to 1.6.21beta02
2015-12-11 19:21:01 -06:00
Glenn Randers-Pehrson
2edfd187f2
[libpng16] Imported from libpng-1.6.21beta01.tar
2015-12-11 16:39:54 -06:00
John Bowler
2c8a90ef52
[libpng16] Changed "( ... )" to " ... " in tests/pngstest (John Bowler)
2015-12-09 13:16:28 -06:00
Glenn Randers-Pehrson
0de0101fdd
[libpng16] Bump version to 1.6.21beta01
2015-12-08 22:19:15 -06:00
Glenn Randers-Pehrson
1dbfb07c08
[libpng16] Fixed a syntax error in tests/pngstest that some shells other than
...
bash could not parse (Bug report by Nelson Beebe).
2015-12-08 22:18:01 -06:00
Glenn Randers-Pehrson
047737496a
[master] Imported from libpng-1.6.20.tar
2015-12-02 22:37:04 -06:00
Glenn Randers-Pehrson
5b6a6f914b
[libpng16] Imported from libpng-1.6.20.tar
2015-12-02 22:30:37 -06:00
Glenn Randers-Pehrson
4fa5f90346
[libpng16] Imported from libpng-1.6.20rc02.tar
2015-11-29 16:46:56 -06:00
Glenn Randers-Pehrson
ebeca5bd9b
[libng16] Update CHANGES
2015-11-29 16:46:04 -06:00
Glenn Randers-Pehrson
9dcf45c65c
Merge branch 'libpng16' of git://github.com/jbowler/libpng-1 into libpng16
2015-11-29 16:20:54 -06:00
Glenn Randers-Pehrson
030e12ec39
[libpng16] Bump version to libpng-1.6.20rc02.tar
2015-11-29 16:10:46 -06:00
John Bowler
12bebfe0f9
Merge branch 'libpng16' of ../../libpng into libpng16
2015-11-28 00:08:20 -08:00
John Bowler
28a1cdfc2e
Fix inconsistent handling of invalid zlib data
...
In libpng 1.6 zlib initialization was changed to use the window size in the zlib
stream, not a fixed value. This causes some invalid images, ones where CINFO is
too large, to display 'correctly' if the rest of the data is valid. This
provides a work-round for zlib versions where the error arises (ones that
support the API change to use the window size in the stream).
Signed-off-by: John Bowler <jbowler@acm.org >
2015-11-27 23:57:39 -08:00
Glenn Randers-Pehrson
e7092bc59c
[libpng16] Imported from libpng-1.6.20rc01.tar
2015-11-26 07:04:24 -06:00
Glenn Randers-Pehrson
87049cbf84
[libpng16] Update CHANGES, ANNOUNCE, minor editing of contrib/*/*.c
2015-11-25 15:55:01 -06:00
Glenn Randers-Pehrson
19ffb62903
[libpng16] Update CHANGES and ANNOUNCE about pngfix.c
2015-11-25 15:25:40 -06:00
John Bowler
f5778c8fbb
Fix error in handling of bad zlib CMINFO field
...
Signed-off-by: John Bowler <jbowler@acm.org >
2015-11-25 12:59:42 -08:00
Glenn Randers-Pehrson
92ec30a3b1
[libpng16] Imported from libpng-1.6.20beta03.tar
2015-11-24 09:34:02 -06:00
John Bowler
8a08b6457a
Test backport
...
Tests backported from the multi-version compatible ones in libpng 1.7
Signed-off-by: John Bowler <jbowler@acm.org >
2015-11-23 20:15:51 -08:00
Glenn Randers-Pehrson
9a2065c5ee
[libpng16] Imported from libpng-1.6.20beta02.tar
2015-11-23 09:29:44 -06:00
Glenn Randers-Pehrson
27f08ac11d
[lbpng16] Revert 12 -> 12U change in pngrutil.c
2015-11-22 22:59:47 -06:00
Glenn Randers-Pehrson
0a9afc12de
[libpng16] Fixed bug recently introduced in png_set_PLTE() that uses png_ptr
...
not info_ptr.
2015-11-22 20:53:02 -06:00
Glenn Randers-Pehrson
a1a2ae2a25
[libpng16] Bump version to 1.6.20beta02
2015-11-22 14:11:29 -06:00
Glenn Randers-Pehrson
26942c818e
[libpng16] Imported from libpng-1.6.20beta01.tar
2015-11-22 14:08:52 -06:00
Glenn Randers-Pehrson
8ba160ba94
[libpng16] Use unsigned constants in buffer length comparisons
2015-11-21 14:31:59 -06:00
John Bowler
1ceedd0bf6
[libpng16] Another whack at png_handle_sPLT() pointer calculation.
2015-11-19 20:45:08 -06:00
Viktor Szakats
4db6127658
pngread: avoid clang warning for unreachable code
...
```
pngread.c:2841:10: warning: 'break' will never be executed [-Wunreachable-code-break]
break;
^~~~~
```
2015-11-19 19:54:01 +01:00
Glenn Randers-Pehrson
c4b2282fee
[libpng16] Removed new redundant check for length < 12 in pngrutil.c
2015-11-17 16:36:06 -06:00
Glenn Randers-Pehrson
001513c9ca
[libpng16] Removed new redundant check for libpng < 12 in pngrutil.c
2015-11-17 16:23:51 -06:00
Glenn Randers-Pehrson
162f9f87f9
[libpng16] Remove newly-added useless typecasts.
2015-11-16 09:23:25 -06:00
Glenn Randers-Pehrson
9965f63a44
[libpng16] Changed size_t to png_uint_32 in new buffer checks (John Bowler)
2015-11-15 15:27:22 -06:00
Glenn Randers-Pehrson
070a0eb58f
[libpng16] Revised recent pngrutil.c patch as suggested by pascal
2015-11-14 16:45:26 -06:00
Glenn Randers-Pehrson
0b4e7deab1
[libpng16] Avoid potential pointer overflow in png_handle_sPLT() and
...
png_handle_pCAL() (Bug report by John Regehr).
2015-11-13 11:05:27 -06:00
Glenn Randers-Pehrson
f1cdf4e1ca
[libpng16] Bump version to 1.6.20beta01
2015-11-13 10:18:18 -06:00
Glenn Randers-Pehrson
b9c62013ef
[master] Imported from libpng-1.6.19.tar
2015-11-12 07:18:03 -06:00
Glenn Randers-Pehrson
415d26805a
[libpng16] Imported from libpng-1.6.19.tar
2015-11-12 07:13:31 -06:00
Glenn Randers-Pehrson
83f4c735c8
[libpng16] Clean up coding style in png_handle_PLTE()
2015-11-05 11:18:44 -06:00
Glenn Randers-Pehrson
64fef09b67
[libpng16] Imported from libpng-1.6.19rc04.tar
2015-11-05 06:59:34 -06:00
Glenn Randers-Pehrson
9f2ad4928e
[libpng16] Fixed new bug with CRC error after reading an over-length palette.
2015-11-04 23:47:42 -06:00
Glenn Randers-Pehrson
0e30044094
[libpng16] Imported from libpng-1.6.19rc03.tar
2015-11-03 09:57:01 -06:00
Glenn Randers-Pehrson
fc8450833a
[libpng16] Clarified COPYRIGHT information to state explicitly that versions
...
are derived from previous versions.
Removed much of the long list of previous versions from png.h and
libpng.3.
2015-11-03 08:24:56 -06:00
Glenn Randers-Pehrson
6761aacbfa
[libpng16] Bump version to 1.6.19rc03
2015-11-03 08:15:06 -06:00
Glenn Randers-Pehrson
408dbac801
[libpng16] Fixed some inconsequential cut-and-paste typos
...
in png_set_cHRM_XYZ_fixed().
2015-11-01 12:38:33 -06:00
Glenn Randers-Pehrson
b00d986d54
[libpng16] Imported from libpng-1.6.19rc02.tar
2015-10-31 09:04:18 -05:00
Glenn Randers-Pehrson
305ada6672
Merge branch 'libpng16' of https://github.com/jbowler/libpng-1 into libpng16
2015-10-30 12:48:07 -05:00
Glenn Randers-Pehrson
1bef8e9799
[libpng16] Silently truncate over-length PLTE chunk while reading.
2015-10-30 11:34:37 -05:00
Glenn Randers-Pehrson
a901eb3ce6
[libpng16] Prevent reading over-length PLTE chunk (Cosmin Truta).
2015-10-30 07:57:49 -05:00
John Bowler
896c3cfb76
rowbytes check correction
...
The old code incorrectly calculated the output rowbytes when the
application decreased either the number of channels or the bit depth (or
both) in a user transform. This was safe; libpng overallocated buffer
space (potentially by quite a lot; up to 4 times the amount required)
but, from 1.5.4 on, resulted in a png_error.
Signed-off-by: John Bowler <jbowler@acm.org >
2015-10-29 18:16:48 -07:00
Glenn Randers-Pehrson
06509be841
[libpng16] Bump version to 1.6.19rc02
2015-10-29 09:28:33 -05:00
Glenn Randers-Pehrson
81f44665cc
[libpng16] Reject attempt to write over-length PLTE chunk
2015-10-29 09:26:41 -05:00
Glenn Randers-Pehrson
9c7ed35a65
[libpng16] Imported from libpng-1.6.19rc01.tar
2015-10-23 09:30:20 -05:00
Glenn Randers-Pehrson
05e81e18d2
[libpng16] Bump version to 1.6.19beta05
2015-10-14 22:25:29 -05:00
Glenn Randers-Pehrson
6ca8ee1518
[libpng16] Imported from libpng-1.6.19beta04.tar
2015-10-14 22:25:21 -05:00
Glenn Randers-Pehrson
59e655b020
[libpng16] Added sPLT support to pngtest.c
2015-10-10 12:05:55 -05:00
Glenn Randers-Pehrson
5bd9d66098
[libpng16] Updated CHANGES and ANNOUNCE
2015-10-03 15:16:53 -05:00
John Bowler
2163c930b0
pow and sbit fixes backported to pngvalid from 1.7
...
Signed-off-by: John Bowler <jbowler@acm.org >
2015-10-03 11:14:43 -07:00
John Bowler
18f0bd1d63
Merge remote-tracking branch 'local/libpng16' into libpng16
2015-09-27 08:52:50 -07:00
Glenn Randers-Pehrson
5b9c044332
Revert "[libpng16] Fix bad merge of contrib/libtests/pngvalid.c"
...
This reverts commit 9517f7b636 .
2015-09-27 09:17:45 -05:00
John Bowler
dc3069bcb1
Merge branch 'libpng16' into libpng16-pngvalid-rgb-to-gray-digitize-issues
2015-09-26 21:29:06 -07:00
Glenn Randers-Pehrson
9517f7b636
[libpng16] Fix bad merge of contrib/libtests/pngvalid.c
2015-09-26 23:11:15 -05:00
Glenn Randers-Pehrson
b77d929217
[libpng16] Restored Makefile.am and configure.ac (they had been
...
inadvertently replaced with libpng17 versions).
2015-09-26 22:54:51 -05:00
Glenn Randers-Pehrson
b939ce06be
[libpng17] Makefile.am and configure.ac were out of date.
2015-09-26 22:26:44 -05:00
Glenn Randers-Pehrson
f9e37f54eb
[libpng16] Worked around rgb-to-gray issues in libpng 1.6. The previous
...
attempts to ignore the errors in the code aren't quite enough to
deal with the 'channel selection' encoding added to libpng 1.7; abort.
2015-09-26 21:31:53 -05:00
John Bowler
04402a9126
Fix (work round) rgb-to-gray issues in libpng 1.6
...
The previous attempts to ignore the errors in the code aren't quite enough to
deal with the 'channel selection' encoding added to libpng 1.7; abort.
pngvalid.c is changed to drop this encoding in prior versions.
Signed-off-by: John Bowler <jbowler@acm.org >
2015-09-26 17:41:02 -07:00
Glenn Randers-Pehrson
068cb3a64c
[libpng16] Bump version to 1.6.19beta04
2015-09-26 09:44:43 -05:00
Glenn Randers-Pehrson
f4302a73ac
[libpng16] Imported from libpng-1.6.19beta03.tar
2015-09-26 09:44:34 -05:00
John Bowler
23ddeb58a5
pngvalid tests: add --strict, fix test names
...
Signed-off-by: John Bowler <jbowler@acm.org >
2015-09-25 17:06:58 -07:00
John Bowler
956f295d48
Merge remote-tracking branch 'local/libpng16' into libpng16
2015-09-25 16:58:43 -07:00
Glenn Randers-Pehrson
61257bc2de
[libpng16] Update CHANGES and ANNOUNCE
2015-09-25 18:25:08 -05:00
John Bowler
6297297708
Enable low-bit-depth gray tests in pngvalid
...
Signed-off-by: John Bowler <jbowler@acm.org >
2015-09-25 16:21:45 -07:00
John Bowler
fd42ef9b06
pngstest 1.6 error limit and warning revisions
...
Remove the '--strict' in 1.6 because of the double-gamma-correction warning,
update pngstest-errors.h for the errors detected with the new contrib/testspngs
PNG test files.
Signed-off-by: John Bowler <jbowler@acm.org >
2015-09-25 13:40:18 -07:00
John Bowler
a2671a7f49
test PNG files (contrib/testpngs)
...
Back ported from libpng 1.7
Signed-off-by: John Bowler <jbowler@acm.org >
2015-09-25 13:10:13 -07:00
John Bowler
fa5ba2e026
New test PNG files incorporated into make check
...
tests/pngstest-* are changed so that the new test files are divided into 8
groups by gamma and alpha channel. This makes each test take just under 5
seconds on a moderately up-to-date x86_64 system using libpng16 (test times are
somewhat variable under libpng17 at present because of the lack of optimization
in some gamma processing paths.)
These tests have considerably better code and pixel-value coverage than
contrib/pngsuite however coverage is still incomplete.
Signed-off-by: John Bowler <jbowler@acm.org >
2015-09-25 12:41:56 -07:00
Glenn Randers-Pehrson
01a0e8062d
[libpng16] Reverted addition of png_set_filler_16 and png_set_add_alpha_16()
...
functions. They unnecessarily duplicate png_set_filler() and png_set_add_alpha()
which now work properly with 16-bit images.
2015-09-24 22:39:53 -05:00
Glenn Randers-Pehrson
5b038f83e7
[libpng16] Fix typo in manual
2015-09-23 22:27:14 -05:00
Glenn Randers-Pehrson
efe4e5d10d
[libpng16] Reverted the fix of byte order in png_do_read_filler() with 16-bit
...
input that was made in version 1.6.17beta01, to preserve legacy
behavior even though it was incorrect. Instead, added new API
png_set_filter_16() and png_set_add_alpha_16() that set a flag to
make png_do_read_filter() interpret the filler bytes properly.
2015-09-23 22:08:04 -05:00
John Bowler
d6eb4b71ac
Updated pngstest-errors.h
...
This update incorporates errors resulting from the more extensive image test
suite used in libpng 1.7
Signed-off-by: John Bowler <jbowler@acm.org >
2015-09-20 20:59:10 -07:00
Glenn Randers-Pehrson
4c9c43d4d4
[libpng16] Added license info to pngstest-errors.h and its generator.
2015-09-19 20:17:44 -05:00
Glenn Randers-Pehrson
0cc11b86ba
[libpng16] Update ANNOUNCE and CHANGES with recent pngstest updates.
2015-09-19 19:57:59 -05:00
John Bowler
93b4568fc0
pngstest: make error limits version specific
...
Splitting the machine generated error structs out to a file allows the values to
be updated without changing pngstest.c itself, since libpng 1.6 and 1.7 have
slightly different error limits this simplifies maintenance.
Signed-off-by: John Bowler <jbowler@acm.org >
2015-09-19 16:34:30 -07:00
Glenn Randers-Pehrson
f6cd8f2d65
[libpng16] Updated description of filler-byte bugfix in CHANGES.
2015-09-18 23:37:25 -05:00
Glenn Randers-Pehrson
8bfcb4c7a7
[libpng16] Copied contrib/libtests/pngvalid.c from libpng17.
2015-09-18 14:24:49 -05:00
Glenn Randers-Pehrson
eb0bf4f468
[libpng16] Updated pngvalid.c with recent changes from libpng17
2015-09-18 13:09:57 -05:00
John Bowler
e8c554661c
Back-port pngvalid corrections and enhancements
...
This is a patch for libpng16.
It incorporates fixes to the low-bit-depth gray background handling from
libpng17 and turns one of the low-bit-depth gray cases that does work (and,
indeed, did work before) in libpng16
Signed-off-by: John Bowler <jbowler@acm.org >
2015-09-17 07:56:30 -07:00
John Bowler
c3e7e7d715
[libpng16] tests backported from libpng 1.7
...
This updates libpng16 with all the test changes from libpng17,
including changes to pngvalid.c to ensure that the original,
distributed, version of contrib/visupng/cexcept.h can be used.
pngvalid contains the correction to the use of SAVE/STORE_
UNKNOWN_CHUNKS; a bug revealed by changes in libpng 1.7. More
tests contain the --strict option to detect warnings and the
pngvalid-standard test has been corrected so that it does not
turn on progresive-read (there is a separate test which does
that.)
Some signed/unsigned fixes have been made.
Signed-off-by: John Bowler <jbowler@acm.org >
2015-09-15 15:38:52 -07:00
Glenn Randers-Pehrson
1e16e8829d
[libpng16] Fix typo (extra "*/") in contrib/libtests/fakepng.c
2015-09-15 17:07:34 -05:00
John Bowler
33a97c5c8a
[libpng16] Fixed png_save_int_32 when int is not 2's complement (John Bowler).
2015-08-21 14:42:00 -05:00
Glenn Randers-Pehrson
39be3b81da
[libpng16] Bump version to 1.6.19beta03
2015-08-19 12:58:26 -05:00
Glenn Randers-Pehrson
4c02a5930a
[libpng16] Imported from libpng-1.6.19beta02.tar
2015-08-19 12:58:14 -05:00
John Bowler
2d62f7406f
[libpng16] Fixed the recently reported 1's complement security issue by
...
replacing the value that is illegal in the PNG spec, in both signed and
unsigned values, with 0. Illegal unsigned values (anything greater than or equal
to 0x80000000) can still pass through, but since these are not illegal
in ANSI-C (unlike 0x80000000 in the signed case) the checking that
occurs later can catch them (John Bowler).
2015-08-19 12:56:48 -05:00
Glenn Randers-Pehrson
6530e3898d
[libpng16] Restored previous handling of negative input to png_set_sig_bytes().
2015-08-17 21:56:03 -05:00
Glenn Randers-Pehrson
5a26171dd7
[libpng16] Mention the change in png_set_sig_bytes() behavior in the man page.
2015-08-17 21:39:22 -05:00
Robert C. Seacord
167b5e4c27
[libpng16] Safely convert num_bytes to a png_byte in png_set_sig_bytes()
2015-08-17 21:20:34 -05:00
Glenn Randers-Pehrson
a8242fe6fb
[libng16] Reverted recent mistaken change of 0xnnnn to 0xnnnnUL
2015-08-17 20:46:27 -05:00
Glenn Randers-Pehrson
15e69748f1
[libpng16] Removed new unnecessary typecast in pngrutil.c
2015-08-17 12:52:56 -05:00
Glenn Randers-Pehrson
268c7bf68b
[libpng16] Use unsigned hex constants in "reciprocal" computations
2015-08-17 12:40:19 -05:00
Glenn Randers-Pehrson
d8b93c29a7
[libpng16] Appended more "UL" to hex constants.
2015-08-17 10:56:17 -05:00
Glenn Randers-Pehrson
b9ba8d6a57
[libpng16] Mention in manual that 16-bit platform support has been dropped.
2015-08-16 23:32:04 -05:00
John Bowler
751cee5ef1
[libpng16] Added signed/unsigned 16-bit safety net. This removes the dubious
...
0x8000 flag definitions on 16-bit systems. They aren't supported
yet the defs *probably* work, however it seems much safer to do this
and be advised if anyone, contrary to advice, is building libpng 1.6
on a 16-bit system. It also adds back various switch default clauses
for GCC; GCC errors out if they are not present (with an appropriately
high level of warnings).
2015-08-16 22:54:21 -05:00
Glenn Randers-Pehrson
8ba4b13c55
[libpng16] Changed 0xnnnn constants to 0xnnnnUL.
2015-08-16 22:49:58 -05:00
Glenn Randers-Pehrson
8b83ff3704
[libpng16] Change "n bit" to "n-bit" in comments.
2015-08-13 20:57:18 -05:00
Glenn Randers-Pehrson
a472858297
[libpng16] Fix links in man page
2015-08-11 15:34:08 -05:00
Glenn Randers-Pehrson
682f4ba2d5
[libpng16] Fix links in man page
2015-08-11 13:04:01 -05:00
Glenn Randers-Pehrson
656720fb42
[libpng16] Fixed dead link in man page
2015-08-11 12:12:46 -05:00
Glenn Randers-Pehrson
fd8ef4c428
[libpng16] Add #ifdef PNG_DEBUG/#endif around normally unreachable code
...
in pngread.c
2015-08-07 14:43:34 -05:00
Victor Szakats
4e1d299e6b
[libpng16] Removed unreachable "break" statements in png.c, pngread.c, and
...
pngrtran.c to suppress clang warnings (Bug report by Viktor Szakats).
2015-08-07 14:31:11 -05:00
Glenn Randers-Pehrson
0e9cd91609
[libpng16] Moved config.h.in~ from the "libpng_autotools_files" list to the
...
"libpng_autotools_extra" list in autogen.sh because it was causing a
false positive for missing files (bug report by Robert C. Seacord).
2015-08-02 21:51:11 -05:00
Glenn Randers-Pehrson
52d159a784
[libpng16] Bump version to 1.6.19beta02
2015-07-30 11:24:53 -05:00
Glenn Randers-Pehrson
67806d44c1
[libpng16] Imported from libpng-1.6.19beta01.tar
2015-07-30 11:18:15 -05:00
Glenn Randers-Pehrson
8510247b5f
[libpng16] Fixed uninitialized variable in contrib/gregbook/rpng2-x.c and
...
fixed potential leak of png_pixels in contrib/pngminus/pnm2png.c
2015-07-30 11:16:29 -05:00
Glenn Randers-Pehrson
77becc566f
[libpng16] Suppressed warnings from the Borland C++ 5.5.1/5.82 compiler in png.c
2015-07-29 08:01:12 -05:00
Glenn Randers-Pehrson
e1b505cd1d
[libpng16]Suppressed a warning from the Borland C++ 5.5.1/5.82 compiler
2015-07-29 07:42:19 -05:00
Glenn Randers-Pehrson
e485a09e0e
[libpng16] Suppressed some warnings from the Borland C++ 5.5.1/5.82 compiler
...
(Bug report by Viktor Szaka'ts). Several warnings remain and are
unavoidable, where we test for overflow.
2015-07-29 07:29:17 -05:00
Glenn Randers-Pehrson
1fa62ae734
[libpng16] Rearranged png.h to put the major sections in the same order as
...
in libpng17.
2015-07-25 20:50:21 -05:00
Glenn Randers-Pehrson
262c396666
[libpng16] More edits to libpng.3 and libpng-manual.txt
2015-07-25 08:30:12 -05:00
Glenn Randers-Pehrson
59a82b40b0
[libpng16] Avoid potentially dereferencing NULL info_ptr in png_info_init_3().
2015-07-25 08:03:05 -05:00
Glenn Randers-Pehrson
e10b7e73db
[libpng16] Updated obsolete information about the simplified API macros in the
...
manual pages (Bug report by Arc Riley).
2015-07-25 08:01:34 -05:00
Glenn Randers-Pehrson
476250ebd2
[libpng16] Bump version to 1.6.19beta01
2015-07-23 20:20:53 -05:00
Glenn Randers-Pehrson
287fb89248
[master] Imported from libpng-1.6.18.tar
2015-07-22 22:41:05 -05:00
Glenn Randers-Pehrson
e6172809bd
[libpng16] Imported from libpng-1.6.18.tar
2015-07-22 22:40:52 -05:00
Glenn Randers-Pehrson
db8704e1f4
[libpng16] Imported from libpng-1.6.18rc03.tar
2015-07-15 21:24:11 -05:00
Glenn Randers-Pehrson
1a73305ac2
[libpng16] Removed WEIGHTED_FILTER info from the man page.
2015-07-13 14:53:27 -05:00
Glenn Randers-Pehrson
285a9b22c7
[libpng16] Bump version to 1.6.18rc03
2015-07-13 08:31:05 -05:00
Glenn Randers-Pehrson
be55943d45
[libpng16] Imported from libpng-1.6.18rc02.tar
2015-07-13 07:09:33 -05:00
Glenn Randers-Pehrson
e0874e1934
[libpng16] Restored unused WEIGHTED_FILTER macros removed at libpng-1.6.18beta08
...
to png.h to avoid compatibility warnings.
2015-07-13 07:08:15 -05:00
Glenn Randers-Pehrson
4cb6607c89
[libpng16] Imported from libpng-1.6.18rc01.tar
2015-07-09 11:14:03 -05:00
Glenn Randers-Pehrson
751eb368a8
[libpng16] Added Mans Rullgard and James Yu to the list of Contributing Authors
2015-07-09 11:11:49 -05:00
Glenn Randers-Pehrson
f7654a0c61
[libpng16] Fixed new typo in LICENSE
2015-07-04 20:58:24 -05:00
Glenn Randers-Pehrson
d78eb10f29
[libpng16] Bump version to 1.6.18beta10
2015-07-04 20:43:09 -05:00
Glenn Randers-Pehrson
d2a35c6088
[libpng16] Imported from libpng-1.6.18beta09.tar
2015-07-04 20:42:56 -05:00
Glenn Randers-Pehrson
b9e5e5f5a8
[libpng16] Replaced arbitrary use of 'extern' with #define PNG_LINKAGE_*. To
...
preserve API compatibility, the new defines all default to "extern"
(requested by Jan Nijtmans).
2015-07-03 16:07:54 -05:00
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
4e5ac72254
[libpng16] Bump version to 1.6.18beta09
2015-06-30 10:54:55 -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
f86720c6c0
[libpng16] Fix some indentation.
2015-06-11 22:00:14 -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
81487c8b54
[libpng16] Removed some unused WEIGHTED_FILTER macros from png.h and pngstruct.h
2015-06-10 07:06:42 -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
4293254bef
[libpng16] Bump version to 1.6.18beta08
2015-06-06 17:03:35 -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
7023d871e8
[libpng16] Fix g++ build breaks
2015-06-03 15:04:03 -05:00
John Bowler
2dfcf65981
[libpng16] Fixed NO_WRITE_FILTER and -Wconversion build breaks (John Bowler).
2015-06-03 14:58:18 -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
John Bowler
25bfb13770
[libpng16] Removed non-working progressive reader 'skip' function. This
...
function has apparently never been used. It was implemented
to support back-door modification of png_struct in libpng-1.4.x
but was apparently never tested (because it does nothing and cannot
do anything).
2015-06-03 14:31:08 -05:00
Glenn Randers-Pehrson
1a6841c99c
[libpng16] Bump version to 1.6.18beta07
2015-06-01 09:33:33 -05:00
Glenn Randers-Pehrson
1d4f804bc1
[libpng16] Imported from libpng-1.6.18beta06.tar
2015-06-01 09:33:23 -05:00
Glenn Randers-Pehrson
89edbf8317
[libpng16] Removed WRITE_WEIGHTED_FILTERED code, to save a few kbytes of the
...
compiled library size. It never worked properly and as far as we can
tell, no one uses it. The png_set_filter_heuristics() and
png_set_filter_heuristics_fixed() APIs are retained but deprecated
and do nothing.
2015-05-31 22:40:36 -05:00
Glenn Randers-Pehrson
a008dd8344
[libpng16] Bump version to 1.6.18beta06
2015-05-31 10:20:22 -05:00
Glenn Randers-Pehrson
20a2f9b9be
[libpng16] Imported from libpng-1.6.18beta05.tar
2015-05-31 10:20:13 -05:00
Glenn Randers-Pehrson
1088f4925f
[libpng16] Fixed old cut&paste bug in the weighted filter selection code in
...
pngwutil.c, introduced in libpng-0.95, March 1997.
2015-05-30 22:58:54 -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
e6877671f1
[libpng16] Backported filter selection code from libpng-1.7.0beta51, to combine
...
sub_row, up_row, avg_row, and paeth_row into try_row and tst_row.
2015-05-30 11:54:45 -05:00
Glenn Randers-Pehrson
9fbdce8fb5
[libpng16] Bump version to 1.6.18beta05
2015-05-29 11:35:15 -05:00
Glenn Randers-Pehrson
f6b9c993e1
[libpng16] Imported from libpng-1.6.18beta04.tar
2015-05-29 11:28:33 -05:00
Glenn Randers-Pehrson
d46b570919
[libpng16] Avoid a harmless potential integer overflow in png_XYZ_from_xy().
2015-05-20 13:21:53 -05:00
Glenn Randers-Pehrson
918d23f658
[libpng16] Trivial editing of comments in png.c
2015-05-09 21:48:11 -05:00
Glenn Randers-Pehrson
d2fedd629d
[libpng16] Avoid Coverity issue 80858 (REVERSE NULL) in pngtest.c
...
PNG_DEBUG builds.
2015-05-09 21:47:00 -05:00
Glenn Randers-Pehrson
2d069831fb
[libpng16] Document PNG_RELEASE_BUILD in the man page.
2015-05-06 20:31:21 -05:00
John Bowler
8ee821e69a
[libpng16] PNG_RELEASE_BUILD replaces tests where the code depended on the build base
...
type and can be defined on the command line, allowing testing in beta builds. Back
ported from libpng17.
2015-05-06 20:03:14 -05:00
Glenn Randers-Pehrson
279dc3f0bf
[libpng16] Added some documentation about features of the Simplified Write API.
2015-05-06 17:02:47 -05:00
Glenn Randers-Pehrson
846357d592
[libpng16] Bump version to 1.6.18beta04
2015-05-06 16:39:42 -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
Glenn Randers-Pehrson
216ab04994
[libpng16] Updated comment in pngpriv.h about ARM support.
2015-04-29 11:30:35 -05:00
Glenn Randers-Pehrson
e0f0d05938
[libpng16] Replaced "unexpected" with an integer (0xabadca11) in pngset.c
2015-04-29 11:29:31 -05:00
Glenn Randers-Pehrson
23da29af91
[libpng16] Bump version to 1.6.18beta03
2015-04-26 16:38:18 -05:00
Glenn Randers-Pehrson
ecc391bbcf
[libpng16] Imported from libpng-1.6.18beta02.tar
2015-04-26 16:38:10 -05:00
Glenn Randers-Pehrson
c861dc8923
[libpng16] Suppressed some warnings from the Borland C++ 5.5.1/5.82 compiler
...
(Bug report by Viktor Szaka'ts).
2015-04-01 12:06:01 -05:00
Glenn Randers-Pehrson
507a8cdc5e
[libpng16] Bump version to 1.6.18beta02
2015-04-01 08:24:26 -05:00
Glenn Randers-Pehrson
bd85b5713c
[libpng16] Imported from libpng-1.6.18beta01.tar
2015-04-01 08:24:14 -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
d344589703
[libpng16] Removed PNG_SET_CHUNK_[CACHE|MALLOC]_LIMIT_SUPPORTED macros. They
...
have been combined with PNG_SET_USER_LIMITS_SUPPORTED (resolves
bug report by Andrew Church).
2015-03-27 08:58:32 -05:00
Glenn Randers-Pehrson
218a6fe9e5
[libpng16] Bump version to 1.6.18beta01
2015-03-26 08:55:25 -05:00
Glenn Randers-Pehrson
2b667e4923
[master] Imported from libpng-1.6.17.tar
2015-03-26 08:11:22 -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
f17e6c3046
[libpng16] Imported from libpng-1.6.17rc06.tar
2015-03-22 19:43:23 -05:00
John Bowler
6eecfe3886
[libpng16] Fixed simplified 8-bit-linear to sRGB alpha. The calculated alpha
...
value was wrong. It's not clear if this affected the final stored
value; in the obvious code path the upper and lower 8-bits of the
alpha value were identical and the alpha was truncated to 8-bits
rather than dividing by 257 (John Bowler).
2015-03-22 19:42:14 -05:00
Glenn Randers-Pehrson
b383798ac9
[libpng16] Add pnglibconf.dfn and pnglibconf.pre to scripts/pnglibconf.mak
...
"clean" target.
2015-03-21 15:53:44 -05:00
Glenn Randers-Pehrson
ea037b01eb
[libpng16] Remove pnglibconf.dfn and pnglibconf.pre with "make clean".
2015-03-21 15:47:39 -05:00
Glenn Randers-Pehrson
04445235f1
[libpng16] Bump version to 1.6.17rc06
2015-03-21 12:11:10 -05:00
Glenn Randers-Pehrson
778ccbbafa
[libpng16] Imported from libpng-1.6.17rc05.tar
2015-03-21 12:11:00 -05:00
Glenn Randers-Pehrson
c5370ede95
[libpng16] Reverted "& 0xff" additions of version 1.6.17beta01. Libpng passes
...
the Coverity scan without them.
2015-03-21 11:54:32 -05:00
John Bowler
2b66107abb
[libpng16] Define PNG_FILTER_* and PNG_FILTER_VALUE_* in png.h even when WRITE
...
is not supported (John Bowler). This fixes an error introduced in
libpng-1.6.17beta06.
2015-03-17 21:32:27 -05:00
Glenn Randers-Pehrson
0aabfe2a4c
[libpng16] Bump version to 1.6.17rc05
2015-03-17 08:14:23 -05:00
Glenn Randers-Pehrson
16f9246853
[libpng16] Imported from libpng-1.6.17rc04.tar
2015-03-17 08:00:12 -05:00
John Bowler
c9fd075c89
[libpng16] Fix bug in calculation of maxbits, in png_write_sBIT, introduced
...
in libpng-1.6.17beta01 (John Bowler).
2015-03-16 16:31:13 -05:00
Cosmin Truta
47e1315459
[libpng16] Remove pnglibconf.h, pnglibconf.c, and pnglibconf.out instead of
...
pnglibconf.* in "make clean" (Cosmin).
2015-03-15 17:04:17 -05:00
Glenn Randers-Pehrson
49fa8d4cdd
[libpng16] Bump version to 1.6.17rc04
2015-03-12 09:24:49 -05:00
Glenn Randers-Pehrson
a60de343a9
[libpng16] Imported from libpng-1.6.17rc03.tar
2015-03-12 06:49:06 -05:00
Glenn Randers-Pehrson
f2c37d0abf
[libpng16] Updated CMakeLists.txt to add OSX framework, change YES/NO to ON/OFF
...
for consistency, and remove some useless tests (Alexey Petruchik).
2015-03-12 06:48:01 -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
3645008e22
[libpng16] Free the unknown_chunks structure even when it contains no data.
2015-03-09 09:13:58 -05:00
Glenn Randers-Pehrson
06ee532286
[libpng16] Reverted new test on unknown chunk location; it was bogus.
2015-03-08 08:00:45 -05:00
Glenn Randers-Pehrson
bbe2be3f54
[libpng16] Spelling fixes: less then N -> less than N (Lauri Nurmi)
2015-03-07 13:13:11 -06:00
Glenn Randers-Pehrson
bb098218ca
[libpng16] Fixed some spelling (occur* -> occurr*), Bug report by Lauri Nurmi
2015-03-07 12:59:48 -06:00
Glenn Randers-Pehrson
217d38cdea
[libpng16] Stopped a potential memory leak in png_set_unknown_chunks(). Breaks
...
tests/pngunknown-sAPI so it's temporarily marked SKIP.
2015-03-07 10:35:03 -06:00
Glenn Randers-Pehrson
377fb53944
[libpng16] Removed some comments that the configure script did not handle
...
properly from scripts/pnglibconf.dfa and pnglibconf.h.prebuilt.
2015-03-05 20:59:31 -06:00
Glenn Randers-Pehrson
7f85da8df7
[libpng16] Imported from libpng-1.6.17rc02.tar
2015-03-05 20:54:07 -06:00
Glenn Randers-Pehrson
3e0bef6da4
[libpng16] Imported from libpng-1.6.17rc01.tar
2015-03-04 11:19:32 -06:00
Glenn Randers-Pehrson
82511341d7
[libpng16] Bump version to 1.6.17beta07
2015-02-27 19:20:37 -06:00
Glenn Randers-Pehrson
4029db9aac
[libpng16] Imported from libpng-1.6.17beta06.tar
2015-02-27 19:01:02 -06:00
Glenn Randers-Pehrson
7011a8cec3
[libpng16] Added "& 0xff" to things being typecast to "png_byte".
2015-02-27 18:53:44 -06:00
Sergey Kosarevsky
9a3de48b48
[libpng16] Avoid runtime checks when converting integer to png_byte with
...
Visual Studio (Sergey Kosarevsky)
2015-02-27 18:47:43 -06: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
3f49c1e42a
[libpng16] Bump version to 1.6.17beta06
2015-02-25 15:42:16 -06:00
Glenn Randers-Pehrson
68f4ea7423
[libpng16] Imported from libpng-1.6.17beta05.tar
2015-02-25 15:17:40 -06:00
Glenn Randers-Pehrson
c6b29ff896
[libpng16] Put #ifdef/#endif around png_set_compression_level in pngwrite.c
2015-02-22 19:39:17 -06:00
Glenn Randers-Pehrson
76f93293a0
[libpng16] Bump version to 1.6.17beta05
2015-02-21 12:49:38 -06:00
Glenn Randers-Pehrson
d375ca5e0d
[libpng16] Imported from libpng-1.6.17beta04.tar
2015-02-21 12:49:25 -06:00
Glenn Randers-Pehrson
60a7506744
[libpng16]Allow calling png_get_IHDR() with NULL arguments (Reuben Hawkins).
2015-02-18 12:24:46 -06:00
Glenn Randers-Pehrson
d3ff44f0d5
[libpng16] Added PNG_WRITE_CUSTOMIZE_COMPRESSION_SUPPORTED macro, on by default.
2015-02-17 21:06:23 -06:00
Glenn Randers-Pehrson
43d90b1610
[libpng16] Bump version to 1.6.17beta04
2015-02-17 10:52:33 -06:00
Glenn Randers-Pehrson
de23a49231
[libpng16] Imported from libpng-1.6.17beta03.tar
2015-02-17 10:52:21 -06:00
Glenn Randers-Pehrson
4b65a89cf4
[libpng16] Eliminated PNG_SAFE_LIMITS macro and restored the 1-million-column
...
and 1-million-row default limits in pnglibconf.dfa, that can be reset
by the user at build time or run time. This provides a more robust
defense against DOS and as-yet undiscovered overflows.
Display user limits in the output from pngtest.
2015-02-16 22:52:07 -06:00
Glenn Randers-Pehrson
471b38aa00
[libpng16] Bump version to 1.6.17beta03
2015-02-07 09:16:17 -06:00
Glenn Randers-Pehrson
b6c9ac6304
[libpng16] Imported from libpng-1.6.17beta02.tar
2015-02-07 09:07:09 -06:00
Glenn Randers-Pehrson
8cd78da8b3
[libpng16] Do not build png_product2() when it is unused.
...
Work around more Coverity-scan dead-code warnings.
2015-02-07 09:03:30 -06:00
Glenn Randers-Pehrson
8f0e2729dd
[libpng16] Improved comments on some #ifdef lines.
2015-02-03 19:10:03 -06:00
Glenn Randers-Pehrson
c73d6219f2
[libpng16] Bump version to 1.6.17beta02
2015-01-28 19:20:51 -06:00
Glenn Randers-Pehrson
6ef579df50
[libpng16] Imported from libpng-1.6.17beta01.tar
2015-01-28 19:15:16 -06:00
Glenn Randers-Pehrson
bd76965879
[libpng16] Added #ifndef __COVERITY__ where needed in png.c, pngrutil.c and
...
pngset.c to avoid warnings about dead code.
2015-01-27 06:53:56 -06:00
Glenn Randers-Pehrson
070a616b82
[master] Imported from libpng-1.6.16.tar
2015-01-15 12:47:40 -05:00
Glenn Randers-Pehrson
7a015b92b2
[libpng16] Update "last changed" comment in pngset.c
2015-01-13 09:41:25 -06:00
Glenn Randers-Pehrson
2f56fe4071
[libpng16] Made the check for out-of-range values in png_set_tRNS() detect
...
values that are exactly 2^bit_depth, and work on 16-bit platforms.
2015-01-13 09:25:48 -06:00
Glenn Randers-Pehrson
9d6cab3b21
[libpng16] Updated recent CVE numbers in CHANGES file.
2015-01-10 19:18:17 -06:00
Glenn Randers-Pehrson
04affde6a1
[libpng16] Happy 2015, continued.
2014-12-31 19:03:08 -06:00
Glenn Randers-Pehrson
018b4fccb9
[libpng16] Happy New Year! Update copyright year.
2014-12-31 18:45:23 -06:00
Glenn Randers-Pehrson
bba3aa9533
[libpng16] Update "last changed" info in pngrtran.c
2014-12-29 16:36:50 -06:00
John Bowler
b6788ccaff
[libpng16] Implement previously untested libpng transforms in pngvalid.c
2014-12-29 16:31:58 -06:00
John Bowler
cde8cd6b30
[libpng16] Fixed byte order in 2-byte filler, in png_do_read_filler().
2014-12-29 16:24:33 -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
6b5abbe58e
[libpng16] Corrected the width limit calculation in png_check_IHDR().
2014-12-23 14:33:02 -06:00
Glenn Randers-Pehrson
66c1ec5a26
[libpng16] Removed duplicate PNG_SAFE_LIMITS_SUPPORTED handling from pngconf.h
2014-12-23 14:18:36 -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
10569a452f
[libpng16] Imported from libpng-1.6.16rc03.tar
2014-12-21 17:12:39 -06:00
John Bowler
dc294204b6
[libpng16] Fixed an overflow in png_combine_row with very wide interlaced
...
images.
2014-12-21 17:11:33 -06:00
Glenn Randers-Pehrson
06ee38423b
[libpng16] Imported from libpng-1.6.16rc02.tar
2014-12-21 13:54:45 -06:00
Glenn Randers-Pehrson
6d8c88177a
[libpng16] Imported from libpng-1.6.16rc01.tar
2014-12-21 09:18:15 -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
0659cddd21
[libpng16] Bump version to 1.6.16beta03
2014-12-14 19:42:05 -06:00
Glenn Randers-Pehrson
66d846b0cc
[libpng16] Imported from libpng-1.6.16beta02.tar
2014-12-14 19:24:00 -06:00
John Bowler
d040886dc4
[libpng16] Revised handling of scripts/*.dfn; renamed them to scripts/*.c
2014-12-14 19:17:56 -06:00
Glenn Randers-Pehrson
91f9e0370d
[libpng16] Bump version to 1.6.16beta02
2014-12-14 12:43:12 -06:00
Glenn Randers-Pehrson
86a7eef997
[libpng16] Imported from libpng-1.6.16beta01.tar
2014-12-14 12:38:35 -06:00
Bob Friesenhahn
530eec311d
[libpng16] Revised Makefile.am and scripts/symbols.dfn to work with MinGW/MSYS
2014-12-14 12:37:12 -06:00
Glenn Randers-Pehrson
7c5d037032
[libpng16] Update arm/*.c to libpng coding style.
2014-11-29 17:04:35 -06:00
Glenn Randers-Pehrson
ee16fc4a6f
[libpng16] Added ".align 2" to arm/filter_neon.S to support old GAS assemblers
...
that don't do alignment correctly.
2014-11-29 16:27:27 -06:00
Glenn Randers-Pehrson
2d24cbdd98
[libpng16] Bump version to 1.6.16beta01
2014-11-21 08:25:32 -06:00
Glenn Randers-Pehrson
da7a1e79af
[master] Imported from libpng-1.6.15.tar
2014-11-20 10:23:30 -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
aebb7585c9
[libpng16] Imported from libpng-1.6.15rc03.tar
2014-11-16 20:04:53 -06:00
Cosmin Truta
5b9ac20297
[libpng16] Added "-D_CRT_SECURE_NO_WARNINGS" to CFLAGS in
...
scripts/makefile.vcwin32.
Removed the obsolete $ARCH variable from scripts/makefile.darwin.
2014-11-16 19:37:42 -06:00
Glenn Randers-Pehrson
9c05216461
[libpng16] Fix typos in ANNOUNCE and CHANGES
2014-11-14 17:59:40 -06:00
Glenn Randers-Pehrson
d4965b4014
[libpng16] Imported from libpng-1.6.15rc02.tar
2014-11-14 09:51:59 -06:00
Cosmin Truta
b8eb945946
[libpng16] The macros passed in the command line to Borland make were ignored if
...
similarly-named macros were already defined in makefiles. This behavior
is different from POSIX make and other make programs. Surround the
macro definitions with ifndef guards (Cosmin).
2014-11-14 09:47:54 -06:00
Glenn Randers-Pehrson
6df21524cd
[libpng16] Imported from libpng-1.6.15rc01.tar
2014-11-13 06:47:08 -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
05e11008c0
[libpng16] More "#endif" housecleaning, in *.h
2014-11-07 07:41:16 -06:00
Glenn Randers-Pehrson
40656e9855
[libpng16] Bump version to 1.6.15beta08
2014-11-07 06:45:39 -06:00
Glenn Randers-Pehrson
7cee075a32
[libpng16] Imported from libpng-1.6.15beta07.tar
2014-11-07 06:40:30 -06:00
Glenn Randers-Pehrson
985dc00f1f
[libpng16] Fix typo in example.c
2014-11-06 23:17:35 -06:00
Glenn Randers-Pehrson
cda68df8c1
[libpng16] Changed "#endif /* PNG_FEATURE_SUPPORTED */" to "#endif /* FEATURE */"
2014-11-06 22:11:39 -06:00
Glenn Randers-Pehrson
70cb8f9a7e
[libpng16] Removed #ifdef PNG_16BIT_SUPPORTED/#endif around png_product2(); it is
...
needed by png_reciprocal2().
Added #ifdef PNG_16BIT_SUPPORTED/#endif around png_log16bit() and
png_do_swap().
2014-11-06 20:58:33 -06:00
Glenn Randers-Pehrson
674c3e5816
[libpng16] Bump version to 1.6.15beta07
2014-11-06 07:37:32 -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
Glenn Randers-Pehrson
8e7c35fc81
[libpng16] Bump version to 1.6.15beta06
2014-11-05 19:08:08 -06:00
Glenn Randers-Pehrson
234fe626af
[libpng16] Imported from libpng-1.6.15beta05.tar
2014-11-05 19:07:58 -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
John Bowler
c9720568d0
[libpng16] Fixed GCC unsigned int->float warnings. Various versions of GCC
...
seem to generate warnings when an unsigned value is implicitly
converted to double. This is probably a GCC bug but this change
avoids the issue by explicitly converting to (int) where safe.
2014-11-05 17:06:27 -06:00
Glenn Randers-Pehrson
5be76ae252
[libpng16] use PNG_LIBPNG_VER_STRING[i] in png_user_version_check()
2014-11-05 15:02:45 -06:00
Glenn Randers-Pehrson
a2fe24d186
[libpng16] Simplified and future-proofed png_user_version_check().
2014-11-05 12:00:32 -06:00
Glenn Randers-Pehrson
97dd654ba4
[libpng16] Avoid out-of-bounds memory access in png_user_version_check().
2014-11-05 09:22:19 -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
5efb1327df
[libpng16] Bump version to 1.6.15beta05
2014-11-04 07:08:37 -06:00
Glenn Randers-Pehrson
b5113f4e70
[libpng16] Imported from libpng-1.6.15beta04.tar
2014-11-04 07:08:23 -06:00
John Bowler
445475a166
[libpng16] Removed new PNG_USE_ARM_NEON configuration flag and made a one-line
...
revision to configure.ac to support ARM on aarch64 instead (John Bowler).
2014-11-03 19:44:39 -06:00
Glenn Randers-Pehrson
2eb712e519
[libpng16] Bump version to 1.6.15beta04
2014-11-03 09:33:51 -06:00
Glenn Randers-Pehrson
736c8e8773
[libpng16] Imported from libpng-1.6.15beta03.tar
2014-11-03 09:33:44 -06:00
Glenn Randers-Pehrson
3278452323
[libpng16] Added PNG_USE_ARM_NEON configuration flag (Marcin Juszkiewicz).
2014-11-03 08:24:34 -06:00
Glenn Randers-Pehrson
bd3818eb1b
[libpng16] Bump version to 1.6.15beta03
2014-11-01 18:59:15 -05:00
Glenn Randers-Pehrson
b75c3cc415
[libpng16] Imported from libpng-1.6.15beta02.tar
2014-11-01 18:59:08 -05:00
Glenn Randers-Pehrson
b963feeec6
[libpng16] More cosmetic changes
2014-11-01 13:18:36 -05:00
Glenn Randers-Pehrson
f2d4167fee
[libpng16] Added a pair of parentheses suggested by clang
2014-10-31 21:17:11 -05:00
Glenn Randers-Pehrson
5d713fe123
[libpng16] Changed remaining "if (!x)" to "if (x == 0)" and "if (x)" to
...
"if (x !== 0)"
2014-10-31 20:58:40 -05:00
Glenn Randers-Pehrson
6b9a20e7f9
[libpng16] Bump version to 1.6.15beta02
2014-10-29 09:13:06 -05:00
Glenn Randers-Pehrson
11d4a2a451
[libpng16] Imported from libpng-1.6.15beta01.tar
2014-10-29 09:08:46 -05:00
Glenn Randers-Pehrson
c6a8cb7d10
[libpng16] Added missing "ptr = NULL" after some instances of png_free().
2014-10-29 08:27:34 -05:00
Glenn Randers-Pehrson
7f6826368a
[libpng16] Use %p instead of %x to print pointers in pngtest debug output
2014-10-28 10:22:37 -05:00
Glenn Randers-Pehrson
bf95fad5f5
[libpng16] Simplified png_free_data() in png.c
2014-10-26 21:09:03 -05:00
Glenn Randers-Pehrson
ebba0746bc
[libpng16] Changed "if (!x)" to "if (x == 0)" and "if (x)" to "if (x !== 0)"
2014-10-25 12:22:39 -05:00
Glenn Randers-Pehrson
67152e75e6
[libpng16] Revised INSTALL document.
2014-10-24 22:29:51 -05:00
Glenn Randers-Pehrson
4aa3f403f1
[libpng16] Updated INSTALL file.
2014-10-24 21:45:38 -05:00
Glenn Randers-Pehrson
56e9307d8f
[libpng16] Bump version to 1.6.15beta01
2014-10-22 21:02:27 -05:00
Glenn Randers-Pehrson
eed640dbe8
[master] Imported from libpng-1.6.14.tar
2014-10-22 19:33:27 -05:00
Glenn Randers-Pehrson
edb772fd6d
[libpng16] Imported from libpng-1.6.14.tar
2014-10-22 19:32:52 -05:00
Glenn Randers-Pehrson
e557fd7c44
[libpng16] Minor editing of README
2014-10-17 09:31:48 -05:00
Glenn Randers-Pehrson
8ba743d8d2
[libpng16] Bump version to 1.6.14rc03
2014-10-17 09:15:50 -05:00
Glenn Randers-Pehrson
279205664f
[libpng16] Imported from libpng-1.6.14rc02.tar
2014-10-17 09:09:54 -05:00
Glenn Randers-Pehrson
f7a7bb0384
[libpng16] Changed png_convert_to_rfc_1123() to png_convert_to_rfc_1123_buffer()
...
in the manual, to reflect the change made in libpng-1.6.0.
Updated README file to reflect that direct access to the info struct and
png struct are not permitted since libpng-1.5.0.
2014-10-17 09:06:25 -05:00
Glenn Randers-Pehrson
3922544139
[libpng16] Bump version to 1.6.14rc01
2014-10-15 08:55:59 -05:00
Glenn Randers-Pehrson
bea9784db0
[libpng16] Imported from libpng-1.6.14rc01.tar
2014-10-15 08:36:22 -05:00
Glenn Randers-Pehrson
6cae24c265
[libpng16] Fixed some typos in comments.
2014-10-13 11:11:21 -05:00
Glenn Randers-Pehrson
06ec570881
[libpng16] Bump version to 1.6.14beta08
2014-10-07 18:57:36 -05:00
Glenn Randers-Pehrson
25d240dc6e
[libpng16] Imported from libpng-1.6.14beta07.tar
2014-10-07 18:57:21 -05:00
Glenn Randers-Pehrson
470d64c2dd
[libpng16] Also don't mark text as written in the end_ptr until written.
2014-10-05 18:08:39 -05:00
Glenn Randers-Pehrson
d7eff5d864
[libpng16] Removed "option WRITE_COMPRESSED_TEXT enables WRITE_TEXT"
...
from pnglibconf.dfa
2014-10-05 13:46:58 -05:00
Glenn Randers-Pehrson
a11cd84160
[libpng16] Only mark text chunks as written after successfully writing them.
2014-10-05 13:45:38 -05:00
Glenn Randers-Pehrson
f56c00f050
[libpng16] Bump version to 1.6.14beta07
2014-10-05 07:48:53 -05:00
Glenn Randers-Pehrson
f1a22bf9b3
[libpng16] Imported from libpng-1.6.14beta06.tar
2014-10-05 07:48:44 -05:00
Glenn Randers-Pehrson
a4fa1c57f4
[libpng16] Added "chunk iTXt enables TEXT" and "chunk zTXt enables TEXT"
...
to pnglibconf.dfa.
2014-10-04 12:38:47 -05:00
Glenn Randers-Pehrson
27f0332cae
[libpng16] Replaced repeated code with PNG_PUSH_SAVE_BUFFER_IF_FULL
...
in pngpread.c
2014-10-04 10:28:58 -05:00
Glenn Randers-Pehrson
9127138a30
[libpng16] Fix typos in comments in pngset.c and pngtrans.c
2014-10-03 20:23:31 -05:00
Glenn Randers-Pehrson
ca9c3a601b
[libpng16] Edited comments in png.c
2014-10-03 18:08:34 -05:00
Glenn Randers-Pehrson
91e3a7d735
[libpng16] Edited some comments in pngwutil.c
2014-10-03 17:33:14 -05:00
Glenn Randers-Pehrson
cb4823d91f
[libpng16] Conditionally compile some code in png_deflate_claim(), when
...
PNG_WARNINGS_SUPPORTED and PNG_ERROR_TEXT_SUPPORTED are disabled.
2014-10-03 17:14:39 -05:00
Glenn Randers-Pehrson
d752225d05
[libpng16] Removed "text_len" parameter from private function png_write_zTXt()
...
since it is unused.
2014-10-03 17:11:50 -05:00
Glenn Randers-Pehrson
f1eacc08e6
[libpng16] Bump version to 1.6.14beta06
2014-10-01 10:46:37 -05:00
Glenn Randers-Pehrson
6147fae405
[libpng16] Imported from libpng-1.6.14beta05.tar
2014-10-01 10:46:29 -05:00
Glenn Randers-Pehrson
c5dc456afd
[libpng16] Redid recent changes to pnglibconf.h that were reverted.
2014-10-01 10:29:26 -05:00
Glenn Randers-Pehrson
f633a4eb9c
[libpng16] Added "option READ_iCCP enables READ_COMPRESSED_TEXT" to
...
pnglibconf.dfa
2014-10-01 10:03:57 -05:00
Glenn Randers-Pehrson
6c48f77bba
[libpng16] Merge pnglibconf.dfa with libpng-1.7.0beta37.
2014-09-28 13:43:28 -05:00
Glenn Randers-Pehrson
4c0ded3c4e
[libpng16] Bump version to 1.6.14beta05
2014-09-27 10:39:12 -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
48e6fad71c
[libpng16] Fixed incorrect handling of the iTXt compression flag
...
in pngrutil.c (bug report by Shunsaku Hirata). Bug was introduced
in libpng-1.6.0.
2014-09-27 09:37:50 -05:00
Glenn Randers-Pehrson
1b3a9fd6bf
[libpng16] Avoid defining simplified API macros in png.h when neither the
...
READ nor the WRITE simplified API is supported.
2014-09-20 11:01:20 -05:00
Glenn Randers-Pehrson
b4ef94559d
[libpng16] Bump version to 1.6.14beta04
2014-09-19 07:58:07 -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
77145bf678
[libpng16] Bump version to 1.6.14beta03
2014-09-18 09:56:47 -05:00
Glenn Randers-Pehrson
91685564d1
[libpng16] Imported from libpng-1.6.14beta02.tar
2014-09-18 09:56:39 -05:00
Glenn Randers-Pehrson
44bda93154
[libpng16] Updated INSTALL info about pnglibconf.h
2014-09-18 09:27:29 -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
3fe1616c45
[libpng16] Bump version to 1.6.14beta02
2014-09-14 14:23:40 -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
664bd637b5
[libpng16] Fixed some indentation in pngrutil.c
2014-08-26 19:55:58 -05:00
Glenn Randers-Pehrson
3669467347
[libpng16] Guard usage of png_ptr->options with #ifdef PNG_SET_OPTION_SUPPORTED.
2014-08-22 08:55:50 -05:00
Glenn Randers-Pehrson
bcd3209a42
[libpng16] Update last-changed date
2014-08-21 09:57:23 -05:00
Glenn Randers-Pehrson
17fba0f7d1
[libpng16] Bump version to 1.6.14beta01
2014-08-21 09:16:02 -05:00
Glenn Randers-Pehrson
d55c4f32fc
[master] Imported from libpng-1.6.13.tar
2014-08-21 05:59:56 -05:00
Glenn Randers-Pehrson
259fb7761d
[libpng16] Imported from libpng-1.6.13.tar
2014-08-21 05:57:43 -05:00
Glenn Randers-Pehrson
3ac41798c3
[libpng16] Bump version to 1.6.13rc02
2014-08-13 22:08:10 -05:00
Glenn Randers-Pehrson
26a94ab06f
[libpng16] Imported from libpng-1.6.13rc01.tar
2014-08-13 22:08:01 -05:00
Glenn Randers-Pehrson
83fb26e38d
[libpng16] Bump version to 1.6.13beta05
2014-08-07 20:00:00 -05:00
Glenn Randers-Pehrson
9782cced3a
[libpng16] Imported from libpng-1.6.13beta04.tar
2014-08-07 19:54:10 -05:00
Glenn Randers-Pehrson
ff649a0710
[libpng16] Eliminated use of "$<" when copying $PNGLIBCONF_H_PREBUILT in
...
makefiles. This does not work on some versions of make; bug introduced in
libpng version 1.6.11.
2014-08-07 19:51:35 -05:00
Glenn Randers-Pehrson
389e5cbabf
[libpng16] Removed mention of makefile.elf from scripts/README.txt
2014-08-03 19:53:45 -05:00
Glenn Randers-Pehrson
72e25f9583
[libpng16] Bump version to 1.6.13beta04
2014-08-02 21:32:49 -05:00
Glenn Randers-Pehrson
a243ec06b0
[libpng16] Imported from libpng-1.6.13beta03.tar
2014-08-02 21:28:14 -05:00
Glenn Randers-Pehrson
37c3b082a7
[libpng16] Ensure that CMakeLists.txt makes the target "lib" directory before
...
making symbolic link into it (SourceForge bug report #226 by Rolf Timmermans).
2014-07-30 08:15:26 -05:00
Glenn Randers-Pehrson
5e6931e10a
[libpng16] Removed makefile.elf; it has not worked since libpng-1.5.0beta14.
2014-07-29 07:43:13 -05:00
Glenn Randers-Pehrson
0ece631b37
[libpng16] Bump version to 1.6.13beta03
2014-07-21 17:21:30 -05:00
Glenn Randers-Pehrson
3efbecab92
[libpng16] Imported from libpng-1.6.13beta02.tar
2014-07-21 17:21:21 -05:00
Glenn Randers-Pehrson
ae991771ad
[libpng16] Updated a comment in revised makefiles.
2014-07-21 11:52:27 -05:00
Glenn Randers-Pehrson
071a17f194
[libpng16] Fixed an incorrect separator ("/" should be "\") in
...
scripts/makefile.vcwin32 (bug report from Wolfgang S. Kechel). Bug was
introduced in libpng-1.6.11. Also fixed makefile.bc32, makefile.bor,
makefile.msc, makefile.intel, and makefile.tc3 similarly.
2014-07-21 11:31:50 -05:00
Glenn Randers-Pehrson
398b00734c
[libpng16] Bump version to 1.6.13beta02
2014-07-04 12:32:40 -05:00
Glenn Randers-Pehrson
8661906769
[libpng16] Fix typo in INSTALL.
2014-07-04 12:31:43 -05:00
Glenn Randers-Pehrson
91319c67d5
[libpng16] Imported from libpng-1.6.13beta01.tar
2014-07-04 12:13:59 -05:00
John Bowler
c45f1223cb
[libpng16] Fixed misplaced brackets in earlier patch to pngpriv.h
2014-06-24 19:42:03 -05:00
John Bowler
910aaadddb
[libpng16] Fixed clang no-warning builds: png_digit was defined but never used.
2014-06-24 19:38:41 -05:00
Glenn Randers-Pehrson
fc932f7b03
[libpng16] Changed "if defined(__ARM_NEON__)" to
...
"if defined(__ARM_NEON__) || defined(__ARM_NEON)" (James Wu).
2014-06-24 13:07:39 -05:00
John Bowler
83ae6fc266
[libpng16] Added "PNG_SET_OPTION" requirement for sRGB chunk support to
...
pnglibconf.dfa, needed for write-only support (John Bowler).
2014-06-22 11:23:07 -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
Glenn Randers-Pehrson
f36a94207c
[libpng16] Quieted -Wsign-compare and -Wclobber compiler warnings in
...
contrib/pngminus/*.c
2014-06-13 11:06:33 -05:00
Glenn Randers-Pehrson
212fd5745d
[libpng16] Bump version to 1.6.13beta01
2014-06-11 21:13:33 -05:00
Glenn Randers-Pehrson
238e7646a8
[master] Imported from libpng-1.6.12.tar
2014-06-11 20:42:07 -05:00
Glenn Randers-Pehrson
e429c66cea
[libpng16] Imported from libpng-1.6.12.tar
2014-06-11 20:41:51 -05:00
Glenn Randers-Pehrson
1a4c0144da
[libpng16] Bump version to 1.6.12rc04
2014-06-08 12:10:04 -05:00
Glenn Randers-Pehrson
db1a0e763f
[libpng16] Imported from libpng-1.6.12rc03.tar
2014-06-07 22:46:46 -05:00
Glenn Randers-Pehrson
41694dcaea
[libpng16] Ensure "__has_attribute()" macro exists before trying to use it with
...
old clang compilers (MacPorts Ticket #43939 ).
2014-06-07 22:27:44 -05:00
Glenn Randers-Pehrson
ff3fb08157
[libpng16] Imported from libpng-1.6.12rc02.tar
2014-06-07 14:49:03 -05:00
Glenn Randers-Pehrson
79b7e4e621
[libpng16] Changed file permissions of contrib/tools/intgamma.sh from
...
0644 to 0755 (Cosmin).
2014-06-07 14:47:02 -05:00
Glenn Randers-Pehrson
b41a37d403
[libpng16] Imported from libpng-1.6.12rc01.tar
2014-06-06 18:31:35 -05:00
Glenn Randers-Pehrson
b7afba6a0b
[libpng16] Relocated new code from 1.6.11beta06 in png.c to a point after the
...
declarations (Max Stepin).
2014-06-06 12:07:07 -05:00
Glenn Randers-Pehrson
da7b692ce0
[libpng16] Bump version to 1.6.12beta01
2014-06-06 11:57:30 -05:00
Glenn Randers-Pehrson
d21eae44e7
[master] Imported from libpng-1.6.11.tar
2014-06-05 10:01:04 -05:00
Glenn Randers-Pehrson
c4e0f3de64
[libpng16] Imported from libpng-1.6.11.tar
2014-06-05 10:00:45 -05:00
Glenn Randers-Pehrson
ee6050ecb4
[libpng16] Imported from libpng-1.6.11rc02.tar
2014-06-03 22:02:34 -05:00
Glenn Randers-Pehrson
165f072144
[libpng16] Imported from libpng-1.6.11rc01.tar
2014-05-27 11:15:53 -05:00
Glenn Randers-Pehrson
7acfe50855
[libpng16] Bump version to 1.6.11beta07
2014-05-19 21:20:05 -05:00
Glenn Randers-Pehrson
5808e7b8c8
[libpng16] Imported from libpng-1.6.11beta06.tar
2014-05-19 21:11:36 -05:00
Glenn Randers-Pehrson
f85092bc7b
[libpng16] Fix cut-and-paste error in scripts/symbols.dfn, from 1.6.11beta02.
2014-05-19 21:08:49 -05:00
Glenn Randers-Pehrson
d1c5f48c05
[libpng16] Minor update to documentation and CHANGES/ANNOUNCE files.
2014-05-09 21:06:27 -05:00
Glenn Randers-Pehrson
e95ce2c517
[libpng16] Added PNG_SKIP_sRGB_CHECK_PROFILE choice for png_set_option().
2014-05-07 12:07:12 -05:00
Glenn Randers-Pehrson
0d5ac5d809
[libpng16] Bump version to 1.6.11beta06
2014-04-26 06:41:54 -05:00
Glenn Randers-Pehrson
f30aa7ed92
[libpng16] Imported from libpng-1.6.11beta05.tar
2014-04-26 06:36:40 -05:00
Glenn Randers-Pehrson
ab9736a647
[libpng16] Allow writing ICC V2 profiles that lack padding (Kai-Uwe Behrmann).
2014-04-25 06:14:50 -05:00
Glenn Randers-Pehrson
5a1d1b5369
[libpng16] Do not reject ICC V2 profiles that lack padding (Kai-Uwe Behrmann).
2014-04-24 15:54:28 -05:00
Glenn Randers-Pehrson
d5201df56b
[libpng16] Bump version to 1.6.11beta05
2014-04-20 20:23:13 -05:00
Glenn Randers-Pehrson
be19c07dd9
[libpng16] Imported from libpng-1.6.11beta04.tar
2014-04-20 20:15:26 -05:00
Glenn Randers-Pehrson
0ace9f589f
[libpng16] PNG_sRGB_PROFILE_CHECKING = (-1) now means no sRGB profile checking.
2014-04-20 20:06:14 -05:00
Glenn Randers-Pehrson
72855fb11e
[libpng16] Made progressive reading of interlaced images consistent with the
...
behavior of the sequential reader and consistent with the manual. The
row_callback now receives the proper pass number and unexpanded rows,
when png_combine_row is not used or not built, by moving some code
out of the PNG_READ_INTERLACING_SUPPORTED blocks.
2014-04-13 21:27:25 -05:00
Glenn Randers-Pehrson
9f1aa186e6
[libpng16] Added two CVE numbers to the January 2013 entry in the CHANGES file.
2014-04-10 16:46:35 -05:00
Glenn Randers-Pehrson
7a0ca967b4
[libpng16] Bump version to 1.6.11beta04
2014-04-06 14:18:13 -05:00
Glenn Randers-Pehrson
478062d9b5
[libpng16] Imported from libpng-1.6.11beta03.tar
2014-04-06 14:17:58 -05:00
Glenn Randers-Pehrson
86b8016ee9
[libpng16] Fix some permissions
2014-04-06 12:01:51 -05:00
Glenn Randers-Pehrson
f169806b7b
[libpng16] Bump version to 1.6.11beta03
2014-04-06 10:20:44 -05:00
Glenn Randers-Pehrson
c4b3718856
[libpng16] Imported from libpng-1.6.11beta02.tar
2014-04-06 09:07:56 -05:00
Glenn Randers-Pehrson
fa26eb1678
[libpng16] Fixed a typo in pngrutil.c, introduced in libpng-1.5.6, that
...
interferes with "blocky" expansion of sub-8-bit interlaced PNG files.
2014-04-06 09:06:37 -05:00
Glenn Randers-Pehrson
d17313e075
[libpng16] Bump version to 1.6.11beta03
2014-03-25 17:10:53 -05:00
Glenn Randers-Pehrson
6b570f11e1
[libpng16] Imported from libpng-1.6.11beta02.tar
2014-03-25 17:10:44 -05:00
Glenn Randers-Pehrson
804c76b47b
[libpng16] Fixed syntax of Copy command in makefile.amiga
2014-03-22 18:44:24 -05:00
Glenn Randers-Pehrson
247d262d3a
[libpng16] Complete the update of scripts/makefile.ne12bsd
2014-03-22 13:40:25 -05:00
Cosmin Truta
9ab7b4ca58
[libpng16] Allow an easy replacement of the default pre-built configuration
...
header with a custom header, via the make PNGLIBCONF_H_PREBUILT
macro.
2014-03-22 13:13:11 -05:00
Cosmin Truta
ae6eaa89e5
[libpng16] Don't warn about invalid dimensions exceeding user limits.
2014-03-22 09:39:33 -05:00
Cosmin Truta
82200daec2
[libpng16] $(CP) is now used alongside $(RM_F). Also, use 'copy' instead
...
of 'cp' where applicable, and applied other minor makefile changes.
2014-03-22 09:29:59 -05:00
Cosmin Truta
6572c7dab5
[libpng16] Silence 'unused parameter' build warnings (Cosmin).
2014-03-22 09:20:53 -05:00
Glenn Randers-Pehrson
372cad05a9
[libpng16] Committed wrong version of INSTALL.
2014-03-21 13:26:43 -05:00
Glenn Randers-Pehrson
010222c55d
[libpng16] Mention scripts/pnglibconf.h.prebuilt in INSTALL.
2014-03-21 12:53:06 -05:00
Glenn Randers-Pehrson
d74d82137b
[libpng16] Cosmetic revision of previous change
2014-03-17 15:35:28 -05:00
Glenn Randers-Pehrson
a518abd582
[libpng16] Removed #if/#else/#endif from inside two pow() calls in pngvalid.c
...
because they were handled improperly by Portland Group's PGI-14.1 - PGI-14.3
when using its "__builtin_pow()" function.
2014-03-17 15:29:25 -05:00
Glenn Randers-Pehrson
23646318e4
[libpng16] Bump version to 1.6.11beta02
2014-03-17 13:21:33 -05:00
Glenn Randers-Pehrson
149eea29b6
[libpng16] Imported from libpng-1.6.11beta01.tar
2014-03-17 13:19:41 -05:00
Glenn Randers-Pehrson
2ca2a0b222
[libpng16] Move more parts of INSTALL to libpng-manual.txt and vice versa.
2014-03-16 21:47:52 -05:00
Glenn Randers-Pehrson
7017c4078d
[libpng16] Revised INSTALL and libpng-manual.txt
2014-03-16 20:29:11 -05:00
Glenn Randers-Pehrson
c2a15d01af
[libpng16] Moved part of INSTALL back to manual; added table of contents.
2014-03-16 19:53:29 -05:00
Glenn Randers-Pehrson
0464b436b6
[libpng16] Added information about configuring for multiprocessing to INSTALL.
2014-03-16 19:31:09 -05:00
Glenn Randers-Pehrson
2f5fb84cc4
[libpng16] Updated the manual and moved part of it to the INSTALL file.
2014-03-16 15:30:35 -05:00
Glenn Randers-Pehrson
33e2bd910f
[libpng16] Changed ZlibSrcDir from 1.2.5 to 1.2.8 in projects/vstudio.
2014-03-09 18:37:06 -05:00
Glenn Randers-Pehrson
05670156f3
[libpng16] Use "if (value != 0)" instead of "if (value)" consistently.
2014-03-08 12:39:52 -06:00
Glenn Randers-Pehrson
b65b3412b1
[libpng16] Remove CALLOC from pnglibconf.dfa and pnglibconf.h.prebuilt
2014-03-07 12:19:41 -06:00
Glenn Randers-Pehrson
71d23c4d6e
[libpng16] Bump version to 1.6.11beta01
2014-03-06 21:09:24 -06:00
Glenn Randers-Pehrson
1cc02f0395
[master] Imported from libpng-1.6.10.tar
2014-03-06 13:15:45 -06:00
Glenn Randers-Pehrson
4df37bfa4f
[libpng16] Imported from libpng-1.6.10.tar
2014-03-06 12:49:17 -06:00
Glenn Randers-Pehrson
c978642c48
[libng16] Mention prototype format in the documentation (libpng style guide)
2014-03-05 17:14:16 -06:00
Glenn Randers-Pehrson
24afd07ab9
[libpng16] Changed blank to newline in three function declarations.
2014-03-05 16:55:19 -06:00
Glenn Randers-Pehrson
c540d8bed7
[libpng16] Bump version to 1.6.10rc04
2014-03-03 20:26:56 -06:00
Glenn Randers-Pehrson
3e5d04df37
[libpng16] Imported from libpng-1.6.10rc03.tar
2014-03-03 20:26:46 -06:00
Glenn Randers-Pehrson
6e8ba0fab6
[libpng16] Un-deprecated png_data_freer().
2014-03-03 20:17:01 -06:00
Glenn Randers-Pehrson
b3a765066f
[libpng16] Updated CHANGES and ANNOUNCE to libpng-1.6.10rc02.
2014-02-27 22:48:08 -06:00
Glenn Randers-Pehrson
4c7bb07857
[libpng16] Imported from libpng-1.6.10rc02.tar
2014-02-27 22:24:47 -06:00
Glenn Randers-Pehrson
b8f433417f
[libpng16] Removed unreachable return statement after png_chunk_error()
...
in pngrutil.c
2014-02-27 12:12:54 -06:00
Glenn Randers-Pehrson
53c60fa94b
[libpng16] Bump version to 1.6.10rc01
2014-02-27 08:37:51 -06:00
Glenn Randers-Pehrson
ab56b743c1
[libpng16] Imported from libpng-1.6.10rc01.tar
2014-02-27 08:06:45 -06:00
Glenn Randers-Pehrson
3455238a4e
[libpng16] Fixed typos in the manual and in scripts/pnglibconf.dfa (CFLAGS
...
-> CPPFLAGS and PNG_USR_CONFIG -> PNG_USER_CONFIG).
2014-02-26 22:08:58 -06:00
Glenn Randers-Pehrson
9f0ac8548b
[libpng16] Mention CERT VU#684412 and CVE-2014-0333 in CHANGES and ANNOUNCE.
2014-02-25 12:00:58 -06:00
Glenn Randers-Pehrson
2fff8078dc
[libpng16] Bump version to 1.6.10beta04
2014-02-24 21:02:54 -06:00
Glenn Randers-Pehrson
da7027b6b0
[libpng16] Imported from libpng-1.6.10beta03.tar
2014-02-24 19:11:18 -06:00
Glenn Randers-Pehrson
9e06534572
[libpng16] Removed some commentary from png.h that is now in the manual.
2014-02-24 19:07:04 -06:00
Glenn Randers-Pehrson
be040c98f8
[libpng16] Moved some documentation from png.h to libpng.3 and libpng-manual.txt
...
and minor editing of contrib/arm-neon/README and contrib/examples/*.c
2014-02-24 18:48:03 -06:00
Glenn Randers-Pehrson
bd792c020f
[libpng16] Document how to use a different crc_action while reading chunks
...
after IDAT with the sequential reader.
2014-02-23 13:43:20 -06:00
Glenn Randers-Pehrson
079a724833
[libpng16] Fixed some nits in contrib/arm-neon/README and comments in
...
contrib/examples/*.c
2014-02-23 10:59:27 -06:00
Glenn Randers-Pehrson
1301356273
[libpng16] Bump version to 1.6.10beta03
2014-02-22 23:20:23 -06:00
Glenn Randers-Pehrson
78c28fea51
[libpng16] Imported from libpng-1.6.10beta02.tar
2014-02-22 23:12:02 -06:00
Glenn Randers-Pehrson
45625eceb4
[libpng16] 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.
Simplified code in pngrutil.c that decides whether to warn about an
incorrect ancillary PLTE chunk.
2014-02-22 23:09:27 -06:00
Glenn Randers-Pehrson
e3ae583514
[libpng16] Don't recognize known sRGB profiles as sRGB if they have been hacked.
2014-02-22 22:22:15 -06:00
Glenn Randers-Pehrson
eb657ae68f
[libpng16] 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-22 21:59:40 -06:00
Glenn Randers-Pehrson
f5df058bee
[libpng16] Use a user warning handler in contrib/gregbook/readpng2.c
...
instead of the default.
2014-02-22 07:15:48 -06:00
Glenn Randers-Pehrson
dd6679dce8
[libpng16] Check for __has_extension before using it in pngconf.h, to
...
support older Clang versions (Jeremy Sequoia).
2014-02-20 07:06:59 -06:00
Glenn Randers-Pehrson
9c5a1baea5
[libpng16] 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 09:12:52 -06:00
John Bowler
37b7299b60
[libpng16] Deleted a now-redundant #define png_error from pngvalid.c
2014-02-16 22:55:41 -06:00
John Bowler
0b61d10ad4
[libpng16] Fixed /proc/cpuinfo ARM NEON __linux__ parsing
2014-02-16 14:07:49 -06:00
John Bowler
dba54b8888
[libpng16] 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 14:00:06 -06:00
Glenn Randers-Pehrson
38ef9c9779
[libpng16] Removed unneeded "#define PNG_NO_WARNINGS" from contrib/pngminim/*
2014-02-16 13:56:10 -06:00
Glenn Randers-Pehrson
103b04170d
[libpng16] 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:34:41 -06:00
Glenn Randers-Pehrson
e40e37018d
[libpng16] Bump version to 1.6.10beta02
2014-02-09 13:14:20 -06:00
Glenn Randers-Pehrson
9eec159ab0
[libpng16] Imported from libpng-1.6.10beta01.tar
2014-02-09 13:00:23 -06:00
John Bowler
414d7b5f7d
[libpng16] Backport recent changes from libpng-1.7.0beta30 and beta31.
2014-02-06 11:39:25 -06:00
Glenn Randers-Pehrson
685dff485e
[libpng16] Update ANNOUNCE file about new location of gpg signatures.
2014-02-06 11:01:55 -06:00
Glenn Randers-Pehrson
8a227ff25a
[libpng16] Bump version to 1.6.10beta01
2014-02-05 23:51:39 -06:00
Glenn Randers-Pehrson
a710317d2f
[master] Imported from libpng-1.6.9.tar
2014-02-05 22:34:07 -06:00
Glenn Randers-Pehrson
3e753eb8b2
[libpng16] Imported from libpng-1.6.9.tar
2014-02-05 22:33:56 -06:00
Glenn Randers-Pehrson
759c903686
[libpng16] Update documentation about sCAL support.
2014-02-01 20:11:48 -06:00
Glenn Randers-Pehrson
8c12078e95
[libpng16] Imported from libpng-1.6.9rc02.tar
2014-01-30 15:04:10 -06:00
Glenn Randers-Pehrson
b91528db20
[libpng16] Quiet an uninitialized memory warning from VC2013 in png_get_png().
2014-01-30 15:02:18 -06:00
Glenn Randers-Pehrson
2f1dede991
[libpng16] Imported from libpng-1.6.9rc01.tar
2014-01-28 11:35:50 -06:00
Glenn Randers-Pehrson
5af0307f11
[libpng16] Imported from libpng-1.6.9beta04.tar
2014-01-20 13:14:40 -06:00
Glenn Randers-Pehrson
efaaad7447
[libpng16] Correct a new comment in pngconf.h
2014-01-13 21:43:51 -06:00
Glenn Randers-Pehrson
bda94b1005
[libpng16] Added clang attribute support (Cosmin).
2014-01-13 21:16:17 -06:00
Glenn Randers-Pehrson
4250328102
[libpng16] Updated scripts/makefile.* to use CPPFLAGS (Cosmin)
2014-01-12 10:49:40 -06:00
Glenn Randers-Pehrson
bb6e0a2db3
[libpng16] Bump version to 1.6.9beta04
2014-01-10 10:36:59 -06:00
Glenn Randers-Pehrson
41633d33c4
[libpng16] Imported from libpng-1.6.9beta03.tar
2014-01-10 10:36:46 -06:00
Glenn Randers-Pehrson
88cf760b07
[libpng16] Removed potentially misleading warning from png_check_IHDR().
2014-01-10 06:18:31 -06:00
Glenn Randers-Pehrson
4ea97d8bc7
[libpng16]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:13:31 -06:00
Glenn Randers-Pehrson
bef206b0a8
[libpng16] Only warn about image too wide if warning not already issued.
2014-01-08 11:58:49 -06:00
Glenn Randers-Pehrson
b94db2eb34
[libpng16] Updated warning message in png_check_IHDR()
2014-01-07 11:43:43 -06:00
Glenn Randers-Pehrson
3f7a169c2d
[libpng16] Changed warning message "is too large" to "may be too large"
...
in png_check_IHDR().
2014-01-07 11:22:29 -06:00
Glenn Randers-Pehrson
bc79c250e9
[libpng16] Bump version to 1.6.9beta03
2014-01-01 10:54:18 -06:00
Glenn Randers-Pehrson
3cc9e8ff96
[libpng16] Imported from libpng-1.6.9beta02.tar
2014-01-01 10:18:42 -06:00
Glenn Randers-Pehrson
95a197397f
[libpng16] Updated copyright year in recently-changed files.
2013-12-31 21:10:13 -06:00
John Bowler
d0479d24a0
[libpng16] 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:31:56 -06:00
John Bowler
1fc0171278
[libpng16] Revised pngvalid.c to support libpng 1.5, which does not support the
...
PNG_MAXIMUM_INFLATE_WINDOW option, so #define it out when appropriate in
pngvalid.c
2013-12-29 15:09:28 -06:00
John Bowler
a8472470a4
[libpng16] Merged libpng-1.7.0 changes to make no-interlace configurations work
...
with test programs.
2013-12-29 10:50:51 -06:00
Glenn Randers-Pehrson
88ecac68be
[libpng16] Merged pngrio.c, pngtrans.c, pngwio.c, and pngerror.c
...
with libpng-1.7.0
2013-12-28 12:52:59 -06:00
Glenn Randers-Pehrson
e51ba2eff4
[libpng16] Removed #error macro from contrib/tools/pngfix.c (Thomas Klausner).
2013-12-27 20:22:24 -06:00
John Bowler
a80e864faa
[libpng16] Merged with pngvalid.c from libpng-1.7 changes to create a single
...
pngvalid.c
2013-12-27 08:43:55 -06:00
John Bowler
1d3c990425
[libpng16] Added checks for libpng 1.5 to pngvalid.c. This supports the use of
...
this version of pngvalid in libpng 1.5
2013-12-27 08:14:06 -06:00
Glenn Randers-Pehrson
79f0ba499f
[libpng16] Fixed typo in CHANGES and ANNOUNCE (autoconf version 2.69, not 2.59)
2013-12-26 15:00:49 -06:00
Glenn Randers-Pehrson
74e84d0f7d
[libpng16] Removed config-generated "compile" file
2013-12-26 14:44:10 -06:00
Glenn Randers-Pehrson
4568762d28
[libpng16] Bump version to 1.6.9beta02
2013-12-26 11:40:31 -06:00
Glenn Randers-Pehrson
0740c62700
[libpng16] Imported from libpng-1.6.9beta01.tar
2013-12-26 11:27:02 -06:00
Glenn Randers-Pehrson
38f49403bd
[libpng16] Update "last changed" dates in recently-patched files.
2013-12-22 15:04:00 -06:00
John Bowler
8f1150eb75
[libpng16] Made transform implementation functions static. This makes the
...
internal functions called by png_do_{read|write}_transformations static. On an
x86-64 DLL build (Gentoo Linux) this reduces the size of the text
segment of the DLL by 1208 bytes, about 0.6%. It also simplifies
maintenance by removing the declarations from pngpriv.h and allowing
easier changes to the internal interfaces.
2013-12-19 15:33:49 -06:00
John Bowler
c10930a4fc
[libpng16] Bookkeeping: Moved functions around (no changes). Moved transform
...
function definitions before the place where they are called so that
they can be masde static. Move the intrapixel functions and the
grayscale palette builder out of the png?tran.c files. The latter
isn't a transform function and is no longer used internally, and the
former MNG specific functions are better placed in pngread/pngwrite.c
2013-12-19 15:24:06 -06:00
Glenn Randers-Pehrson
bff81bdddc
[libpng16] Bump version to 1.6.9beta01
2013-12-19 15:18:07 -06:00
Glenn Randers-Pehrson
339ef1ec97
[master] Imported from libpng-1.6.8.tar
2013-12-19 09:13:08 -06:00
Glenn Randers-Pehrson
be3977de2c
[libpng16] Imported from libpng-1.6.8.tar
2013-12-19 09:11:01 -06:00
Glenn Randers-Pehrson
67f101e6c9
[libpng16] Imported from libpng-1.6.8rc02.tar
2013-12-14 12:42:36 -06:00
Glenn Randers-Pehrson
b6f0a641cb
[libpng16] Imported from libpng-1.6.8rc01.tar
2013-12-11 23:28:18 -06:00
John Bowler
81dfd007b2
[libpng16] Tidied up pngfix inits and fixed non-write pngtest.
2013-12-01 15:20:15 -06:00
Glenn Randers-Pehrson
1f23775d10
[libpng16] Fixed unused "wrote_question" in non-write pngtest.
2013-12-01 15:05:31 -06:00
Glenn Randers-Pehrson
84092bbf29
[libpng16] Bump version to 1.6.8beta03
2013-11-30 09:12:33 -06:00
Glenn Randers-Pehrson
1658e602c6
[libpng16] Imported from libpng-1.6.8beta02.tar
2013-11-30 09:12:23 -06:00
Glenn Randers-Pehrson
83b132f14d
[libpng16] Changed deprecated png_free_default() to free() in pngtest.c
...
Changed tabs to 3 spaces in png_debug macros and changed '"%s"m'
to '"%s" m' to improve portability among compilers.
2013-11-28 16:33:27 -06:00
Glenn Randers-Pehrson
1f63da349b
[libpng16] Changed tabs to 3 spaces in png_debug macros and changed '"%s"m'
...
to '"%s" m' to improve portability among compilers.
Changed png_free_default() to free() in pngtest.c
2013-11-28 13:41:10 -06:00
Glenn Randers-Pehrson
44db02364e
[libpng16] Avoid a clang scan-build warning in pngtest.c
2013-11-25 13:19:57 -06:00
Glenn Randers-Pehrson
3f8a2ed600
[libpng16] Removed or marked PNG_UNUSED some harmless "dead assignments"
...
reported by clang scan-build.
2013-11-25 10:38:21 -06:00
Glenn Randers-Pehrson
30145f29c5
[libpng16] Revised manual about handling of zlib CMF
2013-11-24 13:33:07 -06:00
Glenn Randers-Pehrson
d56af331e1
[libpng16] Bump version to 1.6.8beta02
2013-11-23 18:59:14 -06:00
Glenn Randers-Pehrson
1c6e5f8caa
[libpng16] Imported from libpng-1.6.8beta01.tar
2013-11-23 18:41:43 -06:00
Glenn Randers-Pehrson
27ae9362d8
[libpng16] Added another "assert()" in pngfix.c
2013-11-23 12:42:43 -06:00
Glenn Randers-Pehrson
88507b4ef9
[libpng16] Avoid a clang scanner warning in pngfix.c
2013-11-23 12:26:00 -06:00
John Bowler
0f6303301f
[libpng16] Fixed pngvalid 'fail' function declaration on the Intel C Compiler.
...
This reverts to the previous 'static' implementation and works round
the 'unused static function' warning by using PNG_UNUSED().
2013-11-22 18:49:58 -06:00
John Bowler
aaf1bb1ae1
[libpng16] Updated "last changed" dates
2013-11-22 15:40:52 -06:00
Glenn Randers-Pehrson
b5596712fc
[libpng16] Update contrib/tools/pngfix.c
2013-11-22 15:26:22 -06:00
Glenn Randers-Pehrson
503a49458b
[libpng16] Enabled WRITE_INVERT and WRITE_PACK in contrib/pngminim/encoder.
2013-11-22 15:16:04 -06:00
Glenn Randers-Pehrson
c912050a7b
[libpng16] Fixed 'minimal' builds. Various obviously useful minimal
...
configurations don't build because of missing contrib/libtests test programs
and overly complex dependencies in scripts/pnglibconf.dfa. This change adds
contrib/conftest/*.dfa files that can be used in automatic build
scripts to ensure that these configurations continue to build.
2013-11-22 14:58:04 -06:00
Glenn Randers-Pehrson
113213416c
[libpng16] Conditionally compile some unused functions reported by -Wall
...
in pngminim.
2013-11-18 20:12:24 -06:00
Glenn Randers-Pehrson
bd757acf26
[libpng16] Reverted change of ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
...
to PNG_SET_UNKNOWN_SUPPORTED in pngpread.c; it led to the possibility of
calling png_handle_unknown() twice.
2013-11-18 18:40:39 -06:00
Glenn Randers-Pehrson
a7f0bcb3a6
[libpng16] Added "-Wall" to CFLAGS in contrib/pngminim/*/makefile
2013-11-18 17:07:26 -06:00
Glenn Randers-Pehrson
7976b3c3e3
[libpng16] Moved prototype for png_handle_unknown() in pngpriv.h outside of
...
the #ifdef PNG_SET_UNKNOWN_CHUNKS_SUPPORTED/#endif block.
Removed recently-added #ifdef from pngpread.c; moving the prototype
in pngpriv.h fixed the compiler warning that the #ifdef was trying
to solve.
2013-11-18 11:38:42 -06:00
Glenn Randers-Pehrson
012d36f643
[libpng16] Changed ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED to
...
ifdef PNG_SET_UNKNOWN_CHUNKS_SUPPORTE in pngpread.c to agree with
what is in pngpriv.h
2013-11-17 19:42:48 -06:00
Glenn Randers-Pehrson
68dfa9e526
[libpng16] Reduced scope of recently-added #ifdef block
...
(#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED/#endif in pngpread.c)
2013-11-17 19:26:40 -06:00
Glenn Randers-Pehrson
416bb9320f
[libpng16] Added #ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED/#endif in pngpread.c
2013-11-17 11:06:50 -06:00
Glenn Randers-Pehrson
f2b8961f58
[libpng16] Bump version to 1.6.8beta01
2013-11-14 13:17:57 -06:00
Glenn Randers-Pehrson
6a3805c25b
[libpng16] Update version number in manual and png.h
2013-11-14 13:16:21 -06:00
Glenn Randers-Pehrson
0e60f06b7c
[master] Update version number in CHANGES file.
2013-11-14 12:52:10 -06:00
Glenn Randers-Pehrson
cf247ebffe
[libpng16] Update version number in CHANGES file.
2013-11-14 12:51:15 -06:00
Glenn Randers-Pehrson
a066d49b01
[master] Imported from libpng-1.6.7.tar
2013-11-14 12:28:22 -06:00
Glenn Randers-Pehrson
0ea69cdfa9
[libpng16] Imported from libpng-1.6.7.tar
2013-11-14 12:28:05 -06:00
Glenn Randers-Pehrson
8bf54399a3
[libpng16] Bump version to 1.6.7rc03
2013-11-07 08:15:38 -06:00
Glenn Randers-Pehrson
4da9d314bc
[libpng16] Imported from libpng-1.6.7rc02.tar
2013-11-07 08:15:30 -06:00
John Bowler
08b0620202
[libpng16] Fixed #include in filter_neon_intrinsics.c and ctype macros. The
...
ctype char checking macros take an unsigned char argument, not a signed char.
2013-11-04 13:44:37 -06:00
Glenn Randers-Pehrson
dee5a914fc
[libpng16] Bump version to 1.6.7rc02
2013-11-02 16:49:53 -05:00
Glenn Randers-Pehrson
d2d09e5bf9
[libpng16] Imported from libpng-1.6.7rc01.tar
2013-11-02 15:48:28 -05:00
Glenn Randers-Pehrson
03eafe24ed
[libpng16] Bump version to 1.6.7beta05
2013-10-26 11:52:05 -05:00
Glenn Randers-Pehrson
e9a8fb8d07
[libpng16] Imported from libpng-1.6.7beta04.tar
2013-10-26 11:51:56 -05:00
John Bowler
fd8bba4b80
[libpng16] Changed NEON implementation selection mechanism to allow assembler
...
or intrinsics to be turned on during the build by defining
PNG_ARM_NEON_IMPLEMENTATION to the correct value (2 or 1). The
default is "undefined" and the build type is selected in pngpriv.h.
2013-10-25 16:11:57 -05:00
John Bowler
bb9adfdad9
[libpng16] Allow clang derived from older GCC versions to use ARM intrinsics.
2013-10-24 07:45:27 -05:00
Glenn Randers-Pehrson
393d3c8285
[libpng16] Updated CHANGES comment about enabling ARMv8 code
...
We use -mfpu=neon instead of a configuration flag.
2013-10-19 09:34:54 -05:00
Glenn Randers-Pehrson
9450ffb26d
[libpng16] Bump version to 1.6.7beta04
2013-10-19 09:06:07 -05:00
Glenn Randers-Pehrson
ed049010b1
[libpng16] Imported from libpng-1.6.7beta03.tar
2013-10-19 09:05:59 -05:00
John Bowler
db9d96840d
[libpng16] Cleaned up ARM NEON compilation handling. The tests are now in
...
pngpriv.h and detect the broken GCC compilers.
2013-10-18 15:28:00 -05:00
John Bowler
9e9977e153
[libpng16] Revised pngvalid to generate size images with as many filters as
...
it can manage, limited by the number of rows.
2013-10-17 08:23:13 -05:00
John Bowler
681b731151
[libpng16] Fixed loop end condition in filter_neon_intrinsics.c
2013-10-17 08:12:55 -05:00
John Bowler
83a841ab7c
[libpng16] Fix compilation errors in filter_neon_intrinsics.c
...
Use filter_neon_intrinsics.c in preference to filter_neon.S when possible.
2013-10-15 21:19:56 -05:00
Glenn Randers-Pehrson
85c2ec9a69
[libpng16] Restored arm/arm_init.c to CSRCS in Makefile.am
2013-10-14 19:55:45 -05:00
Glenn Randers-Pehrson
cf644fa901
[libpng16] Update "last changed" dates in arm/filter_neon_intrinsics.c and
...
pngrtran.c
2013-10-14 13:16:38 -05:00
Glenn Randers-Pehrson
17ad121e93
[libpng16] Work around problem with multiple-line "test" command missing
...
continuation backslashes
2013-10-14 13:15:09 -05:00
Glenn Randers-Pehrson
19e4edaf3f
[libpng16] Conditionally compile arm/filter_neon_intrinsics.c
...
if PNG_READ_SUPPORTED and PNG_ARM_NEON_OPT > 0
2013-10-14 12:47:49 -05:00
Glenn Randers-Pehrson
e1540e3b4c
[libpng16] Updated configure.ac to handle new on-intrinsics, etc., options.
2013-10-14 11:38:53 -05:00
Glenn Randers-Pehrson
063eb1b497
[libpng16] Added ARMv8 support (James Yu <james.yu at linaro.org>). Added file
...
arm/filter_neon_intrinsics.c; enable with configuration flag
PNG_ARM_NEON_INTRINSICS.
2013-10-14 11:14:36 -05:00
Glenn Randers-Pehrson
fecdd46639
[libpng16] Fix some typos in autogen.sh that don't affect its behavior
2013-10-13 17:14:48 -05:00
Glenn Randers-Pehrson
0e036921aa
[libpng16] Bump version to 1.6.7beta03
2013-10-13 13:48:11 -05:00
Glenn Randers-Pehrson
e827fa24a0
[libpng16] Imported from libpng-1.6.7beta02.tar
2013-10-13 11:47:41 -05:00
John Bowler
34ac3691cb
[libpng16] Make autogen.sh work with automake 1.13 as well as 1.14. Do this
...
by always removing the 1.14 'compile' script but never checking for it.
2013-10-06 11:29:55 -05:00
John Bowler
236e105170
[libpng16] Simplified error message code in pngunknown. The simplification has
...
the useful side effect of avoiding a bogus warning generated by the latest
version of the Intel C compiler (it objects to
condition ? string-literal : string-literal).
2013-10-04 20:28:33 -05:00
John Bowler
5b1df53a82
[libpng16] Cleaned up (char*) casts of zlib messages. The latest version of
...
the Intel C compiler complains about casting a string literal as (char*), so
copied the treatment of z_const from the library code into pngfix.c
2013-10-04 20:13:17 -05:00
John Bowler
940b37b197
[libpng16] Made changes for compatibility with automake 1.14:
...
1) Added the 'compile' program to the list of programs that must be cleaned
in autogen.sh
2) Added 'subdir-objects' which causes .c files in sub-directories to be
compiled such that the corresponding .o files are also in the
sub-directory. This is because automake 1.14 warns that the
current behavior of compiling to the top level directory may be removed
in the future.
3) Updated dependencies on pnglibconf.h to match the new .o locations and
added all the files in contrib/libtests and contrib/tools that depend
on pnglibconf.h
4) Added 'BUILD_SOURCES = pnglibconf.h'; this is the automake recommended
way of handling the dependencies of sources that are machine generated;
unfortunately it only works if the user does 'make all' or 'make check',
so the dependencies (3) are still required.
2013-10-04 19:56:19 -05:00
John Bowler
0441ff62e7
[libpng16] Remove spurious "#ifdef PNG_sRGB_SUPPORTED" from pngrutil.c
2013-10-04 19:28:48 -05:00
Glenn Randers-Pehrson
de723276e5
[libpng16] Bump version to 1.6.7beta02
2013-10-02 13:47:02 -05:00
Glenn Randers-Pehrson
2464dbfe4c
[libpng16] Imported from libpng-1.6.7beta01.tar
2013-09-30 17:05:35 -05:00
Glenn Randers-Pehrson
b3721757a0
[libpng16] Catch up with some recent changes that did not get merged.
2013-09-30 13:56:44 -05:00
John Bowler
cc93d89e43
[libpng16] Updated pngunknown.c
2013-09-30 13:07:58 -05:00
John Bowler
8f381901e3
[libpng16] Avoid up-cast warnings in pngvalid.c. On ARM the alignment
...
requirements of png_modifier are greater than that of png_store and as a
consequence compilation of pngvalid.c results in a warning about increased
alignment requirements because of the bare cast to (png_modifier*). The code
is safe, because the pointer is known to point to a stack allocated
png_modifier, but this change avoids the warning.
Fixed default behavior of ARM_NEON_API. If the ARM NEON API option was
compiled without the CHECK option it defaulted to on, not off.
Check user callback behavior in pngunknown.c. Previous versions compiled
if SAVE_UNKNOWN was not available but did nothing since the callback
was never implemented.
Merged pngunknown.c with 1.7 version and back ported 1.7 improvements/fixes
2013-09-30 11:24:17 -05:00
John Bowler
15a80443de
[libpng16] Allow HANDLE_AS_UNKNOWN to work when other options are configured
...
off. Also fixed the pngminim makefiles to work when $(MAKEFLAGS) contains stuff
which terminates the make options (as by default in recent versions of Gentoo).
2013-09-21 10:06:32 -05:00
Glenn Randers-Pehrson
6f8f004fe1
[libpng16] Added #ifdef PNG_READ_SUPPORTED/endif around the
...
png_chunk_unknown_handling() function, and restored the unknown-chunk
handling code from libpng-1.6.6.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
to subscribe)
or to glennrp at users.sourceforge.net
Glenn R-P
2013-09-20 15:40:15 -05:00
Glenn Randers-Pehrson
873f16fe2f
[libpng16] Reverted the change to unknown handling #defines; the change
...
breaks 'NOREAD' builds.
2013-09-20 14:28:50 -05:00
Glenn Randers-Pehrson
7ae451f527
[libpng16] Bump version to 1.6.7beta01
2013-09-16 11:47:17 -05:00
Glenn Randers-Pehrson
391459424e
[libpng16] Imported from libpng-1.6.6.tar
2013-09-16 10:39:16 -05:00
Glenn Randers-Pehrson
05f3788b7a
[master] Imported from libpng-1.6.5.tar
2013-09-14 09:44:17 -05:00
Glenn Randers-Pehrson
53ae7dc514
[libpng16] Imported from libpng-1.6.5.tar
2013-09-14 09:44:09 -05:00
Glenn Randers-Pehrson
cd6a3ef31f
[libpng16] Bump version to 1.6.5beta01
2013-09-12 08:02:22 -05:00
Glenn Randers-Pehrson
90e288241d
[master] Imported from libpng-1.6.4.tar
2013-09-12 07:44:55 -05:00
Glenn Randers-Pehrson
209d3eb5c6
[libpng16] Imported from libpng-1.6.4.tar
2013-09-12 07:27:14 -05:00
Glenn Randers-Pehrson
d42dc54df5
[libpng16] Imported from libpng-1.6.4rc01.tar
2013-09-05 15:18:13 -05:00
Glenn Randers-Pehrson
877afaf17e
[libpng16] Bump version to 1.6.4beta03
2013-08-29 19:45:48 -05:00
Glenn Randers-Pehrson
8c49ddcf56
[libpng16] Imported from libpng-1.6.4beta02.tar
2013-08-29 19:39:34 -05:00
Glenn Randers-Pehrson
5680f5d6f2
[libpng16] Bump version to 1.6.4beta02
2013-08-21 18:59:09 -05:00
Glenn Randers-Pehrson
324402044f
[libpng16] Imported from libpng-1.6.4beta01.tar
2013-08-21 18:45:24 -05:00
Glenn Randers-Pehrson
685d79e27a
[libpng16] Delay calling png_init_filter_functions() until a row with nonzero
...
filter is found.
2013-08-20 21:15:31 -05:00
Glenn Randers-Pehrson
52083f9152
[libpng16] Mention png_set_option() in the documentation.
2013-08-17 15:53:32 -05:00
Glenn Randers-Pehrson
7191f6e9e6
[libpng16] Use minus signs, not hyphens, in "--i".
2013-08-13 18:54:34 -05:00
Glenn Randers-Pehrson
4dcbf24d82
[libpng16] Change some hyphens to minus signs and fix other typos in libpng.3
2013-08-06 17:25:02 -05:00
Glenn Randers-Pehrson
492e67163e
[libpng16] Exit loop over tRNS array when a transparent entry is
...
found (performance report by PoChun Chang)
2013-08-04 14:03:44 -05:00
Glenn Randers-Pehrson
5881b11629
[libpng16] Bump version to 1.6.4beta01
2013-07-20 19:41:22 -05:00
Glenn Randers-Pehrson
fca68966b2
[master] Imported from libpng-1.6.3.tar
2013-07-17 19:43:57 -05:00
Glenn Randers-Pehrson
847e9efb66
[libpng16] Imported from libpng-1.6.3.tar
2013-07-17 19:13:23 -05:00
Glenn Randers-Pehrson
db56fa18c2
[libpng16] Revised "/*SAFE*/" comment in pngrutil.c
2013-07-15 10:09:54 -05:00
Glenn Randers-Pehrson
bc8e40d611
[libpng16] Added "/* SAFE */" comments in pngrutil.c and pngrtran.c
...
where warnings may be erroneously issued by code-checking applications.
Revised manual about changes in iTXt chunk handling made in libpng-1.6.0.
2013-07-15 08:44:53 -05:00
Glenn Randers-Pehrson
2b87a54d07
[libpng16] Updated manual to mention that warnings about iTXt language tag
...
and translated keyword are no longer issued when these are empty, which
is allowed by the PNG specification.
2013-07-14 18:34:13 -05:00
Glenn Randers-Pehrson
b23afad4a1
[libpng16] Imported from libpng-1.6.3rc01.tar
2013-07-10 19:36:08 -05:00
Glenn Randers-Pehrson
f5d7f438e5
[libpng16] Imported from libpng-1.6.3beta10.tar
2013-07-04 20:19:47 -05:00
John Bowler
b4ec1f8451
[libpng16] Unified pngfix.c source with libpng17.
2013-07-02 23:47:57 -05:00
John Bowler
f5f1206778
[libpng16] Fixed undefined behavior in contrib/tools/pngfix.c and added new
...
strip option. pngfix relied on undefined behavior and even a simple change from
gcc to g++ caused it to fail. The new strip option 'unsafe' has been
implemented and is the default if --max is given. Option names have
been clarified, with --strip=transform now stripping the bKGD chunk,
which was stripped previously with --strip=unused.
Added all documented chunk types to pngpriv.h
2013-07-02 23:18:49 -05:00
John Bowler
497e7319f4
[libpng16] Only compile ARM code when PNG_READ_SUPPORTED is defined.
2013-07-02 22:57:40 -05:00
Glenn Randers-Pehrson
d5dd93f5d1
[libpng16] Updated documentation to show default behavior of benign errors
...
correctly.
2013-07-02 09:20:36 -05:00
Glenn Randers-Pehrson
7f9a49aa65
[libpng16] Bump version to 1.6.3beta10
2013-06-27 21:22:26 -05:00
Glenn Randers-Pehrson
573c9d434f
[libpng16] Change "png-fix-too-far-back" to "pngfix" inside pngfix.c
...
for error messages, etc.
2013-06-27 21:21:26 -05:00
Glenn Randers-Pehrson
56a1a66656
[libpng16] Imported from libpng-1.6.3beta09.tar
2013-06-27 18:01:30 -05:00
Glenn Randers-Pehrson
d992e05da8
[libpng16] Renamed contrib/tools/png-fix-too-far-back.c to pngfix.c
2013-06-27 13:39:20 -05:00
John Bowler
870beb5279
[libng16] Revised contrib/tools/png-fix-too-far-back.c to check all compressed
...
chunks known to libpng.
2013-06-27 11:49:26 -05:00
Glenn Randers-Pehrson
b0d97356ce
[libpng16] Revised example.c to illustrate use of PNG_DEFAULT_sRGB and
...
PNG_GAMMA_MAC_18 as parameters for png_set_gamma().
2013-06-25 19:36:15 -05:00
Glenn Randers-Pehrson
04d4e38ac2
[libpng16] Fix spelling of "doclifter" in CHANGES and ANNOUNCE
2013-06-18 15:09:47 -05:00
Glenn Randers-Pehrson
67a46d17d8
[libpng16] Bump version to 1.6.3beta09
2013-06-18 13:28:39 -05:00
Glenn Randers-Pehrson
bbc29a858d
[libpng16] Imported from libpng-1.6.3beta08.tar
2013-06-18 13:00:25 -05:00
Glenn Randers-Pehrson
3948b94700
[libpng16] Bump version to 1.6.3beta08
2013-06-08 17:03:37 -05:00
Glenn Randers-Pehrson
746bc7d883
[libpng16] Imported from libpng-1.6.3beta07.tar
2013-06-08 17:03:26 -05:00
John Bowler
f260f6d156
[libpng16] Protect symbol prefixing against CC/CPPFLAGS/CFLAGS useage.
...
Previous iOS/Xcode fixes for the ARM NEON optimizations moved the test
on __ARM_NEON__ from configure time to compile time. This breaks symbol
prefixing because the definition of the special png_init_filter_functions
call was hidden at configure time if the relevant compiler arguments are
passed in CFLAGS as opposed to CC. This change attempts to avoid all
the confusion that would result by declaring the init function even when
it is not used, so that it will always get prefixed.
2013-06-08 13:13:53 -05:00
John Bowler
18dd07e3e6
[libpng16] Removed PNG_FILTER_OPTIMIZATIONS and PNG_ARM_NEON_SUPPORTED from
...
pnglibconf.h, allowing more of the decisions to be made internally
(pngpriv.h) during the compile. Without this, symbol prefixing is broken
under certain circumstances on ARM platforms. Now only the API parts of
the optimizations ('check' vs 'api') are exposed in the public header files
except that the new setting PNG_ARM_NEON_OPT documents how libpng makes the
decision about whether or not to use the optimizations.
2013-06-08 13:07:13 -05:00
Glenn Randers-Pehrson
0486b17fbd
[libng16] Neglected to check in pngconf.h with previous commit.
2013-06-06 14:38:54 -05:00
John Bowler
aa22442a9c
[libpng16] Make ARM NEON support work at compile time (not just configure time).
...
This moves the test on __ARM_NEON__ into pngconf.h to avoid issues when
using a compiler that compiles for multiple architectures at one time.
2013-06-06 12:49:53 -05:00
Glenn Randers-Pehrson
4a43182924
[libpng16] Enclose the prototypes for the simplified write API in
2013-06-05 23:41:49 -05:00
Glenn Randers-Pehrson
810b6e51e4
[libpng16] Updated README (removed CompuServ reference, added simplesystems.org)
2013-06-05 16:52:41 -05:00
John Bowler
88610994da
[libpng16] Fix compiler warning in png-fix-itxt.c
2013-06-05 12:15:25 -05:00
John Bowler
1b9b970598
[libpng16] Deleted set(CMAKE_BUILD_TYPE) block from CMakeLists.txt
2013-06-05 11:41:44 -05:00
Glenn Randers-Pehrson
43f0311b57
[libpng16] Added set(CMAKE_CONFIGURATION_TYPES ...) to CMakeLists.txt
...
(Andrew Hundt)
2013-06-05 11:07:01 -05:00
Glenn Randers-Pehrson
421f95deb5
[libpng16] Removed a redundant test in png_set_IHDR().
2013-06-04 15:05:12 -05:00
Glenn Randers-Pehrson
f96251291d
[libpng16] Updated README with current arm, contrib, and projects directory
...
descriptions
2013-06-03 20:57:45 -05:00
Glenn Randers-Pehrson
cafa0eebb9
[libpng16] Bump version to 1.6.3beta07
2013-05-12 19:10:16 -05:00
Glenn Randers-Pehrson
afd6cecb76
[libpng16] Imported from libpng-1.6.3beta06.tar
2013-05-12 18:36:09 -05:00
Glenn Randers-Pehrson
61dbc4c608
[libpng16] Revised contrib/pngminim/*/makefile to generate pnglibconf.h
...
with the right zlib headers.
2013-05-09 22:01:06 -05:00
Glenn Randers-Pehrson
bea86bba24
[libpng16] Removed obsolete reference to "pnginflate" from ANNOUNCE
2013-05-09 08:58:08 -05:00
Glenn Randers-Pehrson
7fc85a3f46
[libng16] Fixed typo in png-fix-too-far-back "usage" output
2013-05-09 08:49:42 -05:00
Glenn Randers-Pehrson
bb8d4f76f4
[libpng16] Cleaned up CHANGES and ANNOUNCE files.
2013-05-09 08:48:43 -05:00
Glenn Randers-Pehrson
b79c98e57c
[libpng16] Bump version to 1.6.3beta06
2013-05-09 08:03:40 -05:00
Glenn Randers-Pehrson
4cf2465c71
[libpng16] Imported from libpng-1.6.3beta05.tar
2013-05-09 08:03:24 -05:00
Glenn Randers-Pehrson
4ea93e69bc
[libpng16] Renamed pnginflate to png-fix-too-far-back in contrib/tools.
2013-05-08 21:57:00 -05:00
Glenn Randers-Pehrson
ff141eb21e
[libpng16] Renamed contrib/tools/fixitxt to contrib/tools/png-fix-itxt.
...
Added information in the documentation about problems with and fixes for
the bad CRC and bad iTXt chunk situations.
2013-05-08 19:46:10 -05:00
John Bowler
122bec17f2
[libpng16]Check ZLIB_VERNUM for mismatches, enclose #error in quotes
2013-05-08 14:35:21 -05:00
John Bowler
9afb90f885
[libpng16] Attempt to detect configuration issues with pngdeflate,
...
which requires both the correct libpng and the correct zlib to function
correctly.
2013-05-08 14:21:46 -05:00
John Bowler
34b7d62488
[libpng16] Updated Makefile.am
2013-05-08 10:35:14 -05:00
Glenn Randers-Pehrson
3f2b5a6670
libpng16] Updated contrib/pngminus/pnm2png.c (Paul Stewart):
...
Fixed whitespace handling
Added a call to png_set_packing()
Initialize dimension values so if sscanf fails at least we have known
invalid values.
2013-05-08 10:09:19 -05:00
John Bowler
294d0b8408
[libpng16] Detect wrong libpng versions linked to pngdeflate, which currently
...
only works with libpng versions that can be made to reliably fail when
the deflate data contains an out-of-window reference. This means only
1.6 and later.
Fixed gnu issues: g++ needs a static_cast, gcc 4.4.7 has a broken warning
message which it is easier to work round than ignore.
2013-05-08 08:56:45 -05:00
Glenn Randers-Pehrson
62c6fbbd29
[libpng16] Check that PNG_MAXIMUM_INFLATE_WINDOW is defined before using it.
2013-05-07 23:16:06 -05:00
John Bowler
0c7ac064d3
[libpng16] Added an option to force maximum window size for inflating.
...
For inflate, reverted previous fixes.
Added fixitxt and pngdeflate to the built programs and removed warnings
from the source code and timepng that are revealed as a result. Fixed
fixitxt when the chunk length is more than 65535 (untested, no test case).
2013-05-07 21:59:05 -05:00
Glenn Randers-Pehrson
db67cba8d4
[libpng16] Check for EOF in contrib/pngminus/pnm2png.c (Paul Stewart).
...
Ignore "#" delimited comments in input file to pnm2png.c.
2013-05-07 14:31:35 -05:00
Glenn Randers-Pehrson
2aa6c96e5d
[libpng16] Bump version to 1.6.3beta05
2013-05-06 09:55:29 -05:00
Glenn Randers-Pehrson
2fd3434fa4
[libpng16] Imported from libpng-1.6.3beta04.tar
2013-05-06 09:55:18 -05:00
Glenn Randers-Pehrson
2c0833e265
[libpng16] Committed new pnglibconf.dfa and prebuilt.
2013-05-05 22:18:53 -05:00
Glenn Randers-Pehrson
127b08a265
[libpng16] Calculate our own zlib windowBits when decoding rather than
...
trusting the CMF bytes in the PNG datastream.
2013-05-05 22:13:47 -05:00
Glenn Randers-Pehrson
0f42908c0a
[libpng16] Bump version to 1.6.3beta04
2013-04-29 21:31:50 -05:00
Glenn Randers-Pehrson
f18a28cc13
[libpng16] Imported from libpng-1.6.3beta03.tar
2013-04-29 21:31:38 -05:00
Glenn Randers-Pehrson
56d6bc2e88
[libpng16] Avoid dereferencing NULL pointer possibly returned from
...
png_create_write_struct() (Andrew Church).
2013-04-29 08:57:14 -05:00
Glenn Randers-Pehrson
61946e0f56
[libpng16] Revise man page to demonstrate dealing with unknown chunk
...
handling in libpng.1.5.x and with bugs in libpng-1.4.x and earlier.
2013-04-28 20:48:37 -05:00
Glenn Randers-Pehrson
49f9c24910
[libpng16] Expanded manual paragraph about writing private chunks, particularly
...
about the need to call png_set_keep_unknown_chunks() when writing them.
2013-04-27 18:03:03 -05:00
Glenn Randers-Pehrson
c62fda06a3
[libpng16] Bump version to 1.6.3beta03
2013-04-26 08:25:33 -05:00
Glenn Randers-Pehrson
cd62215d61
[libpng16] Imported from libpng-1.6.3beta02.tar
2013-04-26 08:24:19 -05:00
John Bowler
ac09cd0fec
[libpng16] Test for 'arm*' not just 'arm' in the host_cpu configure variable.
...
Rebuilt the configure scripts.
2013-04-25 23:13:08 -05:00
Glenn Randers-Pehrson
529045cf26
[libpng16] Bump version to 1.6.3beta02
2013-04-25 21:37:43 -05:00
Glenn Randers-Pehrson
a4f7ea0d11
[master] Imported from libpng-1.6.2.tar
2013-04-25 11:06:20 -05:00
John Bowler
7b1da52549
[libpng16] Ensure that NEON filter stuff is completely disabled when switched
...
'off'. Previously the ARM NEON specific files were still built if the option
was switched 'off' as opposed to being explicitly disabled.
2013-04-25 10:03:42 -05:00
Glenn Randers-Pehrson
34d20f482f
[libpng16] Revised stack marking in arm/filter_neon.S and configure.ac.
2013-04-25 09:53:57 -05:00
Glenn Randers-Pehrson
399430dac2
[libpng16] Update "last changed" comments.
2013-04-25 09:52:00 -05:00
Glenn Randers-Pehrson
3f677d1c65
[libpng16] Bump version to 1.6.3beta01
2013-04-25 09:19:04 -05:00
Glenn Randers-Pehrson
809355b4aa
[libpng16] Imported from libpng-1.6.2.tar
2013-04-25 07:29:41 -05:00
Glenn Randers-Pehrson
7fd71746d0
[libpng16] Fix confusing CHANGES entry.
2013-04-23 23:16:32 -05:00
Glenn Randers-Pehrson
0ee3465fba
[libpng16] Imported from libpng-1.6.2rc06.tar
2013-04-23 22:21:55 -05:00
Glenn Randers-Pehrson
a793120405
[libpng16] Bump version to 1.6.2rc03
2013-04-23 22:03:44 -05:00
Glenn Randers-Pehrson
9bdba4e630
[libpng16] Imported from libpng-1.6.2rc05.tar
2013-04-23 19:45:07 -05:00
John Bowler
a74b70871c
[libpng16] Ensure that NEON filter stuff is completely disabled when
...
switched 'off'. Previously the ARM NEON specific files were still built
if the option was switched 'off' as opposed to being explicitly disabled.
2013-04-23 18:18:45 -05:00
Glenn Randers-Pehrson
0d50d6562c
[libpng16] Imported from libpng-1.6.2rc04.tar
2013-04-22 20:29:18 -05:00
Glenn Randers-Pehrson
453fbf942c
[libpng16] Revised stack marking in arm/filter_neon.S
2013-04-22 19:48:05 -05:00
Glenn Randers-Pehrson
6e1c74b39b
[libpng16] Imported from libpng-1.6.2rc03.tar
2013-04-22 11:36:05 -05:00
Glenn Randers-Pehrson
fdc2d5f38f
[libpng16] Bump version to 1.6.2rc03
2013-04-19 19:05:34 -05:00
Glenn Randers-Pehrson
67a289ffa9
[libpng16] Fixed some spelling/typos
2013-04-19 19:03:34 -05:00
Glenn Randers-Pehrson
bf15ac7e86
[libpng16] Imported from libpng-1.6.2rc02.tar
2013-04-18 07:40:56 -05:00
Glenn Randers-Pehrson
7ef0c46488
[libpng16] Updated "last changed" comments.
2013-04-18 07:25:45 -05:00
Glenn Randers-Pehrson
8d9e494dfb
[libpng16] Merged pngtest.c with version 1.7.0beta08
2013-04-18 07:23:59 -05:00
Glenn Randers-Pehrson
0794df4062
[libpng16] Imported from libpng-1.6.2rc01.tar
2013-04-18 06:32:44 -05:00
Glenn Randers-Pehrson
7a69beda7b
[libpng16] in fixitxt.c define MAX_LENGTH, largest iTXT chunk that it
...
can handle.
2013-04-18 05:53:49 -05:00
John Bowler
e4413a735b
[libpng16] Disallow storing sRGB information when the sRGB is not supported.
...
Reverted previous attempt to allow gAMA and sRGB non-support with the
simplified API.
2013-04-17 21:27:47 -05:00
Glenn Randers-Pehrson
7fdb594e73
[libpng16] Added #ifdef PNG_WRITE_sRGB_SUPPORTED, etc., tests where needed in
...
png_image_write_main() in pngwrite.c (bug report from Yuriy Levchenko).
2013-04-17 11:05:21 -05:00
Glenn Randers-Pehrson
f1736a636b
[libpng16] Added contrib/tools/fixitxt.c, to repair the erroneous iTXt
...
chunk length written by libpng-1.6.0 and 1.6.1.
2013-04-16 23:12:09 -05:00
Glenn Randers-Pehrson
3b4c60f26b
[libpng16] Imported from libpng-1.6.2beta02.tar
2013-04-13 21:27:07 -05:00
Glenn Randers-Pehrson
5c55ccdf4f
[libpng16] Imported from libpng-1.6.2beta01.tar
2013-04-13 20:55:04 -05:00
Glenn Randers-Pehrson
5ec05b3d7c
[libpng16] Removed extra recently-inserted line from pngwutil.c
2013-04-13 20:01:09 -05:00
John Bowler
70eb0720a0
[libpng16] Fixed previous bugfix to work on 64-bit platforms.
2013-04-13 16:52:09 -05:00
Glenn Randers-Pehrson
9bb775fc8c
[libpng16] Corrected length written to uncompressed iTXt chunks (Samuli Suominen).
2013-04-13 14:19:25 -05:00
John Bowler
a8715cabd1
[libpng16] Added "{ }" omitted from previous patch to pngtrans.c
2013-04-13 12:25:16 -05:00
Glenn Randers-Pehrson
364acf40aa
[libpng16] Corrected a misplaced closing bracket in contrib/libtests/pngvalid.c
...
(Flavio Medeiros).
2013-04-13 11:55:08 -05:00
John Bowler
b44cd59ad9
[libpng16] Corrected the test on user transform changes on read. It was in the
...
png_set of the transform function, but that doesn't matter unless the
transform function changes the rowbuf size, and that is only valid if
transform_info is called.
2013-04-12 22:15:54 -05:00
Glenn Randers-Pehrson
e2d8e11407
[libpng16] Updated the GIT URL in the manual.
2013-04-11 18:53:51 -05:00
John Bowler
43c07e1b48
[libpng16] Fixed incorrect warning of excess deflate data. End condition - the
...
warning would be produced if the end of the deflate stream wasn't read
in the last row. The warning is harmless.
2013-04-07 21:33:30 -05:00
Glenn Randers-Pehrson
2e0c5f0dff
[libpng16] Updated documentation of 1.5.x to 1.6.x changes in iCCP chunk
...
handling.
2013-03-31 22:55:55 -05:00
Glenn Randers-Pehrson
3a83aa328d
[libpng16] Bump version to 1.6.2beta01
2013-03-29 07:11:42 -05:00
Glenn Randers-Pehrson
41db297e63
[master] Imported from libpng-1.6.1.tar
2013-03-27 20:39:36 -05:00
Glenn Randers-Pehrson
5087805e7c
[libpng16] Imported from libpng-1.6.1.tar
2013-03-27 20:36:57 -05:00
Glenn Randers-Pehrson
4e6e2166a5
[libpng16] Imported from libpng-1.6.1rc01.tar
2013-03-21 07:38:30 -05:00
Glenn Randers-Pehrson
1affc5622b
[libpng16] Bump version to 1.6.1beta10
2013-03-13 07:40:54 -05:00
Glenn Randers-Pehrson
cd1cd2dafc
[libpng16] Imported from libpng-1.6.1beta09.tar
2013-03-13 07:40:46 -05:00
John Bowler
caa3f296df
[libpng16] Eliminated another warning from the Intel C compiler.
2013-03-10 21:40:27 -05:00
John Bowler
2286a7cef4
[libpng16] Eliminated a warning from the Intel C compiler. The warning is
...
technically valid, although a reasonable treatment of division would
show it to be incorrect.
2013-03-10 21:35:35 -05:00
Glenn Randers-Pehrson
3c8b422b0a
[libpng16] Bump version to 1.6.1beta09
2013-03-07 11:36:55 -06:00
Glenn Randers-Pehrson
0645b62528
[libpng16] Imported from libpng-1.6.1beta08.tar
2013-03-07 11:36:47 -06:00
Claudio Bley
0281dee877
[libpng16] Fixed CMakelists.txt to allow building a single variant of the
...
library (Claudio Bley):
Introduced a PNG_LIB_TARGETS variable that lists all activated library
targets. It is an error if this variable ends up empty, ie. you have
to build at least one library variant.
Made the *_COPY targets only depend on library targets actually being build.
Use PNG_LIB_TARGETS to unify a code path.
Changed the CREATE_SYMLINK macro to expact the full path to a file as the
first argument. When symlinking the filename component of that path is
determined and used as the link target.
Use copy_if_different in the CREATE_SYMLINK macro.
2013-03-07 11:17:17 -06:00
Glenn Randers-Pehrson
e55b25a962
[libpng16] Bump version to 1.6.1beta08
2013-03-06 22:42:23 -06:00
Glenn Randers-Pehrson
14638c1f20
[libpng16] Imported from libpng-1.6.1beta07.tar
2013-03-06 22:42:13 -06:00
John Bowler
59ae38984f
[libpng16] Corrected simplified API default gamma for color-mapped output, added
...
a flag to change default. In 1.6.0 when the simplified API was used
to produce color-mapped output from an input image with no gamma
information the gamma assumed for the input could be different from
that assumed for non-color-mapped output. In particular 16-bit depth
input files were assumed to be sRGB encoded, whereas in the 'direct'
case they were assumed to have linear data. This was an error. The
fix makes the simplified API treat all input files the same way and
adds a new flag to the png_image::flags member to allow the
application/user to specify that 16-bit files contain sRGB data
rather than the default linear.
Fixed bugs in the pngpixel and makepng test programs.
2013-03-06 22:15:25 -06:00
Glenn Randers-Pehrson
1f24cb74f2
[libpng16] Update "last changed" dates and fix one comment typo.
2013-03-04 21:58:02 -06:00
Glenn Randers-Pehrson
1cbfa24a93
[libpng16] Bump version to 1.6.1beta07
2013-03-04 17:56:59 -06:00
Glenn Randers-Pehrson
8c87dc88d6
[libpng16] Imported from libpng-1.6.1beta06.tar
2013-03-04 17:56:46 -06:00
John Bowler
f3728100d9
[libpng16] Corrected Android builds and corrected libpng.vers with symbol
...
prefixing This adds an API to set optimization options externally,
providing an alternative and general solution for the non-portable
run-time tests used by the ARM Neon code. It also makes those tests
compile and link on Android.
The order of settings vs options in pnglibconf.h is reversed to allow
settings to depend on options and options can now set (or override) the
defaults for settings.
2013-03-04 16:26:31 -06:00
John Bowler
e15b537825
[libpng16] Better documentation of unknown handling API interactions.
2013-03-02 17:59:43 -06:00
Glenn Randers-Pehrson
e57f094fd6
[libpng16] Bump version to 1.6.1beta06
2013-03-02 17:37:23 -06:00
Glenn Randers-Pehrson
4ea113b7f0
[libng16] Reverted recent change that eliminated a warning about storing
...
an unhandled chunk.
2013-03-02 16:03:45 -06:00
Glenn Randers-Pehrson
871b1d0fab
[libpng16] Bump version to 1.6.1beta05
2013-03-02 15:03:15 -06:00
Glenn Randers-Pehrson
f3af706c2a
[libpng16] Imported from libpng-1.6.0beta05.tar
2013-03-01 21:38:03 -06:00
Glenn Randers-Pehrson
96cf4bde0e
[libpng16] Fixed bug introduced in libpng-1.6.0beta28 that causes libpng to
...
handle chunks even when they have been tagged PNG_HANDLE_CHUNK_NEVER.
2013-03-01 20:04:06 -06:00
Glenn Randers-Pehrson
1118d6d985
[libpng16] Avoid a possible memory leak in contrib/gregbook/readpng.c
2013-03-01 13:27:05 -06:00
Glenn Randers-Pehrson
e444514a94
[libpng16] Bump version to 1.6.1beta05
2013-02-27 15:11:39 -06:00
Glenn Randers-Pehrson
efda7376c8
[libpng16] Imported from libpng-1.6.1beta04.tar
2013-02-27 15:02:53 -06:00
John Bowler
ccec786ca7
[libpng16] Revised scripts/dfn.awk to work with the buggy MSYS awk that has
...
trouble with CRLF line endings.
2013-02-27 13:36:08 -06:00
Glenn Randers-Pehrson
2621be1bdb
[libpng16] Added info about ordering of png_set_*() calls to the manual.
2013-02-26 08:43:28 -06:00
Glenn Randers-Pehrson
45bb4530fd
[libpng16] Revised INSTALL to recommend using CPPFLAGS instead of INCLUDES.
...
Revised scripts/makefile.freebsd to respect ZLIBDIR and ZLIBINC.
2013-02-22 20:19:49 -06:00
Glenn Randers-Pehrson
a97fc46e43
[libpng16] Bump version to 1.6.1beta04
2013-02-22 17:12:09 -06:00
Glenn Randers-Pehrson
3fa1893804
[libpng16] Imported from libpng-1.6.1beta03.tar
2013-02-22 17:06:01 -06:00
Glenn Randers-Pehrson
f8a8ead5cb
[libpng16] Update the INSTALL document.
2013-02-22 16:52:21 -06:00
Glenn Randers-Pehrson
6df55cece7
[libpng16] Updated scripts/pnglibconf.h.prebuilt
2013-02-19 10:11:43 -06:00
John Bowler
09a5ca72ac
[libpng16] Allow run-time ARM NEON checking to be disabled. A new configure
...
option:
--enable-arm-neon=always will stop the run-time checks. New checks
within arm/arm_init.c will cause the code not to be compiled unless
__ARM_NEON__ is set. This should make it fail safe (if someone asks
for it on then the build will fail if it can't be done.)
Fixed ALIGNED_MEMORY support.
2013-02-18 22:30:35 -06:00
Glenn Randers-Pehrson
0cc3e9e38c
[libpng16] Bump version to 1.6.1beta03
2013-02-18 21:25:56 -06:00
Glenn Randers-Pehrson
adb9613699
[libpng16] Imported from libpng-1.6.1beta02.tar
2013-02-18 21:25:47 -06:00
John Bowler
c0a0d4a6d2
[libpng16] Reenabled code to allow zero length PLTE chunks for MNG.
2013-02-18 21:23:17 -06:00
Glenn Randers-Pehrson
2bad851ab3
[libpng16] Updated "png_sizeof" to "sizeof" in the manual.
2013-02-18 15:21:01 -06:00
Glenn Randers-Pehrson
f2350f3987
[libpng16] Revised "#if defined " in arm/arm_init.c
2013-02-18 12:30:30 -06:00
Glenn Randers-Pehrson
b4ef7c4af2
[libpng16] Use parentheses consistently in "#if defined()" tests.
...
Folded some long lines.
2013-02-17 15:41:36 -06:00
Glenn Randers-Pehrson
9e8fd50d76
[libpng16] Use parentheses consistently in "#if defined()" tests.
2013-02-17 14:31:00 -06:00
Glenn Randers-Pehrson
ea3288f1c5
[libpng16] Fixed double-underscore typo in an #ifdef in png.c
2013-02-16 16:35:22 -06:00
Glenn Randers-Pehrson
cc074dcaa6
[libpng16] Bump version to 1.6.1beta02
2013-02-16 10:48:39 -06:00
Glenn Randers-Pehrson
3b8e7e869d
[libpng16] Imported from libpng-1.6.1beta01.tar
2013-02-16 10:48:29 -06:00
John Bowler
765d145ec4
[libpng16] Use approved/supported Android method to check for NEON, use
...
Linux/POSIX 1003.1 API to check /proc/self/auxv avoiding buffer allocation
and other library calls (ported from libpng15).
2013-02-16 07:43:48 -06:00
John Bowler
c9b11ff0d4
[libpng16] Fixed a race condition in the creation of the build 'scripts'
...
directory while building with a parallel make.
2013-02-16 07:38:46 -06:00
John Bowler
23a101e06d
[libpng16] scripts/pnglibconf.dfa formatting improvements back ported from libpng 1.7.
2013-02-16 00:18:20 -06:00
John Bowler
b724c812ec
[libpng16] Enabled parallel tests - back ported from libpng-1.7.
2013-02-16 00:05:59 -06:00
John Bowler
0695fcd834
[libpng16] Removed cc -E workround, corrected png_get_palette_max API Tested on SUN OS cc 5.9,
...
which demonstrates the tokenization problem previously avoided by using /lib/cpp.
Since all .dfn output is now protected in double quotes unless it is to be macro
substituted the fix should work everywhere.
2013-02-15 23:46:37 -06:00
John Bowler
42835d3d19
[libpng16] Ported libpng 1.5 options.awk/dfn file handling to 1.6, fixed one bug.
2013-02-15 23:40:34 -06:00
John Bowler
2d99978f67
[libpng16] Made sRGB check numbers consistent.
2013-02-15 23:25:18 -06:00
John Bowler
9d2e875826
[libpng16] Made symbol prefixing work with the ARM neon optimizations. Also allow pngpriv.h
...
to be included for preprocessor definitions only, so it can be used in non-C/C++
files. Back ported from libpng 1.7.
2013-02-15 23:21:42 -06:00
Glenn Randers-Pehrson
0da9cf38cd
[master] Imported from libpng-1.6.0.tar
2013-02-13 23:32:06 -06:00
Glenn Randers-Pehrson
681de8c8dc
[libpng16] Bump version to 1.6.1beta01
2013-02-13 23:17:52 -06:00
Glenn Randers-Pehrson
c53778ff53
[libpng16] Imported from libpng-1.6.0.tar
2013-02-13 22:53:57 -06:00
Glenn Randers-Pehrson
44db2cfb15
[libpng16] Bump version to 1.6.0rc09
2013-02-10 20:34:23 -06:00
John Bowler
6db8e4dd11
[libpng16] Fixed inconsistencies in png.h and pnglibconf.dfa
2013-02-10 17:49:25 -06:00
Glenn Randers-Pehrson
88c5a2a068
[libpng16] Fixed typo in png.h #ifdef
2013-02-10 16:39:55 -06:00
Glenn Randers-Pehrson
bf9f74b657
[libpng16] Bump version to 1.6.0rc08
2013-02-10 16:20:48 -06:00
Glenn Randers-Pehrson
0d270082d2
[libpng16] Imported from libpng-1.6.0rc07.tar
2013-02-10 16:20:40 -06:00
Glenn Randers-Pehrson
d000fb89c0
[libpng16] Enclosed the new png_get_palette_max
...
in #ifdef PNG_GET_PALETTE_MAX_SUPPORTED block, and revised pnglibconf.h
and pnglibconf.h.prebuilt accordingly.
2013-02-10 15:46:06 -06:00
Glenn Randers-Pehrson
9fabbedcf3
[libpng16] Bump version to 1.6.0rc07
2013-02-09 07:44:06 -06:00
Glenn Randers-Pehrson
d7dc03e371
[libpng16] Imported from libpng-1.6.0rc06.tar
2013-02-09 07:43:55 -06:00
John Bowler
b8d0534e9d
[libpng16] Fixed missing dependency in --prefix builds The intermediate
...
internal 'prefix.h' file can only be generated correctly after
pnglibconf.h, however the dependency was not in Makefile.am. The
symptoms are unpredictable depending on the order make chooses to
build pngprefix.h and pnglibconf.h, often the error goes unnoticed
because there is a system pnglibconf.h to use instead.
2013-02-09 07:24:08 -06:00
Glenn Randers-Pehrson
f88ac51a2e
[libpng16] Bump version to 1.6.0rc06
2013-02-08 09:13:44 -06:00
Glenn Randers-Pehrson
bbac5e692f
[libpng16] Imported from libpng-1.6.0rc05.tar
2013-02-08 09:13:35 -06:00
Glenn Randers-Pehrson
a4081f2990
[libpng16] Updated man page about png_get_palette_max().
2013-02-08 09:06:08 -06:00
Glenn Randers-Pehrson
1f8e81738a
[libpng16] Bump version to 1.6.0rc05
2013-02-06 22:32:13 -06:00
Glenn Randers-Pehrson
9002f5b1f0
[libpng16] Imported from libpng-1.6.0rc04.tar
2013-02-06 22:32:05 -06:00
John Bowler
f5a83fb2b3
[libpng16] Turn serial tests back on (recently turned off by autotools upgrade).
2013-02-06 19:38:42 -06:00
Glenn Randers-Pehrson
154de9398a
[libpng16] Bump version to 1.6.0rc04
2013-02-05 12:14:43 -06:00
Glenn Randers-Pehrson
777044a856
[libpng16] Imported from libpng-1.6.0rc03.tar
2013-02-05 10:34:11 -06:00
John Bowler
fe5c8b9755
[libpng16] Fixed palette_max API.
2013-02-05 08:01:09 -06:00
Glenn Randers-Pehrson
8d391c6cea
[libpng16] Bump version to 1.6.0rc03
2013-02-04 20:43:27 -06:00
Glenn Randers-Pehrson
32d6a74293
[libpng16] Imported from libpng-1.6.0rc02.tar
2013-02-04 20:12:49 -06:00
Glenn Randers-Pehrson
806477742a
[libpng16] Added documentation of the new png_get_palette_max() function.
2013-02-04 19:57:32 -06:00
Glenn Randers-Pehrson
d14caad2e9
[master] Imported from libpng-1.5.14.tar
2013-02-02 17:14:54 -06:00
Glenn Randers-Pehrson
29890b0439
[libpng16] Imported from libpng-1.6.0rc01.tar
2013-01-26 12:13:17 -06:00
Glenn Randers-Pehrson
9f860f59d9
[libpng16] Bump version to 1.6.0beta41
2013-01-20 17:32:13 -06:00
Glenn Randers-Pehrson
f8aa57e791
[libpng16] Imported from libpng-1.6.0beta40.tar
2013-01-20 17:25:00 -06:00
Glenn Randers-Pehrson
4567935fe4
[libpng16] Push two files that weren't updated in previous push.
2013-01-20 00:44:29 -06:00
John Bowler
2414bd99d8
[libpng16] Use consistent handling of overflows in text, sPLT and unknown
...
png_set_* APIs
2013-01-19 23:18:59 -06:00
Glenn Randers-Pehrson
1f76e62d6c
[libpng16] Bump version to 1.6.0beta40
2013-01-19 08:57:40 -06:00
Glenn Randers-Pehrson
e208108dfc
[libpng16] Imported from libpng-1.6.0beta39.tar
2013-01-19 08:50:15 -06:00
Glenn Randers-Pehrson
590c8b0987
[libpng16] Added overflow detection in png_set_sPLT() and png_set_text_2().
2013-01-19 08:49:12 -06:00
Glenn Randers-Pehrson
c5c8b542fb
[libpng16] Bump version to 1.6.0beta39
2013-01-17 13:57:58 -06:00
Glenn Randers-Pehrson
91a7ad9d2b
[libpng16] Imported from libpng-1.6.0beta38.tar
2013-01-17 13:57:42 -06:00
John Bowler
9dd2bfafe5
[libpng16] Corrected previous attempt at overflow detection in
...
png_set_unknown_chunks().
2013-01-17 13:24:05 -06:00
Glenn Randers-Pehrson
ba35f1e4c1
[libpng16] Bump version to 1.6.0beta38
2013-01-10 12:21:07 -06:00
Glenn Randers-Pehrson
5851280929
[libpng16] Imported from libpng-1.6.0beta37.tar
2013-01-10 12:20:59 -06:00
John Bowler
1c6e22a360
[libpng16] Fixed conceivable but difficult to repro overflow. Also added
...
two test programs to generate and test a PNG which should have the problem.
2013-01-10 10:55:34 -06:00
Glenn Randers-Pehrson
37109a9f5b
[libpng16] Bump version to 1.6.0beta37
2013-01-01 08:40:25 -06:00
Glenn Randers-Pehrson
a70216aa60
[libpng16] Imported from libpng-1.6.0beta36.tar
2013-01-01 08:40:16 -06:00
Glenn Randers-Pehrson
9477ecdfa6
[libpng16] Updated copyright year to 2013 in newly-changed files
2013-01-01 07:45:42 -06:00
John Bowler
408652acaf
[libpng16] Fixed 'make distcheck' on SUN OS - libpng.so was not being removed
2012-12-27 09:56:41 -06:00
Glenn Randers-Pehrson
744f041adf
[libpng16] Discontinued distributing libpng-1.x.x.tar.bz2.
...
Discontinued distributing libpng-1.7.0-1.6.0-diff.txt and similar.
2012-12-23 22:19:43 -06:00
Glenn Randers-Pehrson
86c739e8bc
[libpng16] Bump version to 1.6.0beta36
2012-12-22 18:34:22 -06:00
Glenn Randers-Pehrson
00634fdac8
[libpng16] Imported from libpng-1.6.0beta35.tar
2012-12-22 18:34:13 -06:00
Glenn Randers-Pehrson
79ee877fb4
[libpng16] Reformatted latest CHANGES/ANNOUNCE entry to 80 character lines.
2012-12-22 17:13:35 -06:00
John Bowler
e9d616321a
[libpng16] Fixed Windows build issues, enabled ARM compilation. Various warnings issued
...
by earlier versions of GCC fixed for Cygwin and Min/GW (which both use old GCCs.)
ARM support is enabled by default in zlib.props (unsupported by Microsoft) and
ARM compilation is made possible by deleting the check for x86. The test programs
cannot be run because they are not signed.
2012-12-20 22:48:58 -06:00
John Bowler
24639a63ce
[libpng16] Made default Zlib compression settings be configurable. This adds #defines to
...
pnglibconf.h to control the defaults.
2012-12-20 22:26:18 -06:00
Glenn Randers-Pehrson
5362c9d5e5
[libpng16] Bump version to 1.6.0beta35
2012-12-19 16:21:35 -06:00
Glenn Randers-Pehrson
b6bfd40da2
[libpng16] Imported from libpng-1.6.0beta34.tar
2012-12-19 16:12:30 -06:00
Glenn Randers-Pehrson
a1d32d08e1
[libpng16] ANNOUNCE that location of GIT repository at SourceForge has changed.
2012-12-18 21:53:17 -06:00
Glenn Randers-Pehrson
350cbf14df
[libpng16] Fixed typo in contrib/pngminim/encoder/README
2012-12-18 14:54:44 -06:00
Glenn Randers-Pehrson
7bde6e23bb
[libpng16] Disassembled the version number in scripts/options.awk (necessary
...
for building on SunOs)
2012-12-18 08:44:26 -06:00
Glenn Randers-Pehrson
5d9dc4563f
[libpng16] Fixed whitespace in libpng.3 manpage.
2012-12-17 20:03:08 -06:00
Glenn Randers-Pehrson
aa41547a4d
[libpng16] Updated manual about functions deprecated in libpng-1.6.x
2012-12-16 16:53:54 -06:00
Glenn Randers-Pehrson
8c3d4f387a
[libpng16] Bump version to 1.6.0beta34
2012-12-15 08:43:12 -06:00
Glenn Randers-Pehrson
6e265d137c
[libpng16] Note in CHANGES that configure files were rebuilt with autoconf-2.69
2012-12-15 08:29:41 -06:00
Glenn Randers-Pehrson
7b26920d9b
[libpng16] Imported from libpng-1.6.0beta33.tar
2012-12-15 07:58:38 -06:00
John Bowler
785a8b1505
[libpng16] Fixed cases of unquoted DESTDIR in Makefile.am
2012-12-15 07:57:31 -06:00
John Bowler
6cf32b460f
[libpng16] Rearranged the ARM-NEON optimizations: Isolated the machine specific
...
code to the hardware subdirectory and added comments to pngrutil.c so that
implementors of other optimizations know what to do.
2012-12-15 07:55:54 -06:00
John Bowler
f758d6c813
[libpng16] Rearranged the ARM-NEON optimizations: Isolated the machine specific
...
code to the hardware subdirectory and added comments to pngrutil.c so that
implementors of other optimizations know what to do.
2012-12-13 11:26:50 -06:00
Glenn Randers-Pehrson
5c2d76fdef
[libpng16] Use "FALL THROUGH" comment consistently in switch statements.
2012-12-09 19:39:30 -06:00
Glenn Randers-Pehrson
e4f124e335
[libpng16] Bump version to 1.6.0beta33
2012-12-09 19:25:42 -06:00
John Bowler
1f84bd7000
[libpng16] Change png_warning() to png_app_error() in pngwrite.c and comment
...
the fall-through condition.
2012-12-09 18:50:49 -06:00
Glenn Randers-Pehrson
b76ab1260d
[libpng16] Fixed typo in png.c (PNG_SET_CHUNK_MALLOC_MAX should be
...
PNG_CHUNK_MALLOC_MAX) that causes the MALLOC_MAX limit not to work (John Bowler)
2012-12-09 17:08:13 -06:00
Glenn Randers-Pehrson
026b295698
[libpng16] Removed an incorrect paragraph about png_benign_error
...
from the manual page.
2012-11-27 14:49:22 -06:00
Glenn Randers-Pehrson
eb8e19baa3
[libpng16] Revised description of libpng15 to libpng16 changes in the manual.
2012-11-26 18:54:33 -06:00
Glenn Randers-Pehrson
661bc6f6b0
[libpng16] Expanded manual description of libpng15 to libpng16 changes.
2012-11-26 18:39:59 -06:00
Glenn Randers-Pehrson
6dae6d8f3b
[libpng16] Imported from libpng-1.6.0beta32.tar
2012-11-25 12:47:44 -06:00
Glenn Randers-Pehrson
5b9a28f2b8
[libpng16] Trivial editing of commentary in pngrutil.c
2012-11-25 12:46:24 -06:00
Glenn Randers-Pehrson
5f4b95e513
[libpng16] Made png_user_version_check() ok to use with libpng version 1.10.x
...
and later.
2012-11-22 16:58:30 -06:00
John Bowler
70850fce0c
[libpng16] Fixed error checking in the simplified write API (Olaf van der Spek)
2012-11-15 00:06:30 -06:00
Glenn Randers-Pehrson
9d1ddbb78f
[libpng16] Fixed several typos and expanded TAB characters.
2012-11-13 19:45:53 -06:00
John Bowler
f2aacefb3f
[libpng16] Added the ability for contrib/libtests/makepng.c to make a PNG with just one
...
color. This is useful for debugging pngstest color inaccuracy reports.
2012-11-13 19:18:53 -06:00
John Bowler
4314d63792
[libpng16] Fixed an intermittent SEGV in pngstest.
2012-11-02 14:08:29 -05:00
Glenn Randers-Pehrson
7b3eefbcfd
[libpng16] Bump version to 1.6.0beta32
2012-11-01 08:37:52 -05:00
Glenn Randers-Pehrson
bb39dc545c
[libpng16] Imported from libpng-1.6.0beta31.tar
2012-11-01 08:26:57 -05:00
John Bowler
520803d57e
[libpng16] Removed non-working ICC profile support code. There was too much
...
code for too little gain; implementing full ICC color correction is maybe
desireable but is left up to applications.
2012-11-01 08:12:47 -05:00
John Bowler
7f912dbeb5
[libpng16] Fixed GUIDs in projects/vstudio. Some were duplicated or missing,
...
resulting in VS2010 having to update the files.
2012-10-27 13:04:56 -05:00
John Bowler
ab1477d662
[libpng16] Made PNG_NO_READ_GAMMA switch off interfaces that depend on
...
READ_GAMMA. Prior to 1.6.0 switching off READ_GAMMA did unpredictable things
to the interfaces that use it (specifically, png_do_background in 1.4 would
simply display composite for grayscale images but do composition
with the incorrect arithmetic for color ones). In 1.6 the semantic
of -DPNG_NO_READ_GAMMA is changed to simply disable any interface that
depends on it; this obliges people who set it to consider whether they
really want it off if they happen to use any of the interfaces in
question (typically most users who disable it won't).
2012-10-27 06:57:12 -05:00
John Bowler
f0fb1746b0
[libpng16] Make builds -DPNG_NO_READ_GAMMA compile (the unit tests still fail).
2012-10-26 08:29:45 -05:00
John Bowler
f8dfd123e2
[libpng16] Changed ICC profile support to allow use of an external color
...
management system (CMS). In practice it is not possible to obtain cHRM
information reliably using just the end-point tags because they do not exist
in the vast majority of profiles. Instead it is necessary to run the endpoints
through the ICC colorimetric intent transform (as described in the v4
spec). Since this is likely to be too much code inside libpng for too
little gain (it implies a fairly complete CMS implementation) the code
has been changed to allow an external CMS to be used. This code is
temporarily disabled until a suitable set of test cases using one or more
external CMS implementations have been implemented.
2012-10-25 19:30:02 -05:00
John Bowler
e6b710cb3f
[libpng16] Made pngvalid so that it will build outside the libpng source tree.
2012-10-25 19:15:55 -05:00
John Bowler
be85fa6027
[libpng16] Undid the erroneous change to vstudio/pngvalid build in
...
libpng-1.6.0beta30.
2012-10-25 19:09:55 -05:00
Glenn Randers-Pehrson
43648b02bc
[libpng16] Bump version to 1.6.0beta31
2012-10-24 11:37:18 -05:00
Glenn Randers-Pehrson
75fde9e99a
[libpng16] Imported from libpng-1.6.0beta30.tar
2012-10-24 11:37:08 -05:00
Glenn Randers-Pehrson
9a82547afe
[libpng16] Fixed build when using #define PNG_NO_READ_GAMMA in png_do_compose()
...
in pngrtran.c (Domani Hannes).
2012-10-24 11:22:35 -05:00
Glenn Randers-Pehrson
a9f44be8c2
[libpng16] Minor documentation edits
2012-10-10 15:02:00 -05:00
John Bowler
e15b1e8136
[libpng16] Added pngunknown files that were omitted from previous checkin
2012-09-30 14:10:43 -05:00
John Bowler
fa63beaa34
[libpng16] Use /MDd for vstudio debug builds.
...
Also added pngunkown to the vstudio builds, fixed build errors and corrected
a minor exit code error in pngvalid if the 'touch' file name is invalid.
2012-09-30 06:53:50 -05:00
John Bowler
c39be26f5a
[libpng16] Add updated WARNING file from libpng 1.5/vstudio
2012-09-29 17:48:53 -05:00
Glenn Randers-Pehrson
c2ac10b502
[master] Imported from libpng-1.5.13.tar
2012-09-27 18:59:32 -05:00
Glenn Randers-Pehrson
6ae34790cc
[libpng16] Added -DZ_SOLO to contrib/pngminim/*/makefile so they will work
...
with zlib-1.2.7
2012-09-27 18:52:30 -05:00
John Bowler
8de49d0921
[libpng16] Marked the broken (bad white point) original HP sRGB profiles
...
correctly and correct comments.
2012-09-27 09:26:49 -05:00
John Bowler
48cbba8e8e
[libpng16] Added a work around for GCC 4.2 optimization bug
2012-09-06 15:47:49 -05:00
John Bowler
b257147015
[libpng16] Changed ICC profile matrix/vector types to not depend on array
...
type rules. By the ANSI-C standard the new types should be identical to the
previous versions, and all known versions of gcc tested with the previous
versions except for GCC-4.2.1 work with this version. The change makes the
ANSI-C rule that const applied to an array of elements applies instead to the
elements in the array moot by explicitly applying const to the base
elements of the png_icc_matrix and png_icc_vector types. The accidental
(harmless) 'const' previously applied to the parameters of two of the
functions have also been removed.
2012-09-06 12:17:00 -05:00
Glenn Randers-Pehrson
73f826cb49
[libpng16] Fixed spelling of "chromaticAdaptationTag" in error messages.
2012-09-05 09:14:37 -05:00
Glenn Randers-Pehrson
933bc842ac
[libpng16] Fix confusion between "adopted" and "adapted" in new comments.
...
Glenn thought the "adopted" were typos and changed them all to "adapted".
This reverts the spelling and adds parenthetical comments when each
word first appears in png.h.
2012-09-04 20:16:25 -05:00
Glenn Randers-Pehrson
329d033d25
[libpng16] Bump version to 1.6.0beta30
2012-09-04 16:59:30 -05:00
Glenn Randers-Pehrson
9c06d78468
[libpng16] Imported from libpng-1.6.0beta29.tar
2012-09-04 16:59:12 -05:00
John Bowler
b98681b49a
[libpng16] Improved ICC profile handling including cHRM chunk generation and
...
fixed Cygwin+MSVC build errors. The ICC profile handling now includes more
checking. Several errors that caused rejection of the profile are now
handled with a warning in such a way that the invalid profiles will be
read by default in release (but not pre-RC) builds but will not be
written by default. The easy part of handling a cHRM chunk is written,
where the ICC profile contains the required data. The more difficult
part plus guessing a gAMA value requires code to pass selected RGB values
through the profile.
2012-09-04 16:35:20 -05:00
John Bowler
53f7051b1b
[libpng] Fixed contrib/examples/png2png.c
2012-09-01 13:26:41 -05:00
John Bowler
d099973c4f
[libpng16] Made makepng and pngtest produce identical PNGs, add "--relaxed"
...
option to pngtest. The "--relaxed" option turns off the benign errors that are
enabled by default in pre-RC builds. makepng can now write ICC profiles
where the length has not been extended to a multiple of 4, and pngtest
now intercepts all libpng errors, allowing the previously-introduced
"--strict test" on no warnings to actually work.
2012-09-01 11:46:14 -05:00
Glenn Randers-Pehrson
97a77a6f7b
[libpng16] Updated simplified API synopses and description of the png_image
...
structure in the manual.
2012-09-01 08:16:51 -05:00
Glenn Randers-Pehrson
b2aba47a6d
[libpng16] Added contrib/examples/* to the *.zip and *.7z distributions.
2012-09-01 06:40:48 -05:00
John Bowler
ed3ca0e3eb
[libpng16] Fixed the simplified API example programs and improved the error
...
message if the version field is not set.
2012-08-31 17:32:36 -05:00
Glenn Randers-Pehrson
fd043e5d0d
[libpng16] Bump version to 1.6.0beta29
2012-08-29 14:18:24 -05:00
Glenn Randers-Pehrson
cc02f89eb2
[libpng16] Imported from libpng-1.6.0beta28.tar
2012-08-29 14:18:15 -05:00
John Bowler
14d0ca620e
[libpng16] Cleaned up and corrected ICC profile handling.
...
contrib/libtests/makepng: corrected 'rgb' and 'gray' cases. profile_error
messages could be truncated; made a correct buffer size calculation and
adjusted pngerror.c appropriately. png_icc_check_* checking improved;
changed the functions to receive the correct color type of the PNG on read
or write and check that it matches the color space of the profile (despite
what the comments said before, there is danger in assuming the app will
cope correctly with an RGB profile on a grayscale image and, since it
violates the PNG spec, allowing it is certain to produce inconsistent
app behavior and might even cause app crashes.) Check that profiles
contain the tags needed to process the PNG (tags all required by the ICC
spec). Removed unused PNG_STATIC from pngpriv.h.
2012-08-25 16:21:46 -05:00
John Bowler
8010217201
[libpng16] Minor cleanup of iCCP processing
2012-08-22 11:26:25 -05:00
Glenn Randers-Pehrson
702053d110
[libpng16] Bump version to 1.6.0beta28
2012-08-17 21:54:45 -05:00
John Bowler
74a9c07fdd
[libpng16] Revised Makefile.am to add unknown test support
2012-08-17 17:40:41 -05:00
John Bowler
d0eef28ee1
[libpng16] Added "tunknown" test and corrected a logic error in
...
png_handle_unknown() when SAVE support is absent. Moved the shell test
scripts for contrib/libtests from the libpng top directory to contrib/libtests.
png_handle_unknown() must always read or skip the chunk, if
SAVE_UNKNOWN_CHUNKS is turned off *and* the application does not set
a user callback an unknown chunk will not be read, leading to a read
error, which was revealed by the "tunknown" test.
2012-08-17 15:30:29 -05:00
John Bowler
3c1f6983c5
[libpng16] Corrected fix for unknown handling in pngtest. This reinstates the
...
libpng handling of unknown chunks other than vpAg and sTER (including
unsafe-to-copy chunks which were dropped before) and eliminates the
repositioning of vpAg and sTER in pngtest.png by changing pngtest.png
(so the chunks are where libpng would put them).
2012-08-16 20:47:34 -05:00
John Bowler
4a6c6df6c7
[libpng16] Allow fine grain control of unknown chunk APIs. This change allows
...
png_set_keep_unknown_chunks() to be turned off if not required and causes
both read and write to behave appropriately (on read this is only possible
if the user callback is used to handle unknown chunks). The change
also removes the support for storing unknown chunks in the info_struct
if the only unknown handling enabled is via the callback, allowing libpng
to be configured with callback reading and none of the unnecessary code.
2012-08-16 16:12:13 -05:00
Glenn Randers-Pehrson
025d415838
[libpng16] Folded long lines and fixed some grammar.
2012-08-16 00:51:44 -05:00
Glenn Randers-Pehrson
810c99583b
[libpng16] Fixed some spelling errors.
2012-08-15 23:20:47 -05:00
John Bowler
e9567514dd
[libpng16] Unknown handling fixes and clean up. This adds more correct option
...
control of the unknown handling, corrects the pre-existing bug where
the per-chunk 'keep' setting is ignored and makes it possible to skip
IDAT chunks in the sequential reader (broken in earlier 1.6 versions).
There is a new test program, test-unknown.c, which is a work in progress
(not currently part of the test suite). Comments in the header files now
explain how the unknown handling works.
2012-08-15 22:53:00 -05:00
Glenn Randers-Pehrson
b593b3f035
[libpng16] Bump version to 1.6.0beta28
2012-08-11 18:32:36 -05:00
Glenn Randers-Pehrson
0f08665bfb
[libpng16] Imported from libpng-1.6.0beta27.tar
2012-08-11 18:31:44 -05:00
Glenn Randers-Pehrson
3744f94fd1
[libpng16] Removed trailing blanks
2012-08-10 19:22:53 -05:00
John Bowler
aa9dea57d7
[libpng16] Work around gcc 3.x and Microsoft Visual Studio 2010 complaints.
...
Both object to the split initialization of num_chunks.
2012-08-10 19:04:08 -05:00
Glenn Randers-Pehrson
ece07cfe9c
[libpng16] Removed the png_sizeof(), png_strlen(), png_memset(), png_memcpy(),
...
and png_memcmp() macros.
2012-08-10 18:19:41 -05:00
Glenn Randers-Pehrson
dbb7e19fda
[libpng16] Consistently use memset(), memcpy(), and memcmp() instead of the
...
png_memset(), png_memcpy(), and png_memcmp() macros.
2012-08-10 17:27:42 -05:00
John Bowler
e2098ba085
[libpng16] Make all three "make check" test programs work without READ or WRITE
...
support. Now "make check" will succeed even if libpng is compiled with
-DPNG_NO_READ or -DPNG_NO_WRITE. The tests performed are reduced, but the
basic reading and writing of a PNG file is always tested by one or more of
the tests.
2012-08-10 17:04:56 -05:00
Glenn Randers-Pehrson
26849f4693
[libpng16] Consistently use png_memset(), png_memcpy(), and png_memcmp(),
...
except in pngtest.c and example.c where these macros are not visible.
2012-08-10 16:01:45 -05:00
John Bowler
ad5a993954
[libpng16] Cause pngtest --strict to fail on any warning from libpng (not just
...
errors) and cause it not to fail at the comparison step if libpng lacks support
for writing chunks that it reads from the input (currently only implemented
for compressed text chunks).
2012-08-10 13:15:07 -05:00
Glenn Randers-Pehrson
6954141484
[libpng16] Add more conditionals for compiling png_fixed().
...
This is a small function, but avoiding compiling it also avoids needing
to link with "-lm" unnecessarily.
2012-08-10 12:56:57 -05:00
John Bowler
ba2dd33d9c
[libpng16] Some files were omitted from a previous checkin. Here they are.
2012-08-10 10:58:01 -05:00
John Bowler
134c5761fa
[libpng16] Fix new leak when text compression is disabled.
2012-08-10 10:49:21 -05:00
John Bowler
865e14fd32
[libpng16] Revised comments about info_ptr->signature, added CHANGES entry.
2012-08-10 08:05:53 -05:00
Glenn Randers-Pehrson
5d1df4fdf4
[libpng16] Removed png_get_signature() and info_ptr->signature from WRITE-only
...
builds. Restored png_get_channels() to WRITE-only builds.
2012-08-10 07:49:44 -05:00
John Bowler
8d3453a22d
[libpng16] Insist on autotools 1.12.1 for git builds because there are security
...
issues with 1.12 and insisting on anything less would allow 1.12 to be used.
2012-08-09 22:57:35 -05:00
Glenn Randers-Pehrson
4430b91363
[libpng16] Restore info_ptr members that were deleted by the previous
...
patch; they are needed by png_set_IHDR() for both read and write. Fix
some ifdefs that caused the contrib/pngminim/ applications to not compile.
2012-08-09 22:24:04 -05:00
John Bowler
dff6f4c4f0
[libpng16Cleanup of png_set_filler(). This function does very different things
...
on read and write. In libpng 1.6 the two cases can be distinguished and
considerable code cleanup, and extra error checking, is possible. This
makes calls on the write side that have no effect be ignored with a
png_app_error(), which can be disabled in the app using
png_set_benign_errors(), and removes the spurious use of usr_channels
on the read side.
2012-08-09 21:17:56 -05:00
Glenn Randers-Pehrson
432c174b64
[libpng16] Eliminated use of png_sizeof(); use sizeof() instead, and use.
...
a consistent style for (sizeof type) and (sizeof (array))
2012-08-09 20:14:48 -05:00
John Bowler
5f5977e708
[libpng16] Re-eliminated the use of strcpy() in pngtest.c. An unncessary use
...
of strcpy() was accidentally re-introduced in libpng16; this change replaces
it with strncpy().
2012-08-09 16:42:42 -05:00
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
c86cf4b7e4
[master] Imported from libpng-1.5.12.tar
2012-07-12 13:13:01 -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
981560ae60
[master] Imported from libpng-1.5.11.tar
2012-06-14 12:53:06 -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
d5a80e0944
[master] Imported from libpng-1.5.10.tar
2012-03-29 06:35:58 -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
5a13159bfc
[master] Imported from libpng-1.5.10rc01.tar
2012-03-19 18:16:05 -05:00
Glenn Randers-Pehrson
51624965e2
[libpng16] Bump version to 1.6.0beta20
2012-03-19 11:04:48 -05:00
Glenn Randers-Pehrson
ce9d8a3f48
[libpng16] Imported from libpng-1.6.0beta19.tar
2012-03-19 10:54:55 -05:00
John Bowler
eda53e5770
[libpng16] Avoid the double gamma correction warning in the simplified API.
...
This allows the --strict option to pass in the pngstest checks
2012-03-18 22:46:28 -05:00
John Bowler
2bc76ffaf1
[ibpng16] Added application error reporting and added chunk names to read
...
benign errors; also added --strict to pngstest - not enabled
yet because a warning is produced.
2012-03-18 22:37:25 -05:00
John Bowler
66efa24241
[libpng16] Removed erroneous setting of DETECT_UNINITIALIZED and added more
...
checks. The code now does a png_error if an attempt is made to do the
row initialization twice; this is an application error and it has
serious consequences because the transform data in png_struct is
changed by each call.
2012-03-18 21:10:29 -05:00
John Bowler
0c11b5f8e7
[libpng16] Work around for duplicate row start calls; added warning messages.
...
This turns on PNG_FLAG_DETECT_UNINITIALIZED to detect app code that
fails to call one of the 'start' routines (not enabled in libpng-1.5
because it is technically an API change, since it did normally work
before.) It also makes duplicate calls to png_read_start_row (an
internal function called at the start of the image read) benign, as
they were before changes to use png_inflate_claim. Somehow webkit is
causing this to happen; this is probably a mis-feature in the zlib
changes so this commit is only a work-round.
2012-03-18 14:39:41 -05:00
Glenn Randers-Pehrson
f5dcba6b9b
[libpng16] Never mind, undid previous change.
2012-03-17 00:21:45 -05:00
Glenn Randers-Pehrson
c26d6e9aac
[libpng16] Revised png_set_text_2() to avoid possible memory corruption
...
when writing.
2012-03-16 23:19:02 -05:00
Glenn Randers-Pehrson
42ed02ed9a
[libpng16] Reverted png_set_itxt(); it would not compile without warnings.
2012-03-16 23:17:27 -05:00
Glenn Randers-Pehrson
31d66245ea
[libpng16] Added png_set_itxt() (work in progress)
2012-03-16 13:53:25 -05:00
Glenn Randers-Pehrson
d9d7a7e8f0
[libpng16] Fixed ANNOUNCE and CHANGES re simplified API and benign errors.
2012-03-16 11:04:30 -05:00
Glenn Randers-Pehrson
d15d124d6d
[libpng16] Bump version to 1.6.0beta19
2012-03-16 08:35:36 -05:00
Glenn Randers-Pehrson
dd6ecbe688
[libpng16] Imported from libpng-1.6.0beta18.tar
2012-03-16 08:34:31 -05:00
John Bowler
aa816c4444
[libpng16] Added configuration support for benign errors and changed the read
...
default. Also changed some warnings in the iCCP and sRGB handling
from to benign errors. Configuration now makes read benign
errors warnings and write benign errors to errors by default (thus
changing the behavior on read). The simplified API always forces
read benign errors to errors (regardless of the system default, unless
this is disabled in which case the simplified API can't be built.)
2012-03-16 07:39:49 -05:00
John Bowler
209b3e4b79
[libpng16] Added output flushing to aid debugging under Visual Studio.
...
This is necessary because the VS2010 output window otherwise simply loses
the error messages on error (they weren't flushed to the window before
the process exited, apparently!)
2012-03-16 07:14:01 -05:00
Glenn Randers-Pehrson
f2715a558a
[libpng16] Revised example.c to put text strings in a temporary character array
...
instead of directly assigning string constants to png_textp members.
This avoids compiler warnings when -Wwrite-strings is enabled.
2012-03-15 19:52:03 -05:00
John Bowler
845ee6af72
[libpng16] Fixed a compiler warning under Cygwin (Windows-7, 32-bit system)
2012-03-10 21:05:19 -06:00
John Bowler
9ff37ea94f
[libpng16] Fix an off-by-one error in the palette index checking function.
2012-03-10 20:03:06 -06:00
Glenn Randers-Pehrson
35f2e1768b
[libpng16] In pngtest, treat benign errors as errors if "-strict" is present.
2012-03-10 19:42:03 -06:00
Glenn Randers-Pehrson
945cb1f9be
[libpng16] Issue a png_benign_error() instead of png_warning() about bad
...
palette index.
2012-03-10 08:48:04 -06:00
Glenn Randers-Pehrson
ae1b45a046
[master] Imported from libpng-1.5.10beta04.tar
2012-03-10 07:08:54 -06:00
Glenn Randers-Pehrson
71db131882
[libpng16] Bump version to 1.6.0beta18
2012-03-09 22:15:09 -06:00
Glenn Randers-Pehrson
bf7661f01b
[libpng16] Imported from libpng-1.6.0beta17.tar
2012-03-09 22:15:01 -06:00
John Bowler
9066919600
[libpng16] If benign errors are disabled use maximum window on ancillary
...
inflate. This works round a bug introduced in 1.5.4 where compressed ancillary
chunks could end up with a too-small windowBits value in the deflate
header.
2012-03-09 22:03:13 -06:00
John Bowler
1ffbe8c7c1
[libpng] Committed new contrib/libtests/makepng.c that was overlooked
...
in a recent patch.
2012-03-09 12:21:51 -06:00
Glenn Randers-Pehrson
8d0215928d
[libpng16] Fixed manual assertion that all of our public macros begin with PNG_
...
Some such as PNGAPI begin with "PNG".
2012-03-09 12:18:18 -06:00
John Bowler
b5d0051dcb
[libpng16] Deflate/inflate was reworked to move common zlib calls into single
...
functions [rw]util.c. A new shared keyword check routine was also added
and the 'zbuf' is no longer allocated on progressive read. It is now
possible to call png_inflate() incrementally.
2012-03-09 09:15:18 -06:00
Glenn Randers-Pehrson
6038b80277
[libpng16] Reject iCCP chunk after the first, even if the first one is invalid.
2012-03-08 10:40:07 -06:00
Glenn Randers-Pehrson
187694b9ec
[master] Imported from libpng-1.5.10beta03.tar
2012-03-06 12:26:33 -06:00
Glenn Randers-Pehrson
b57c1c9e6e
[libpng16] Bump version to 1.6.0beta17
2012-03-05 21:35:40 -06:00
Glenn Randers-Pehrson
0c98cc7023
[libpng16] Imported from libpng-1.6.0beta16.tar
2012-03-05 21:28:03 -06:00
John Bowler
6225b0e61e
[libpng16] Added code to validate the windowBits value passed to deflateInit2().
...
If the call to deflateInit2() is wrong a png_warning will be issued
(in fact this is harmless, but the PNG data produced may be sub-optimal).
2012-03-05 21:26:57 -06:00
John Bowler
d072048925
[libpng16] Correct pngvalid error message
2012-03-05 21:10:11 -06:00
John Bowler
7d4fbb2fbb
[libpng16] Validate the zTXt strings in pngvalid.
2012-03-05 21:02:49 -06:00
John Bowler
42a2b556e9
[libpng16] Made read 'inflate' handling like write 'deflate' handling. The
...
read code now claims and releases png_ptr->zstream, like the write code.
The bug whereby the progressive reader failed to release the zstream
is now fixed, all initialization is delayed, and the code checks for
changed parameters on deflate rather than always calling
deflatedEnd/deflateInit.
2012-03-05 20:57:40 -06:00
John Bowler
e2ae0f2f2b
[libpng16] Fix tarith argument parsing
2012-03-05 20:43:27 -06:00
John Bowler
d6cf3a3791
[libpng16] Added a print out of the maximum observed error to 'tarith ascii'
2012-03-05 20:41:19 -06:00
John Bowler
e741cd592e
[libpng16] Added contrib/libtests/tarith.c to test internal arithmetic
...
functions from png.c. This is a libpng maintainer program used to validate
changes to the internal arithmetic functions.
2012-03-04 20:48:57 -06:00
John Bowler
0ae4f7b705
[libpng16] Changed png_inflate() and calling routines to avoid overflow
...
problems. This is an intermediate check-in that solves the immediate problems
and introduces one performance improvement (avoiding a copy via png_ptr->zbuf.)
Further changes will be made to make ICC profile handling more secure.
2012-03-03 21:10:26 -06:00
John Bowler
29a6ba01a7
[libpng16] Fixed build warnings (MSVC, GCC, GCC v3). Cygwin GCC with default
...
options declares 'index' as a global, causing a warning if it is used as a
local variable. GCC 64-bit warns about assigning a (size_t) (unsigned 64-bit)
to an (int) (signed 32-bit). MSVC, however, warns about using the
unary '-' operator on an unsigned value (even though it is well defined
by ANSI-C to be ~x+1). The padding calculation was changed to use a
different method. Removed the tests on png_ptr->pass.
2012-03-03 20:49:03 -06:00
Glenn Randers-Pehrson
434801a39c
[libpng16] Bump version to 1.6.0beta16
2012-03-02 22:52:13 -06:00
Glenn Randers-Pehrson
79a141876a
[libpng16] Revised scripts/pnglibconf.dfa
2012-03-02 22:50:03 -06:00
Glenn Randers-Pehrson
eeb1bb678d
[libng16] Added palette-index checking while writing.
...
Relocated palette-index checking function from pngrutil.c to pngtrans.c
2012-03-02 22:10:15 -06:00
Glenn Randers-Pehrson
8e92cd51c6
[libpng16] Bump version to 1.6.0beta16
2012-03-02 14:04:36 -06:00
Glenn Randers-Pehrson
363387c9c0
[libpng16] Imported from libpng-1.6.0beta15.tar
2012-03-02 13:45:00 -06:00
John Bowler
6f237b6bf0
[libpng16] Remove whitespace at end of lines
2012-03-02 13:20:52 -06:00
John Bowler
a0ddf0b5f2
[libpng16] Minor update to pngstest.c, chmod 755 gentests.sh
2012-03-02 06:56:33 -06:00
Glenn Randers-Pehrson
5541ea8aaf
[libpng16] Relocated declarations of index and padding in new index-checking
...
code.
2012-03-01 22:18:09 -06:00
John Bowler
cf49919686
[libpng16] Fixed some bugs in ICC profile writing. The code should now accept
...
all potentially valid ICC profiles and reject obviously invalid ones.
It now uses png_error() to do so rather than casually writing a PNG
without the necessary color data.
2012-03-01 21:54:07 -06:00
Glenn Randers-Pehrson
363ae65e2b
[libpng16] Added tests for invalid palette index while reading and writing
...
(work in progress, the latter isn't finished).
2012-03-01 21:39:29 -06:00
John Bowler
cb129a6234
[libpng16] Improved pngstest fine tuning of error numbers, new test file
...
generator. The generator generates images that test the full range of sample
values, allow the error numbers in pngstest to be tuned and checked. makepng
also allows generation of images with extra chunks, although this is
still work-in-progress.
2012-03-01 21:26:54 -06:00
John Bowler
dee7577330
[libpng16] Added PNG_IMAGE_FLAG_FAST for the benefit of applications that
...
store intermediate files, or intermediate in-memory data, while processing
image data with the simplified API. The option makes the files larger
but faster to write and read. pngstest now uses this by default; this
can be disabled with the --slow option.
2012-03-01 18:55:54 -06:00
John Bowler
1c25b9b06b
[libpng16] Fixed transparent pixel and 16-bit rgb tests in pngstest and removed
...
a spurious check in pngwrite.c
2012-02-29 10:49:28 -06:00
John Bowler
0a92b23c4b
[libpng16] Rewrote pngstest.c for substantial speed improvement.
2012-02-29 06:47:55 -06:00
Glenn Randers-Pehrson
5408b613f8
[libpng16] Removed unused "current_text" members of png_struct
...
and the png_free() of png_ptr->current_text from pngread.c
2012-02-27 08:09:42 -06:00
Glenn Randers-Pehrson
b7e32059d3
[libpng16] Bump version to 1.6.0beta15
2012-02-26 21:38:19 -06:00
Glenn Randers-Pehrson
faf38eea03
[libpng16] Imported from libpng-1.6.0beta14.tar
2012-02-26 21:38:09 -06:00
Glenn Randers-Pehrson
9eb125e927
[libpng16] Updated Makefile.in
...
Added information about the new limits in the manual.
2012-02-24 22:04:53 -06:00
Glenn Randers-Pehrson
203e6dd7cf
[libpng16] Checked in new Makefile.am that maintains pngusr.dfa
2012-02-24 15:56:01 -06:00
Glenn Randers-Pehrson
16bb03b8b4
[libpng16] Bump version to 1.6.0beta14
2012-02-24 11:52:56 -06:00
Glenn Randers-Pehrson
df44c4c4d9
[libpng16] Imported from libpng-1.6.0beta13.tar
2012-02-24 11:45:34 -06:00
Glenn Randers-Pehrson
4690b89eaa
[libpng16] Added PNG_SAFE_LIMITS feature to pnglibconf.dfa, pngpriv.h, and new pngusr.dfa
...
to reset the user limits to safe ones if PNG_SAFE_LIMITS is defined.
To enable, use CPPFLAGS=-DPNG_SAFE_LIMITS on the configure command
or put #define PNG_SAFE_LIMITS_SUPPORTED in pnglibconf.h.prebuilt.
(Reverted previous implementation of PNG_SECURE.)
2012-02-24 11:43:31 -06:00
Glenn Randers-Pehrson
10c0693210
[libpng16] Added PNG_SECURE feature to pnglibconf.dfa and new pngusr.dfa file
...
to reset the user limits to safe ones if PNG_SECURE is defined.
2012-02-23 18:41:13 -06:00
Glenn Randers-Pehrson
3484a760f4
[master] Bump version to 1.5.10beta01
2012-02-22 09:06:29 -06:00
Glenn Randers-Pehrson
715423c8d6
Merge branch 'libpng15'
...
Conflicts:
ANNOUNCE
CHANGES
CMakeLists.txt
INSTALL
LICENSE
Makefile.am
Makefile.in
README
TODO
aclocal.m4
config.guess
config.h.in
config.sub
configure
configure.ac
contrib/gregbook/COPYING
contrib/gregbook/Makefile.sgi
contrib/gregbook/Makefile.unx
contrib/gregbook/README
contrib/gregbook/readpng2.c
contrib/gregbook/rpng-x.c
contrib/gregbook/rpng2-win.c
contrib/gregbook/rpng2-x.c
contrib/pngminim/decoder/README
contrib/pngminim/decoder/makefile
contrib/pngminim/decoder/pngusr.h
contrib/pngminim/encoder/README
contrib/pngminim/encoder/makefile
contrib/pngminim/encoder/pngusr.h
contrib/pngminim/preader/README
contrib/pngminim/preader/makefile
contrib/pngminim/preader/pngusr.h
contrib/pngminus/makefile.std
contrib/pngsuite/README
contrib/visupng/PngFile.c
contrib/visupng/PngFile.h
contrib/visupng/VisualPng.c
depcomp
example.c
install-sh
libpng-1.4.9beta01.txt
libpng-manual.txt
libpng.3
libpng.txt
libpngpf.3
ltmain.sh
png.5
png.c
png.h
pngconf.h
pngerror.c
pngget.c
pngmem.c
pngpread.c
pngpriv.h
pngread.c
pngrio.c
pngrtran.c
pngrutil.c
pngset.c
pngtest.c
pngtest.png
pngtrans.c
pngwio.c
pngwrite.c
pngwtran.c
pngwutil.c
projects/visualc6/README.txt
projects/visualc6/libpng.dsp
projects/visualc6/pngtest.dsp
projects/visualc71/README.txt
projects/visualc71/libpng.sln
projects/visualc71/libpng.vcproj
projects/visualc71/pngtest.vcproj
projects/visualc71/zlib.vcproj
projects/vstudio/libpng/libpng.vcxproj
projects/vstudio/pngtest/pngtest.vcxproj
projects/vstudio/readme.txt
projects/vstudio/vstudio.sln
projects/vstudio/zlib.props
projects/vstudio/zlib/zlib.vcxproj
scripts/README.txt
scripts/descrip.mms
scripts/libpng-config-head.in
scripts/libpng.pc.in
scripts/makefile.32sunu
scripts/makefile.64sunu
scripts/makefile.aix
scripts/makefile.amiga
scripts/makefile.bc32
scripts/makefile.beos
scripts/makefile.bor
scripts/makefile.cegcc
scripts/makefile.cygwin
scripts/makefile.darwin
scripts/makefile.dec
scripts/makefile.dj2
scripts/makefile.elf
scripts/makefile.freebsd
scripts/makefile.gcc
scripts/makefile.hp64
scripts/makefile.hpgcc
scripts/makefile.hpux
scripts/makefile.ibmc
scripts/makefile.intel
scripts/makefile.knr
scripts/makefile.linux
scripts/makefile.mingw
scripts/makefile.mips
scripts/makefile.msc
scripts/makefile.ne12bsd
scripts/makefile.netbsd
scripts/makefile.openbsd
scripts/makefile.os2
scripts/makefile.sco
scripts/makefile.sggcc
scripts/makefile.sgi
scripts/makefile.so9
scripts/makefile.solaris
scripts/makefile.solaris-x86
scripts/makefile.std
scripts/makefile.sunos
scripts/makefile.tc3
scripts/makefile.vcwin32
scripts/makefile.watcom
scripts/makevms.com
scripts/png32ce.def
scripts/pngos2.def
2012-02-22 09:01:10 -06:00
Glenn Randers-Pehrson
d57dc304c4
[libpng15] Eliminated redundant png_push_read_tEXt|zTXt|iTXt|unknown code
2012-02-22 08:29:19 -06:00
Glenn Randers-Pehrson
17ba5de88f
[libpng16] Eliminated redundant png_push_read_tEXt|zTXt|iTXt|unknown code from
...
pngpread.c and use the sequential png_handle_tEXt, etc., in pngrutil.c;
now that png_ptr->buffer is inaccessible to applications, the special
handling is no longer useful.
2012-02-21 14:49:56 -06:00
Glenn Randers-Pehrson
8a2033d77f
[libpng15] Eliminated redundant png_push_read_tEXt|zTXt|iTXt|unknown code from
...
pngpread.c and use the sequential png_handle_tEXt, etc., in pngrutil.c;
now that png_ptr->buffer is inaccessible to applications, the special
handling is no longer useful.
Fixed bug with png_handle_hIST with odd chunk length (Frank Busse).
2012-02-21 14:22:01 -06:00
Glenn Randers-Pehrson
932d7ac5e9
[libpng15]
...
Always put the CMAKE_LIBRARY in "lib" (removed special WIN32 case).
Removed empty vstudio/pngstest directory (Clifford Yapp).
2012-02-21 14:19:52 -06:00
Glenn Randers-Pehrson
f9accb9df2
[libpng15] Bump version to 1.5.10beta01
2012-02-18 23:33:18 -06:00
Glenn Randers-Pehrson
7a4e497b62
[libpng15] Imported from libpng-1.5.9.tar
2012-02-18 23:32:59 -06:00
Glenn Randers-Pehrson
0207529f27
[libpng15] Imported from libpng-1.5.9rc01.tar
2012-02-18 23:32:49 -06:00
Glenn Randers-Pehrson
7d5bf79d88
[libpng16] Bump version to 1.6.0beta13
2012-02-18 22:54:56 -06:00
Glenn Randers-Pehrson
a4badc4b50
[libpng16] Imported from libpng-1.6.0beta12.tar
2012-02-17 17:07:54 -06:00
Glenn Randers-Pehrson
b0606ea043
[libpng16] Increase num_palette to invalid_index + 1, not to invalid_index.
2012-02-16 20:48:28 -06:00
Glenn Randers-Pehrson
566fb611b6
[libpng16] Bump version to 1.6.0beta12
2012-02-16 20:24:39 -06:00
Glenn Randers-Pehrson
c737b7cf70
[libpng16] Imported from libpng-1.6.0beta11.tar
2012-02-16 20:16:09 -06:00
Glenn Randers-Pehrson
67dba43998
[libpng16] Check for invalid palette index while reading paletted PNG. When
...
one is found, issue a warning and increase png_ptr->num_palette accordingly.
Apps are responsible for checking to see if that happened.
2012-02-16 20:15:13 -06:00
John Bowler
bce7988230
[libpng16] Fixed fixed/float API export conditionals. 1) If FIXED_POINT or
...
FLOATING_POINT options were switched off, png.h ended up with lone ';'
characters. This is not valid ANSI-C outside a function. The ';'
characters have been moved inside the definition of PNG_FP_EXPORT and
PNG_FIXED_EXPORT. 2) If either option was switched off, the declaration
of the corresponding functions were completely omitted, even though some
of them are still used internally. The result is still valid, but
produces warnings from gcc with some warning options (including -Wall). The
fix is to cause png.h to declare the functions with PNG_INTERNAL_FUNCTION
when png.h is included from pngpriv.h.
2012-02-13 11:45:22 -06:00
Glenn Randers-Pehrson
a08f60352c
[libpng15] Removed tests for no-longer-used *_EMPTY_PLTE_SUPPORTED
...
from pngstruct.h
2012-02-11 07:27:34 -06:00
Glenn Randers-Pehrson
0bddb27e75
[libpng15] Removed unused macro definition from pngread.c
2012-02-11 07:26:03 -06:00
Glenn Randers-Pehrson
864270e18f
[libpng16] Fixed a memory overwrite bug in simplified read of RGB PNG with
...
Fixed a memory overwrite bug in simplified read of RGB PNG with
non-linear gamma Also bugs in the error checking in pngread.c and changed
quite a lot of the checks in pngstest.c to be correct; either correctly
written or not over-optimistic. The pngstest changes are insufficient to
allow all possible RGB transforms to be passed; pngstest cmppixel needs
to be rewritten to make it clearer which errors it allows and then changed
to permit known inaccuracies.
2012-02-10 17:13:13 -06:00
Glenn Randers-Pehrson
74df4f1956
[libpng16] Removed some unused arrays from png_read_push_finish_row().
2012-02-10 15:19:34 -06:00
Glenn Randers-Pehrson
a67ddd4b9f
[libpng15] Removed two unused definitions from scripts/pnglibconf.h.prebuilt
2012-02-06 09:10:06 -06:00
John Bowler
aa725a375c
[libpng16] Corrected estimate of error in libpng png_set_rgb_to_gray API.
...
The API is extremely inaccurate for sRGB conversions because it uses an 8-bit
intermediate linear value and it does not use the sRGB transform, so it
suffers from the known instability in gamma transforms for values close
to 0 (see Poynton). The net result is that the calculation has a maximum
error of 14.99/255; 0.5/255^(1/2.2). pngstest now uses 15 for the
permitted 8-bit error. This may still not be enough because of arithmetic
error.
2012-02-04 15:11:16 -06:00
Glenn Randers-Pehrson
5578c3719e
[libpng16] Updated documentation about the simplified API.
2012-02-04 10:31:38 -06:00
Glenn Randers-Pehrson
ce3c7330ba
[libpng16] Revised test-pngstest.sh to report PASS/FAIL for each image.
2012-02-04 07:35:34 -06:00
John Bowler
c8348f80d5
[libpng16] Fix character count in pngstest command in
...
projects/owatcom/pngstest.tgt
2012-02-03 21:40:07 -06:00
Glenn Randers-Pehrson
612d52afce
[libpng16] Fixed some editing cruft in libpng-manual.txt and libpng.3
2012-02-03 21:14:33 -06:00
Glenn Randers-Pehrson
a7e9d7bfc2
Merge branch 'libpng15' of ssh://libpng.git.sourceforge.net/gitroot/libpng/libpng into libpng15
2012-02-03 16:01:32 -06:00
Glenn Randers-Pehrson
28c3a2f9f9
[libpng15] Imported from libpng-1.5.9beta01.tar
2012-02-03 15:59:42 -06:00
Glenn Randers-Pehrson
df0773c1b9
[libpng15] Rebuilt configure scripts with automake-1.11.2
2012-02-03 15:56:22 -06:00
Glenn Randers-Pehrson
3449169622
[libpng16] Bump version to 1.6.0beta11
2012-02-03 02:01:02 -06:00
Glenn Randers-Pehrson
ead660ae1e
[libpng16] Imported from libpng-1.6.0beta10.tar
2012-02-03 01:56:26 -06:00
Glenn Randers-Pehrson
04afaab56a
[libpng16] Bump version to 1.6.0beta10
2012-02-03 00:39:02 -06:00
Glenn Randers-Pehrson
781a90b358
[libpng16] Updated list of test images in CMakeLists.txt
2012-02-02 15:48:55 -06:00
John Bowler
61d7058b5b
[libpng16] Added Z_SOLO for zlib-1.2.6+ and correct pngstest tests
2012-02-02 08:37:11 -06:00
Glenn Randers-Pehrson
db6850b389
[libpng16] Bump version to 1.6.0beta10
2012-02-01 15:41:43 -06:00
Glenn Randers-Pehrson
eda298bc01
[libpng] Note in CHANGES that Makefile.in and configure were reverted
...
to libpng-1.6.0beta05 versions.
2012-02-01 15:27:17 -06:00
John Bowler
516c9c97a6
[libpng16] Attempt to fix problem with autogen.sh
...
Renamed internal configure variable from prefix_TRUE to DO_PNG_PREFIX_TRUE
2012-02-01 07:14:24 -06:00
Glenn Randers-Pehrson
902dbe619e
Merge branch 'libpng15' of ssh://libpng.git.sourceforge.net/gitroot/libpng/libpng into libpng15
...
Conflicts:
ANNOUNCE
2012-01-31 23:22:09 -06:00
Glenn Randers-Pehrson
0f59bbb5b6
[libpng15] Imported from libpng-1.5.8.tar
2012-01-31 23:12:47 -06:00
Glenn Randers-Pehrson
0d4d0b4d32
[libpng16] Bump version to libpng-1.6.0beta09.tar
2012-01-31 22:58:08 -06:00
Glenn Randers-Pehrson
5bffd6c6d5
[libpng16] Imported from libpng-1.6.0beta08.tar
2012-01-31 22:46:45 -06:00
Glenn Randers-Pehrson
816ff328d2
[libpng16] Updated CHANGES and ANNOUNCE with new information about autogen.sh
2012-01-31 22:26:34 -06:00
Glenn Randers-Pehrson
34dca8f8e8
[libpng16] Updated INSTALL to explain that autogen.sh must be run in a GIT
...
clone, not in a directory extracted from a tar distribution.
2012-01-31 22:15:30 -06:00
John Bowler
3167541570
[libpng16] Fixed 'prefix' builds on clean systems. The generation of pngprefix.h
...
should not require itself.
2012-01-31 21:01:49 -06:00
John Bowler
6437604a5e
[libpng16] Fix comment in scripts/pnglibconf.dfa
2012-01-31 20:58:02 -06:00
Glenn Randers-Pehrson
2dd49fbeae
[libpng16] Updated "ftbb*.png" list in the owatcom and vstudio projects.
2012-01-31 08:27:32 -06:00
John Bowler
f1c0678c16
[libpng16] Fixed non-configure builds (don't include pngprefix.h in them)
2012-01-31 07:37:46 -06:00
John Bowler
42369ccd85
[libpng16] Added symbol prefixing that allows all the libpng external symbols
...
to be prefixed (suggested by Reuben Hawkins). This is work in progress that
breaks some non-configure builds.
2012-01-31 07:28:13 -06:00
John Bowler
572b078d8c
[libpng16] Cleaned up pngpriv.h to consistently declare all functions and data.
...
Also eliminated PNG_CONST_DATA, which is apparently not needed but we
can't be sure until it is gone.
2012-01-31 07:09:34 -06:00
John Bowler
40ca77a721
[libpng16] Improved pngstest speed by not doing redundant tests and add const
...
to the background parameter of png_image_finish_read. The --background
option is now done automagically only when required, so that commandline
option no longer exists.
2012-01-28 23:19:42 -06:00
John Bowler
05cbe5ae28
[libpng16] Moved automake options to AM_INIT_AUTOMAKE in configure.ac
...
Added color-tests, silent-rules (Not yet implemented in Makefile.am) and
version checking to configure.ac
2012-01-28 18:06:55 -06:00
Glenn Randers-Pehrson
5cdff4144e
[libpng16] Divide pngstest into separate runs for basic and transparent images.
2012-01-28 01:07:34 -06:00
John Bowler
feecc898d9
[libpng16] Check libtool/libtoolize version number (2.4.2) in configure.ac
2012-01-28 00:48:08 -06:00
John Bowler
3a1d63dc69
[libpng16] Fixed Image::colormap misalignment in pngstest.c
2012-01-28 00:11:53 -06:00
Glenn Randers-Pehrson
573a51143a
[libpng16] bump version to 1.6.0beta08
2012-01-27 22:37:58 -06:00
Glenn Randers-Pehrson
6690011811
[libpng16] Imported from libpng-1.6.0beta07.tar
2012-01-27 22:29:22 -06:00
Glenn Randers-Pehrson
dde1f98626
[libpng16] Committed 5 new or renamed files in contrib/pngsuite.
2012-01-27 20:35:35 -06:00
Glenn Randers-Pehrson
aaf1179ec1
[libpng16] Added two images to contrib/pngsuite (1-bit and 2-bit transparent
...
grayscale), and renamed three whose names were inconsistent with those in
pngsuite/README.txt.
2012-01-27 20:07:00 -06:00
John Bowler
e044649282
[libpng16] Removed scripts/*m4 and updated autogen.sh
2012-01-27 12:49:15 -06:00
John Bowler
a23f3dbcb6
[libpng16] Freeze libtool files in the 'scripts' directory.
...
This version of autogen.sh attempts to dissuade people from running it when
it is not, or should not, be necessary.
2012-01-27 10:24:21 -06:00
Glenn Randers-Pehrson
a12d2328b4
[libpng16] Set CMAKE_LIBRARY_OUTPUT_DIRECTORY to "lib" on all platforms
...
(C. Yapp).
2012-01-26 17:39:05 -06:00
Glenn Randers-Pehrson
95a8a665e4
[libpng16] Conditionalize the install rules for MINGW and CYGWIN
...
in CMakeLists.txt
2012-01-25 16:46:05 -06:00
Glenn Randers-Pehrson
9ca5f1bdc8
[libpng15] Added missing date to final CHANGES entry.
2012-01-25 16:31:13 -06:00
Glenn Randers-Pehrson
9f01d0d665
[libpng15] Imported from libpng-1.5.8rc02.tar
2012-01-25 16:11:54 -06:00
Glenn Randers-Pehrson
da544d7d3e
[libpng15] Conditionalize install rules for MINGW and CYGWIN in CMakeLists.txt
2012-01-25 16:08:04 -06:00
John Bowler
da2194c0d5
[libpng16] Rewrote autogen.sh to run autoreconf
...
instead of running tools one-by-one.
2012-01-25 08:30:24 -06:00
John Bowler
1eb2c48458
[libpng16] Updated configure.ac from autoupdate: added --enable-werror option.
...
Also some layout regularization and removal of introduced tab characters
(replaced with 3-character indentation). Obsolete macros identified by
autoupdate have been removed; the replacements are all in 2.59 so
the pre-req hasn't been changed. --enable-werror checks for support
for -Werror (or the given argument) in the compiler. This mimics the
gcc configure option by allowing -Werror to be turned on safely; without
the option the tests written in configure itself fail compilation because
they cause compiler warnings.
2012-01-25 08:07:29 -06:00
John Bowler
8fb6c6a9b3
[libpng16] Eliminated Intel icc/icl compiler warnings. The Intel (GCC derived)
...
compiler issues slightly different warnings from those issued by the
current vesions of GCC. This eliminates those warnings by
adding/removing casts and small code rewrites.
2012-01-25 07:47:44 -06:00
John Bowler
9c7f99c9cb
[libpng16] Remove remains of simplified API sPLT experiment from pngpriv.h
2012-01-25 07:35:47 -06:00
Glenn Randers-Pehrson
99c7ad2904
[libpng16] bump version to 1.6.0beta07
2012-01-24 08:06:01 -06:00
Glenn Randers-Pehrson
e7b4d26ec1
[libpng16] Imported from libpng-1.6.0beta06.tar
2012-01-24 08:05:42 -06:00
John Bowler
c35f888c46
[libpng16] Finish patching pngstest.c
2012-01-24 07:40:28 -06:00
John Bowler
5635573cfc
[libpng16] Fixed Min/GW uninstall to remove libpng.dll.a
2012-01-23 23:01:27 -06:00
Glenn Randers-Pehrson
fea2a877c8
[libpng16] Added some whitespace in comments.
2012-01-23 22:52:59 -06:00
John Bowler
5bc90389bf
[libpng16] Added color-map support to simplified API.
...
This is an initial version for review; the documentation has not yet been
updated.
2012-01-23 22:43:22 -06:00
Glenn Randers-Pehrson
2312167d51
[libpng16] Increased warning buffer in pngerror.c from 128 to 192.
2012-01-23 22:34:15 -06:00
Glenn Randers-Pehrson
edbcd02133
[libpng16] bump version to 1.6.0beta06
2012-01-16 07:50:01 -06:00
John Bowler
04336ba10f
[libpng16] Add palette support to the simplified APIs. This commit
...
changes some of the macro definitions in png.h, app code may need
corresponding changes.
2012-01-16 07:48:36 -06:00
Glenn Randers-Pehrson
ea8d0b9408
[libpng15] Imported from libpng-1.5.8beta01.tar
2012-01-14 20:59:14 -06:00
Glenn Randers-Pehrson
da1c5ca65a
[libpng16] Imported from libpng-1.6.0beta05.tar
2012-01-14 20:44:14 -06:00
John Bowler
00c6a9a62c
[libpng16] Fix bug in pngerror.c: some long warnings were being improperly
...
truncated (bug introduced in libpng-1.5.3beta05).
2012-01-14 19:44:43 -06:00
Glenn Randers-Pehrson
665031e834
[libpng16] Fix two typos in pngpriv.h comments
2012-01-13 22:03:10 -06:00
Glenn Randers-Pehrson
0501c1c570
[libpng16] Describe new simplified API in the manual pages
...
and cleaned up some indentation problems.
2012-01-11 14:00:52 -06:00
Glenn Randers-Pehrson
1531bd61a0
[libpng16] Updated copyright year to 2012
2012-01-01 14:45:04 -06:00
Glenn Randers-Pehrson
d9fc0622a1
[libpng16] bump version to 1.6.0beta05
2011-12-29 21:13:53 -06:00
Glenn Randers-Pehrson
6e4184249c
[libpng16] Imported from libpng-1.6.0beta04.tar
2011-12-29 21:01:01 -06:00
Glenn Randers-Pehrson
04ab33560f
[libpng16] Revised contrib/pngminus/pnm2png.c to avoid warnings
...
when png_uint_32 and unsigned long are of different sizes.
2011-12-29 10:24:50 -06:00
Glenn Randers-Pehrson
0522f269e0
[libpng16] Update png_err() to use new typecast.
2011-12-29 10:02:24 -06:00
John Bowler
fcd301daed
[libpng16] Changed png_memcpy to C assignment where appropriate. Changed all
...
those uses of png_memcpy that were doing a simple assignment to assignments
(all those cases where the thing being copied is a non-array C L-value.)
Added some error checking to png_set_*() routines and removed the
reference to the non-exported function png_memcpy() from example.c. Fixed
the Visual C 64-bit build - it requires jmp_buf to be aligned, but it had
become misaligned.
2011-12-28 21:34:27 -06:00
John Bowler
4f67e40898
[libpng16] Add 'const' to png_structrp arguments of png_set_*() APIs.
...
Because these APIs store to the png_info they can take a
png_const_structrp now that the error routines also accept
one of these.
2011-12-28 08:43:37 -06:00
Gilles Espinasse
f87ef8bcb5
[ibpng16] Moved AC_MSG_CHECKING([if libraries can be versioned]) later
...
to the proper location in configure.ac (Gilles Espinasse).
2011-12-26 13:10:01 -06:00
Glenn Randers-Pehrson
a5bf4e3767
[libpng16] Initialize "passes" variable in pngread.c to avoid compiler warning.
...
It was not actually possible to use it uninitialized but gcc doesn't know that.
2011-12-24 09:27:20 -06:00
John Bowler
5d56786eff
[libpng16] Implemented 'restrict' for png_info and png_struct.
...
Added new "png_structrp" typedef. Because of the
way libpng works both png_info and png_struct are always accessed via a
single pointer. This means adding C99 'restrict' to the pointer gives
the compiler some opportunity to optimize the code. This change allows that.
2011-12-24 09:12:00 -06:00
John Bowler
d7c22fb7ec
[libpng16] Added pngvalid.c compile time checks for const APIs.
2011-12-24 08:29:20 -06:00
Glenn Randers-Pehrson
939310bac1
[libpng16] Update CHANGES and ANNOUNCE
2011-12-24 08:27:41 -06:00
John Bowler
29fca0d497
[libpng16] Enabled png_get_sCAL_fixed() if floating point APIs are enabled.
...
Previously it was disabled whenever internal fixed point arithmetic was
selected, which meant it didn't exist even on systems where FP was available
but not preferred.
2011-12-24 07:57:43 -06:00
John Bowler
df477e4652
[libpng16] Eliminated png_info_destroy. It is now used only in png.c
...
and only calls one other internal function and memset.
2011-12-24 07:47:02 -06:00
Glenn Randers-Pehrson
5a956a7a58
[libpng16] Began a manual section about libpng15 to libpng16 differences.
2011-12-22 14:23:37 -06:00
Glenn Randers-Pehrson
67ee8cee39
[libpng16] bump version to 1.6.0beta04
2011-12-22 08:34:26 -06:00
Glenn Randers-Pehrson
28d9339777
[libpng16] Imported from libpng-1.6.0beta03.tar
2011-12-22 08:14:43 -06:00
John Bowler
bc79d70965
[libpng16] commit updated scripts
2011-12-22 08:12:57 -06:00
John Bowler
40b2603687
[libpng16] Start-up code size improvements, error handler flexibility. These
...
changes alter how the tricky allocation of the initial png_struct and png_info
structures are handled. png_info is now handled in pretty much the same
way as everything else, except that the allocations handle NULL return
silently. png_struct is changed in a similar way on allocation and on
deallocation a 'safety' error handler is put in place (which should never
be required). The error handler itself is changed to permit mismatches
in the application and libpng error buffer size; however, this means a
silent change to the API to return the jmp_buf if the size doesn't match
the size from the libpng compilation; libpng now allocates the memory and
this may fail. Overall these changes result in slight code size
reductions; however, this is a reduction in code that is always executed
so is particularly valuable. Overall on a 64-bit system the libpng DLL
decreases in code size by 1733 bytes. pngerror.o increases in size by
about 465 bytes because of the new functionality.
2011-12-22 08:09:15 -06:00
Glenn Randers-Pehrson
ad41b8838a
[libpng16] Updated declaration of png_get_sCAL_fixed().
2011-12-22 07:31:13 -06:00
John Bowler
1d7f56ab64
[libpng16] Failed to commit pngread.c from latest patch.
2011-12-21 20:14:23 -06:00
Glenn Randers-Pehrson
3c1c95399b
[libpng16] Added #ifdef PNG_USER_MEM_SUPPORTED in pngmem.c where needed.
2011-12-21 18:11:51 -06:00
John Bowler
d332c67da7
[libpng16] Start-up code size improvements, error handler flexibility.
...
These changes alter how the tricky allocation of the initial png_struct and
png_info structures are handled. png_info is now handled in pretty much the
same way as everything else, except that the allocations handle NULL return
silently. png_struct is changed in a similar way on allocation and on
deallocation a 'safety' error handler is put in place (which should never
be required). The error handler itself is changed to permit mismatches
in the application and libpng error buffer size; however, this means a
silent change to the API to return the jmp_buf if the size doesn't match
the size from the libpng compilation; libpng now allocates the memory and
this may fail. Overall these changes result in slight code size
reductions; however, this is a reduction in code that is always executed
so is particularly valuable. Overall on a 64-bit system the libpng DLL
decreases in code size by 1733 bytes. pngerror.o increases in size by
about 465 bytes because of the new functionality.
2011-12-21 17:36:12 -06:00
Glenn Randers-Pehrson
9287447cef
[libpng15] Updated some "last changed" dates
2011-12-21 09:03:30 -06:00
Glenn Randers-Pehrson
b74fb4e49c
[libpng15] Bump version to libpng-1.6.0beta03
2011-12-21 08:43:21 -06:00
Glenn Randers-Pehrson
a6f369b150
[libpng16] Imported from libpng-1.6.0beta02.tar
2011-12-21 08:29:30 -06:00
Glenn Randers-Pehrson
13831bc06e
[libpng16] Updated "last changed" dates
2011-12-21 08:28:28 -06:00
Glenn Randers-Pehrson
adf049e435
[libpng16] Removed references to bsconfig.h from makefiles
2011-12-21 08:26:42 -06:00
John Bowler
681c1fc02a
[libpng16] Correct configure builds where build and source directories are
...
separate. The include path of 'config.h' was erroneously made relative in
pngvalid.c in libpng 1.5.7.
2011-12-18 06:20:22 -06:00
John Bowler
ba6fbc57ba
[libpng16] Revised config.h handling; added bsconfig.h, deleted pngconfig.h
2011-12-17 14:21:54 -06:00
Glenn Randers-Pehrson
d1dceee2f7
[libpng] #include "pngconfig.h" in pngvalid.c
2011-12-17 10:21:51 -06:00
Glenn Randers-Pehrson
94531034cc
[libpng16] Fixed comment in pngconfig.h (cut-and-paste error)
2011-12-17 10:09:36 -06:00
Glenn Randers-Pehrson
751a93f3ec
[libpng16] Added pngconf.h
2011-12-17 10:01:00 -06:00
Glenn Randers-Pehrson
0b3634bcc4
[libpng16] Reverted install of pngconfig.h
2011-12-17 09:57:00 -06:00
Glenn Randers-Pehrson
efaeadaa86
[libpng16] Added pngconfig.h file. This indirect reference to config.h avoids
...
problems with build scripts that search for config.h and find an
inappropriate one in the standard paths.
2011-12-17 09:06:34 -06:00
Glenn Randers-Pehrson
d35a3a826e
[libpng15] Removed '#include config.h"' from contrib/libtests/pngvalid.c.
...
It's not needed and causes trouble for VPATH building.
2011-12-16 14:19:39 -06:00
Glenn Randers-Pehrson
c4f94cbd08
[libpng15] Bump version to libpng-1.6.0beta02
2011-12-15 13:11:25 -06:00
Glenn Randers-Pehrson
26aad85204
[libpng16] Imported from libpng-1.6.0beta01.tar
2011-12-15 10:31:17 -06:00
Glenn Randers-Pehrson
e23fedc9de
Merge branch 'libpng15' of ssh://libpng.git.sourceforge.net/gitroot/libpng/libpng into libpng15
2011-12-15 09:54:00 -06:00
Glenn Randers-Pehrson
cd3f5bb507
[libpng15] Imported from libpng-1.5.7.tar
2011-12-15 09:50:23 -06:00
John Bowler
c4081f05c8
[libpng16] Updated CMakeLists.txt to account for relocated and new test programs.
2011-12-08 09:53:00 -06:00
John Bowler
eb26ee6602
[libpng16] Fixed race conditions in parallel make builds. With higher degrees
...
of parallelism during 'make' the use of the same temporary file names such
as 'dfn*' can result in a race where a temporary file from one arm of the
build is deleted or overwritten in another arm. This changes the
temporary files for suffix rules to always use $* and ensures that the
non-suffix rules use unique file names.
2011-12-08 09:37:24 -06:00
Glenn Randers-Pehrson
b0270a9e47
Merge branch 'libpng15' of ssh://libpng.git.sourceforge.net/gitroot/libpng/libpng into libpng15
2011-12-08 08:50:29 -06:00
Glenn Randers-Pehrson
52cbf46f30
[libpng15] Imported from libpng-1.5.7rc03.tar
2011-12-08 08:44:15 -06:00
John Bowler
d61b42c81d
[libpng15] Updated CMakeLists.txt to account for the relocation of pngvalid.c
2011-12-07 20:35:48 -06:00
Glenn Randers-Pehrson
90a87c8853
[libpng15] Bump version to libpng-1.6.0alpha01
2011-12-05 13:39:20 -06:00
John Bowler
12924f33bd
[libpng16] Fixed minor memset/sizeof errors in pngvalid.c.
2011-12-05 12:36:04 -06:00
Glenn Randers-Pehrson
8fd9c16642
Merge branch 'libpng15' of ssh://www.simplesystems.org/git/libpng into libpng15
...
Conflicts:
ANNOUNCE
CHANGES
2011-12-04 19:31:52 -06:00
Glenn Randers-Pehrson
e22ea758e4
[libpng15] Imported from libpng-1.5.7rc02.tar
2011-12-04 19:29:29 -06:00
Glenn Randers-Pehrson
ec6d6fa51b
[libpng16] Put CRLF line endings in the owatcom project files.
2011-12-03 20:26:27 -06:00
Glenn Randers-Pehrson
f22c0ac2a5
[libpng15] Put CRLF line endings in the owatcom project files.
2011-12-03 20:16:12 -06:00
Glenn Randers-Pehrson
4f547b7177
[libpng15] Fixed incorrect character count in projects/owatcom/pngvalid.tgt
2011-12-02 20:14:21 -06:00
Glenn Randers-Pehrson
1f0eaa046c
[libpng16] Revised pngconf.h to use " __declspec(restrict)" if MSC_VER >= 1400.
2011-12-01 21:45:34 -06:00
Glenn Randers-Pehrson
c4fe32016c
[libpng15] Revised pngconf.h to use " __declspec(restrict)" if MSC_VER >= 1400,
...
as in libpng-1.5.4.
2011-12-01 21:32:15 -06:00
Glenn Randers-Pehrson
1be5c22e5c
[libpng15] Bump version to libpng-1.5.7rc02
2011-12-01 19:27:35 -06:00
Glenn Randers-Pehrson
956c0599e6
[libpng15] Revised project files and contrib/pngvalid/pngvalid.c to account for
...
the relocation of pngvalid into contrib/libtests.
2011-12-01 19:25:46 -06:00
Glenn Randers-Pehrson
97c8fbb949
Merge branch 'libpng15' of ssh://www.simplesystems.org/git/libpng into libpng15
2011-12-01 09:08:30 -06:00
Glenn Randers-Pehrson
a50ce74850
[libpng15] Imported from libpng-1.5.7rc01.tar
2011-12-01 09:06:22 -06:00
Glenn Randers-Pehrson
6bdefdd977
[libpng] Fixed some trivial typos in the contrib/tools subdirectory.
2011-11-29 07:44:48 -06:00
John Bowler
405a398b3e
[libpng16] New 'tools' directory containing tools used to generate libpng code.
2011-11-28 23:57:45 -06:00
Glenn Randers-Pehrson
8888ea4479
[libpng16] Revised #if PNG_DO_BC blocks in png.c (use #ifdef and add #else)
2011-11-28 11:29:10 -06:00
Glenn Randers-Pehrson
8973ee17bb
[libpng15] Fixed two other instances of "#if PNG_DO_BC" in png.c
2011-11-28 11:05:54 -06:00
Glenn Randers-Pehrson
2e31b96a5a
[libpng15] Revised #if PNG_DO_BC block in png.c (use #ifdef and add #else)
2011-11-28 10:51:29 -06:00
Glenn Randers-Pehrson
0b26ac5dee
[libpng16] Replaced an "#if" with "ifdef" in pngrtran.c
2011-11-28 10:38:41 -06:00
Glenn Randers-Pehrson
0222124801
[libpng15] Replaced an "#if" with "ifdef" in pngrtran.c
2011-11-28 10:31:42 -06:00
John Bowler
414769b415
[libpng16] Add "free()" and "png_free_image()" calls to example code.
2011-11-27 21:39:13 -06:00
Glenn Randers-Pehrson
5e934ba900
[libpng16] Removed stray "*.orig" files.
2011-11-27 06:15:42 -06:00
Glenn Randers-Pehrson
b72bc15e22
[libpng16] Added entry in CHANGES and ANNOUNCE about removing configure files.
2011-11-26 21:17:55 -06:00
Glenn Randers-Pehrson
4c7e8208b6
[libpng16] Remove machine-generated configure files
2011-11-26 21:08:24 -06:00
John Bowler
baeb6d1e92
[libpng16] Added ANSI-C (C90) headers; eliminated the use of FAR/far.
2011-11-26 18:21:02 -06:00
Glenn Randers-Pehrson
2ddb252d07
[libpng16] Updated license info in contrib/examples and example.c
2011-11-25 07:27:51 -06:00
Glenn Randers-Pehrson
61b23d59b1
[libpng15] Bump version to libpng-1.5.7beta06
2011-11-25 07:02:48 -06:00
Glenn Randers-Pehrson
cc1fa5df3a
[libpng15] Imported from libpng-1.5.7beta05.tar
2011-11-25 06:56:01 -06:00
Glenn Randers-Pehrson
7455cbf47e
[libpng16] Update internal version numbering and SO-numbers
2011-11-24 14:49:01 -06:00
Glenn Randers-Pehrson
cc5664ddad
[libpng15] Updated release number in png.h
2011-11-24 14:36:49 -06:00
Glenn Randers-Pehrson
87fadd5eee
[libpng16] Updated version numbering in png.h
2011-11-24 14:35:13 -06:00
Glenn Randers-Pehrson
e209df47c4
Relocate pngvalid.c to contrib/libtests
2011-11-24 12:24:45 -06:00
Glenn Randers-Pehrson
5b79cd52f4
[libpng16] Moved pngvalid.c into contrib/libtests
...
and rebuilt Makefile.in and configure, etc., with autoconf-2.68
2011-11-24 10:56:20 -06:00
John Bowler
36082cffcd
[libpng16] Added example programs for the new 'simplified' API.
2011-11-24 08:22:24 -06:00
Glenn Randers-Pehrson
e1bb124baa
[libpng16] Removed some extra simplified API entries from libpng.3 synopses.
2011-11-23 15:59:26 -06:00
John Bowler
585f8b49b5
[libpng15] Removed some leftover "simple interface" files
2011-11-23 15:45:11 -06:00
John Bowler
4491fa237f
[libpng15] Remove simplified interface
2011-11-23 15:41:29 -06:00
Glenn Randers-Pehrson
15ea1fa337
[libpng15] Bump version to libpng-1.6.0alpha01
2011-11-23 15:34:03 -06:00
Glenn Randers-Pehrson
12fb29f951
[libpng15] Reject invalid compression flag, method when reading the iTXt chunk.
2011-11-22 11:53:49 -06:00
Glenn Randers-Pehrson
8500b7720b
[libpng15] Also allow uncompressed iTXt
2011-11-22 11:40:39 -06:00
Glenn Randers-Pehrson
e7ad104ac3
[libpng15] Reject invalid compression flag when reading the iTXt chunk.
2011-11-22 11:03:20 -06:00
Glenn Randers-Pehrson
3b1f03084e
[libpng15] Fixed copyright, spelling in contrib/libtest and contrib/sRGBtables
2011-11-21 20:52:21 -06:00
Glenn Randers-Pehrson
680da02ade
[libpng15] Updated the documentation of the png_text structure
...
(clarifying that the "lang" and "lang_key" fields can be NULL pointers
or might not exist).
2011-11-21 17:05:41 -06:00
Glenn Randers-Pehrson
8e83631361
[libpng15] Added MINGW support to CMakeLists.txt
2011-11-21 12:37:13 -06:00
Glenn Randers-Pehrson
8501129c17
[libpng15] Removed some "#if 0" blocks of test code that remained in pngrutil.c
2011-11-21 11:21:29 -06:00
John Bowler
3706d730d1
[libpng15] Allow row_stride==0 to indicate default stride in simplified API
2011-11-21 10:28:06 -06:00
Glenn Randers-Pehrson
925a60278e
[libpng15] Revised comment and whitespace in png_convert_to_rfc1123().
2011-11-19 18:04:01 -06:00
Glenn Randers-Pehrson
29fca795b9
[libpng15] Validate time settings passed to pngset()
...
and png_convert_to_rfc1123(). (Frank Busse).
2011-11-19 15:08:04 -06:00
Glenn Randers-Pehrson
bd2fa5def6
[libpng15] Removed "zTXt" from warning in generic chunk decompression function.
...
Bug report by Franke Busse
2011-11-19 13:28:08 -06:00
Glenn Randers-Pehrson
36251d3f76
[libpng15] Bump version to libpng-1.5.7beta05
2011-11-17 21:39:58 -06:00
Glenn Randers-Pehrson
d92c1fcd55
[libpng15] Imported from libpng-1.5.7beta04.tar
2011-11-17 21:39:49 -06:00
Glenn Randers-Pehrson
4af7710f94
[libpng15] Revised Makefile.am to separate out stuff depending on contrib (WIP)
2011-11-17 09:05:18 -06:00
Glenn Randers-Pehrson
7e97c182a8
[libpng15] Bump version to libpng-1.5.7beta04
2011-11-16 23:27:38 -06:00
Glenn Randers-Pehrson
e0bcbfd0fd
[libpng15] Imported from libpng-1.5.7beta03.tar
2011-11-16 23:14:06 -06:00
John Bowler
17878c6e65
[libpng15] Work around compilers that don't support declaration of const data.
...
Some compilers fault 'extern const' data declarations (because the data is
not initialized); this turns on const-ness only for compilers where
this is known to work.
2011-11-16 22:37:46 -06:00
John Bowler
7006dc4c6a
[libpng15] Added --noexecstack to assembler file compilation.
2011-11-16 22:25:47 -06:00
Glenn Randers-Pehrson
c4253c4683
[libpng15] Updated CHANGES and ANNOUNCE with latest changes
2011-11-16 22:23:30 -06:00
John Bowler
4fa96a42f7
[libpng15] Fixes for C++ compilation using g++ When libpng source is compiled
...
using g++. The compiler imposes C++ rules on the C source; thus it
is desireable to make the source work with either C or C++ rules
without throwing away useful error information. This change adds
png_voidcast to allow C semantic (void*) cases or the corresponding
C++ static_cast operation, as appropriate.
2011-11-16 16:39:16 -06:00
Glenn Randers-Pehrson
c2d8399581
[libpng15] Bump version to libpng-1.5.7beta03
2011-11-16 14:35:41 -06:00
John Bowler
18c5cfafeb
[libpng15] Multiple transform bug fixes plus a work-round for double gamma
...
correction.
2011-11-16 14:26:34 -06:00
Glenn Randers-Pehrson
36f5884359
[libpng15] Added test-pngstest.sh
2011-11-16 14:22:15 -06:00
Mans Rullgard
e7acc6ac3d
[libpng15] Added run-time detection of ARM/NEON support
2011-11-16 13:48:18 -06:00
John Bowler
76b0459fdd
[libpng15] Updated contrib/sRGBtables code
2011-11-16 13:44:42 -06:00
Glenn Randers-Pehrson
ae41dc55a2
[libpng15] Added contrib/README.txt
2011-11-16 13:35:16 -06:00
Glenn Randers-Pehrson
45bb9a62ba
[libpng15] Changed "PNG_EXTERN" to "extern" in sRGB table declarations
...
in pngpriv.h
2011-11-16 12:47:33 -06:00
John Bowler
89c2f84287
[libpng15] Fix Windows builds, add pngstest to Visual Studio and OpenWatcom
2011-11-16 12:04:39 -06:00
John Bowler
ed9f84475d
[libpng15] Update pngstest to remove compiler warnings, add to libpng tests
2011-11-16 11:52:27 -06:00
John Bowler
1eb188932b
[libpng15] Added contrib/pngtests
2011-11-16 11:40:59 -06:00
Glenn Randers-Pehrson
8596468e51
[libpng15] Removed PNG_CONST from the sRGB table declarations
...
in pngpriv.h and png.c
2011-11-16 08:52:36 -06:00
Glenn Randers-Pehrson
c32de8c64d
[libpng15] Bump version to libpng-1.5.7beta03
2011-11-11 20:28:21 -06:00
Glenn Randers-Pehrson
6d8e090419
[libpng15] Imported from libpng-1.5.7beta02.tar
2011-11-11 20:06:18 -06:00
Glenn Randers-Pehrson
816e687de8
[libpng] Added copyright and licensing info to contrib/sRGBtables/*.c
2011-11-11 18:48:04 -06:00
John Bowler
0a521d3785
[libpng15] Installed more accurate linear to sRGB conversion tables.
...
The slightly modified tables reduce the number of 16-bit values that
convert to an off-by-one 8-bit value. The "makesRGB.c" code that was used
to generate the tables is now in a contrib/sRGBtables sub-directory.
2011-11-11 18:14:59 -06:00
Glenn Randers-Pehrson
d3feb52955
[libpng15] Ignore unused chunks in the new simplified read API.
2011-11-11 17:20:34 -06:00
Glenn Randers-Pehrson
65f3ac192b
[libpng15] Fixed a typo in pngpriv.h
2011-11-10 06:36:34 -06:00
Glenn Randers-Pehrson
4be12aa1e3
[libpng15] Updated commentary
2011-11-10 06:35:48 -06:00
Glenn Randers-Pehrson
84b0da9c94
[libpng15] Updated commentary about new API
2011-11-10 06:32:19 -06:00
John Bowler
e6fb691c49
[libpng15] Fixes to alpha swap on read, simplified write and filler add code
2011-11-08 21:35:16 -06:00
John Bowler
d4973837b2
[libpng15] Change options.awk to use pngconf.h for versioning
...
instead of ANNOUNCE
2011-11-08 19:34:54 -06:00
John Bowler
dd81915d5b
[libpng15] Corrections to the PNG_FORMAT_ values and code cleanup.
2011-11-08 14:29:45 -06:00
John Bowler
3615d03e05
[libpng15] Fix PNG_SIMPLIFIED transformations,
...
adding alpha and reducing to 8-bit
2011-11-08 10:38:09 -06:00
Glenn Randers-Pehrson
e0a6c06bfd
[libpng] Added synopses for new png_image functions to the manual.
2011-11-07 23:50:05 -06:00
Glenn Randers-Pehrson
efc4b69767
[libpng15] Fixed some typos in comments.
2011-11-07 23:31:34 -06:00
John Bowler
7875d534cb
[libpng15] Simplified read/write API initial version; basic read/write tested
...
on a variety of images, limited documentation (in the header file.)
2011-11-07 22:33:49 -06:00
John Bowler
92a1d46c8d
[libpng15] Added versioning to pnglibconf.h comments.
2011-11-07 22:19:30 -06:00
Glenn Randers-Pehrson
7de02e722f
[libpng15] Changed 8 new leading spaces to TAB in scripts/makefile.std
...
and pnglibconf.mak
2011-11-07 09:20:27 -06:00
John Bowler
61bd4f76ad
[libpng15] Updated scripts/pnglibconf.mak and scripts/makefile.std
...
to handle the new PNG_JOIN macro.
2011-11-05 12:24:53 -05:00
Glenn Randers-Pehrson
8b67ee5d3d
[libpng15] Updated scripts/pnglibconf.mak to handle the new PNG_JOIN macro.
2011-11-05 09:27:55 -05:00
John Bowler
fc45f68623
[libpng15] updated configure files
2011-11-04 21:03:39 -05:00
John Bowler
a004e23a4c
[libpng15] Fixed FP division by zero in pngvalid.c; the 'test_pixel' code left
...
the sBIT fields in the test pixel as 0, which resulted in a floating
point division by zero which was irrelevant but causes systems where
FP exceptions cause a crash. Added code to pngvalid to turn on FP
exceptions if the appropriate glibc support is there to ensure this is
tested in the future.
2011-11-04 20:24:56 -05:00
John Bowler
88bcdc269b
[libpng] Check compression_type parameter in png_get_iCCP and remove spurious
...
casts. The compression_type parameter is always assigned to, so must
be non-NULL. The cast of the profile length potentially truncated the
value unnecessarily on a 16-bit int system, so the cast of the (byte)
compression type to (int) is specified by ANSI-C anyway.
2011-11-04 20:12:03 -05:00
Glenn Randers-Pehrson
aad7c828b2
[libpng15] Removed a stray sentence fragment from CHANGES/ANNOUNCE
2011-11-04 14:12:04 -05:00
Glenn Randers-Pehrson
5a9aca17df
[libpng15] Bump version to libpng-1.5.7beta02
2011-11-04 13:47:57 -05:00
Glenn Randers-Pehrson
55e85c24b4
[libpng15] Imported from libpng-1.5.7beta01.tar
2011-11-04 13:47:49 -05:00
John Bowler
fcc0263191
[libpng15] Paeth filter speed improvements from work by Siarhei Siamashka. This
...
changes the 'Paeth' reconstruction function to improve the GCC code
generation on x86. The changes are only part of the suggested ones;
just the changes that definitely improve speed and remain simple.
The changes also slightly increase the clarity of the code. In a
2011-11-03 18:31:00 -05:00
John Bowler
1d8b75550f
[libpng15] Fix for the preprocessor of the Intel C compiler. The preprocessor
...
adjacent @ signs with a space; this changes the concatentation
from @@@ to PNG_JOIN; that should work with all compiler
preprocessors.
2011-11-03 18:19:53 -05:00
John Bowler
aff44028ba
[libpng15] Fixed bug in pngvalid on early allocation failure; fixed type cast
...
in pngmem.c; pngvalid would attempt to call png_error() if the allocation
of a png_struct or png_info failed. This would probably have led to a
crash. The pngmem.c implementation of png_malloc() included a cast
to png_size_t which would fail on large allocations on 16-bit systems.
2011-11-03 16:11:08 -05:00
Glenn Randers-Pehrson
6d7705eedf
[libpng15] Bump version to libpng-1.5.7beta01
2011-11-03 00:49:07 -05:00
Mans Rullgard
d3a94802d8
[libpng15] Added support for ARM processor (Mans Rullgard)
2011-11-03 00:47:55 -05:00
Glenn Randers-Pehrson
2b7d730e27
[libpng15] Bump version to libpng-1.5.7beta01
2011-11-02 23:14:13 -05:00
Glenn Randers-Pehrson
bc6726bc04
[libpng15] Imported from libpng-1.5.6.tar
2011-11-02 22:48:36 -05:00
Glenn Randers-Pehrson
1876366b17
[libpng15] Fixed a spelling error.
2011-10-27 22:09:22 -05:00
Glenn Randers-Pehrson
c94b996af8
[libpng15] Bump version to libpng-1.5.6rc04
2011-10-27 21:09:08 -05:00
Glenn Randers-Pehrson
0e9f8ced1e
[libpng15] Imported from libpng-1.5.6rc03.tar
2011-10-27 21:03:00 -05:00
Glenn Randers-Pehrson
7342fcaf92
[libpng] #define PNG_ALIGN_TYPE PNG_ALIGN_NONE in contrib/pngminim/*/pngusr.h
2011-10-27 19:56:36 -05:00
John Bowler
92ef313c77
[libpng15] Fixed compiler warnings with Intel and MSYS compilers.
...
The logical shift fix for Microsoft Visual C is required by other compilers,
so this enables that fix for all compilers when using compile-time constants.
Under MSYS 'byte' is a name declared in a system header file, so we
changed the name of a local variable to avoid the warnings that result.
2011-10-27 19:53:14 -05:00
Glenn Randers-Pehrson
cb75699dff
[libpng15] Renamed the LSR() macro to PNG_LSR() and added PNG_LSL() macro.
2011-10-27 16:59:03 -05:00
Glenn Randers-Pehrson
122a525c83
[libpng15] Bump version to libpng-1.5.6rc03
2011-10-27 16:51:52 -05:00
Glenn Randers-Pehrson
5e823c1fd5
[libpng15] Imported from libpng-1.5.6rc02.tar
2011-10-27 16:19:17 -05:00
Glenn Randers-Pehrson
8db19980fa
[libpng15] Add leading zero to some 1-digit hex constants (0xf -> 0x0f).
2011-10-27 16:17:24 -05:00
Glenn Randers-Pehrson
ef02d563a3
[libpng15] Added LSR() macro to defend against buggy compilers that evaluate
...
non-taken code branches and complain about out-of-range shifts.
2011-10-27 12:05:58 -05:00
Glenn Randers-Pehrson
b2068640d1
[libpng15] Bump version to libpng-1.5.6rc02
2011-10-26 08:48:35 -05:00
Glenn Randers-Pehrson
93254f66fc
[libpng15] Imported from libpng-1.5.6rc01.tar
2011-10-26 08:48:23 -05:00
Glenn Randers-Pehrson
52093f1776
[libpng15] Corrected recent ANNOUNCE and CHANGES entry
2011-10-21 12:57:01 -05:00
Glenn Randers-Pehrson
0654d63196
[libpng15] Bump version to libpng-1.5.6beta08
2011-10-21 07:39:45 -05:00
Glenn Randers-Pehrson
4e8aa822dc
[libpng15] Imported from libpng-1.5.6beta07.tar
2011-10-21 07:39:34 -05:00
Mans Rullgard
1c42276a39
[libpng15] New png_struct member png_ptr->old_prev_row
2011-10-17 16:52:19 -05:00
Mans Rullgard
c9e27d026d
[libpng15] Made png_ptr->prev_row an aligned pointer into png_ptr->big_prev_row
...
and removed a redundant assignment (Mans Rullgard).
2011-10-17 15:25:03 -05:00
Glenn Randers-Pehrson
e7db181e5d
[libpng15] Bump version to libpng-1.5.6beta07
2011-10-17 08:08:16 -05:00
Glenn Randers-Pehrson
f5c5e53bf5
[libpng15] Imported from libpng-1.5.6beta06.tar
2011-10-17 08:08:08 -05:00
John Bowler
ecb3ad035a
[libpng15] Updated ANNOUNCE and CHANGES
2011-10-16 22:55:44 -05:00
John Bowler
fb5b3ac013
[libpng15] Prevent libpng overwriting unused bits at the end of the image when
...
is not byte aligned, while reading. Prior to libpng-1.5.6 libpng would
overwrite the end of the image if the row width is not an exact multiple
of 8 bits and the image is not interlaced.
2011-10-16 22:52:56 -05:00
John Bowler
5b84901c55
[libpng15] Turned on multiple png_read_update_info in pngvalid transform tests.
2011-10-16 22:42:46 -05:00
John Bowler
57cbcf6b8f
[libpng15] Add ability to call png_read_update_info multiple times to pngvalid.c
2011-10-14 19:43:53 -05:00
John Bowler
07772cba07
[libpng15] Fixes for multiple calls to png_read_update_info.
...
These fixes attend to most of the errors revealed in pngvalid, however doing
the gamma work twice results in inaccuracies that can't be easily fixed.
There is now a warning in the code if this is going to happen.
2011-10-14 18:19:47 -05:00
John Bowler
5c1905caae
[libpng15] Fixed a relatively harmless memory overwrite
...
in compressed text writing
2011-10-14 12:33:52 -05:00
Glenn Randers-Pehrson
d58251b47e
[libpng15] Reverted previous change; removed png_get_compression_buffer() API.
...
It is too risky. Exactly how png_ptr->zbuf is used is under control of the
individual chunk implementation and there could easily be significant changes
within a major release.
2011-10-13 20:30:02 -05:00
Glenn Randers-Pehrson
d3dcb463d6
[libpng15] Added png_get_compression_buffer() API.
2011-10-13 17:51:31 -05:00
Glenn Randers-Pehrson
3dbfd300ff
[libpng15] Removed two redundant tests for unitialized row.
2011-10-13 17:24:36 -05:00
Glenn Randers-Pehrson
ff36991ca2
[libpng15] Bump version to libpng-1.5.6beta06
2011-10-12 06:54:55 -05:00
Glenn Randers-Pehrson
5b3b54e3f6
[libpng15] Imported from libpng-1.5.6beta05.tar
2011-10-12 06:47:31 -05:00
Glenn Randers-Pehrson
ba55c0770b
[libpng15] Use PNG_CSTRING_FROM_CHUNK macro with png_debug2() in pngwutil.c
2011-10-11 21:21:37 -05:00
John Bowler
4e68aa7e40
[libpng15] Further optimization of png_combine_row() in the interlaced case.
2011-10-11 16:01:33 -05:00
Glenn Randers-Pehrson
76b62317b5
[libpng15] Fixed bug in png_write_chunk_header() debug print,
...
introduced in 1.5.6bet01.
2011-10-11 13:54:27 -05:00
Glenn Randers-Pehrson
4dd0dc6399
[libpng15] Fix small typo in CHANGES and ANNOUNCE
2011-10-07 18:48:10 -05:00
John Bowler
8be28e3eb6
[libpng15] Optimized png_combine_row() when rows are aligned This gains a
...
small percentage for 16-bit and 32-bit pixels in the typical case where the
output row buffers are appropriately aligned. The optimization was not
previously possible because the png_struct buffer was always misaligned.
2011-10-07 18:36:37 -05:00
John Bowler
ac8375d000
[libpng15] Align png_struct::row_buf - previously it was always unaligned,
...
caused by a bug in the code that attempted to align it; the code needs to
subtract one from the pointer to take account of the filter byte prepended to
each row.
2011-10-06 22:27:16 -05:00
Glenn Randers-Pehrson
65c0339b5c
[libpng15] Speed up png_combine_row() for interlaced images. This reduces the
...
generality of the code, allowing it to be optimized for Adam7 interlace. The
masks passed to png_combine_row() are now generated internally, avoiding
some code duplication and localizing the interlace handling somewhat.
2011-10-06 21:54:17 -05:00
Glenn Randers-Pehrson
4daae30174
[libpng15] #ifdef out png_progressive_combine_row() when interlacing is
...
not supported.
2011-10-06 21:37:47 -05:00
Glenn Randers-Pehrson
d5bc89ef11
[libpng15] Updated CHANGES and ANNOUNCE
2011-10-05 21:11:46 -05:00
Glenn Randers-Pehrson
fa7d7934f6
[libpng15] Replaced a short but frequently-used memcpy() in png_combine_row()
...
with a loop.
2011-10-05 21:09:22 -05:00
Glenn Randers-Pehrson
59d3ef11ed
[libpng14] Fixed typo in Makefile.am ("-M Wl" should be "-M -Wl")."
2011-10-05 17:06:15 -05:00
Glenn Randers-Pehrson
a92a212925
[libpng15] Bump version to libpng-1.5.6beta05
2011-10-05 16:49:14 -05:00
Glenn Randers-Pehrson
435cf87469
[libpng15] Bump version to libpng-1.5.6beta04
2011-10-05 16:42:16 -05:00
Glenn Randers-Pehrson
e51916c0f9
[libpng15] Bump version to libpng-1.5.6beta04
2011-09-28 07:34:53 -05:00
Glenn Randers-Pehrson
997b193f63
[libpng15] Imported from libpng-1.5.6beta03.tar
2011-09-28 07:24:28 -05:00
Glenn Randers-Pehrson
e29c4b9b93
[libpng15] Revised CMakeLists.txt to work with mingw and removed some material
...
from CMakeLists.txt that is no longer useful in libpng-1.5.
2011-09-27 19:01:58 -05:00
Glenn Randers-Pehrson
8e25a61277
[libpng15]` Revised test-pngtest.sh to report FAIL when pngtest fails.
...
Added "--strict" option to pngtest, to report FAIL when the failure is
only because the resulting valid files are different.
2011-09-26 20:57:33 -05:00
Glenn Randers-Pehrson
f573ff7792
[libpng15] Bump version to libpng-1.5.6beta03
2011-09-26 16:53:11 -05:00
Glenn Randers-Pehrson
1a16735ce7
[libpng15] Imported from libpng-1.5.6beta02.tar
2011-09-26 16:44:31 -05:00
Glenn Randers-Pehrson
d02d6a1c7d
[libpng15] Fixed a typo in the definition of the new PNG_STRING_FROM_CHUNK(s,c)
...
macro.
2011-09-26 16:43:08 -05:00
Glenn Randers-Pehrson
968c231cc8
[libpng15] Added a note in the manual the png_read_update_info() must be
...
called only once with a particular info_ptr.
2011-09-26 16:35:22 -05:00
Glenn Randers-Pehrson
bb5cb1476b
[libpng15] Bump version to libpng-1.5.6beta02
2011-09-22 12:48:19 -05:00
Glenn Randers-Pehrson
115020d985
[libpng15] Imported from libpng-1.5.6beta01.tar
2011-09-22 09:51:23 -05:00
Glenn Randers-Pehrson
3e2263abf2
[libpng15] Imported from libpng-1.5.5.tar
2011-09-22 08:45:04 -05:00
Glenn Randers-Pehrson
d71f09df4d
[libpng15] Bump version to libpng-1.5.5rc02
2011-09-15 08:39:02 -05:00
Glenn Randers-Pehrson
0a456b5d16
[libpng15] Fix grammar in ANNOUNCE and CHANGES
2011-09-15 08:32:07 -05:00
Glenn Randers-Pehrson
d3261115a8
[libpng15] Imported from libpng-1.5.5rc01.tar
2011-09-15 08:27:01 -05:00
Glenn Randers-Pehrson
673a1166fe
[libpng15] Updated ANNOUNCE and CHANGES with new CVE number.
2011-09-12 08:40:07 -05:00
Glenn Randers-Pehrson
853afe631c
[libpng15] Bump version to libpng-1.5.5beta09
2011-09-09 22:33:48 -05:00
Glenn Randers-Pehrson
fe85bafedf
[libpng15] Bump version to libpng-1.5.5beta08
2011-09-09 21:54:58 -05:00
John Bowler
751561218f
[libpng15] Constant changes for 64-bit compatibility (removal of L suffixes).
...
The 16-bit cases still use "L" as we don't have a 16-bit test system.
2011-09-09 17:21:44 -05:00
Glenn Randers-Pehrson
f0c19e6455
[libpng15] Fix typo in ANNOUNCE and CHANGES
2011-09-09 08:16:53 -05:00
Glenn Randers-Pehrson
ccff383d44
[libpng15] Relocated new HAVE_SOLARIS_LD definition in configure.ac
2011-09-09 07:55:25 -05:00
John Bowler
f3f7e14727
[libpng15] Fixed 64-bit compilation errors (gcc). The errors fixed relate
...
to conditions where types that are 32 bits in the GCC 32-bit
world (uLong and png_size_t) become 64 bits in the 64-bit
world. This produces potential truncation errors which the
compiler correctly flags.
2011-09-09 07:32:37 -05:00
Glenn Randers-Pehrson
3c2ae60f46
[libpng15] Bump version to libpng-1.5.5beta08
2011-09-09 06:10:21 -05:00
Glenn Randers-Pehrson
95ba417c82
[libpng15] Imported from libpng-1.5.5beta07.tar
2011-09-08 12:28:05 -05:00
Glenn Randers-Pehrson
b6e4d58e4b
[libpng15] Changed png_chunk_benign_error() to png_warning() in png.c, in
...
png_XYZ_from_xy_checked
2011-09-08 12:25:52 -05:00
Glenn Randers-Pehrson
ef43c17bfe
[devel] Changed "// ..." comments to "/* .. */" in the visupng project.
2011-09-03 09:53:07 -05:00
Glenn Randers-Pehrson
6bc7fc80da
[master] Added SunOS support to configure.ac and Makefile.am
...
but configure and Makefile.in were not updated.
2011-09-01 20:01:51 -05:00
Glenn Randers-Pehrson
ad8b7b71b4
[devel] Add SunOS support to configure and Makefile.am
2011-09-01 19:38:08 -05:00
Glenn Randers-Pehrson
83bd94f1f4
[devel] Added SunOS support to configure.ac and Makefile.am
2011-09-01 14:06:49 -05:00
Glenn Randers-Pehrson
63071acbd9
[devel] Zapped "zap" (changed "zap" to "remove")
2011-08-29 16:16:26 -05:00
Glenn Randers-Pehrson
44271398bd
[devel] Revise makefile.darwin to support both i386 and 64-bit architecture
...
by default.
2011-08-29 12:26:24 -05:00
Glenn Randers-Pehrson
90cd362a87
[devel] Added some blank lines to projects/vstudio/zlib.props for clarity.
2011-08-29 10:12:00 -05:00
Glenn Randers-Pehrson
b293334e7a
[devel] Added "$(ARCH)" option to makefile.darwin
2011-08-29 07:22:13 -05:00
Glenn Randers-Pehrson
4ae297867d
[devel] Bump version to libpng-1.5.5beta07
2011-08-26 06:07:33 -05:00
Glenn Randers-Pehrson
ec3ff78f70
[devel] Imported from libpng-1.5.5beta06.tar
2011-08-26 05:58:36 -05:00
Glenn Randers-Pehrson
6d62ef108a
[devel] Spell "behavior" consistently.
2011-08-25 18:17:50 -05:00
Glenn Randers-Pehrson
b6874f8062
[devel] Use "gray" spelling consistently.
2011-08-25 18:11:32 -05:00
Glenn Randers-Pehrson
8b8aacde83
[devel] Use "color" spelling consistently.
2011-08-25 18:10:50 -05:00
John Bowler
bbd17bd7c4
[devel] Describe the new XYZ APIs in the manual.
2011-08-25 17:48:18 -05:00
John Bowler
b5cebba675
[devel] Updated symbols.def which was supposed to be part of previous patch.
2011-08-25 17:40:38 -05:00
John Bowler
736f40f459
[devel] Fixes to rgb_to_gray and cHRM XYZ APIs
2011-08-25 16:19:44 -05:00
Glenn Randers-Pehrson
0c03fc6f75
[devel] Expanded TAB characters in CMakeLists.txt
2011-08-17 09:46:29 -05:00
Glenn Randers-Pehrson
e61e403d20
[devel] Ensure the CMAKE_LIBRARY_OUTPUT_DIRECTORY is set in CMakeLists.txt
...
(Clifford Yap)
2011-08-17 09:02:07 -05:00
Glenn Randers-Pehrson
9d824eb166
[devel] Bump version to libpng-1.5.5beta06
2011-08-17 07:57:02 -05:00
Glenn Randers-Pehrson
75d5bfda5b
[devel] Imported from libpng-1.5.5beta05.tar
2011-08-17 07:47:04 -05:00
John Bowler
9b979b177b
[devel] Added new types and internal functions for CIE RGB end point handling
...
to pngpriv.h (functions yet to be implemented).
2011-08-16 22:58:33 -05:00
John Bowler
7b9796539d
[devel] Prevent unexpected API exports from non-libpng DLLs on Windows.
...
The "_DLL" is removed from the test of whether a DLL is being built.
2011-08-16 22:57:27 -05:00
Glenn Randers-Pehrson
0bc79772c8
[devel] Revised commentary about png_rgb_to_gray coefficents
...
and fixed spelling (truely -> truly) in comments.
2011-08-11 15:11:11 -05:00
Glenn Randers-Pehrson
a45ffbefb9
[devel] Bump version to libpng-1.5.5beta05
2011-07-29 12:41:45 -05:00
Glenn Randers-Pehrson
99ffac0838
[devel] Imported from libpng-1.5.5beta04.tar
2011-07-29 12:35:41 -05:00
Glenn Randers-Pehrson
6c98897a64
[devel] Updated commentary about the png_rgb_to_gray() default coefficients
2011-07-29 12:31:16 -05:00
Glenn Randers-Pehrson
b17c75b222
[devel] Revised CMakeLists.txt (Clifford Yapp)
2011-07-27 20:47:13 -05:00
Glenn Randers-Pehrson
d4e1ddb631
[devel] Fix typo in manual: "was" was "was was".
2011-07-27 20:09:57 -05:00
Glenn Randers-Pehrson
aab2aa196d
[devel] Bump version to libpng-1.5.5beta04
2011-07-27 12:41:23 -05:00
Glenn Randers-Pehrson
03d6b482b5
[devel] Imported from libpng-1.5.5beta03.tar
2011-07-27 12:41:15 -05:00
Glenn Randers-Pehrson
4dcce66295
[devel] Updated CHANGES to reshow addition of new compression API
...
in libpng-1.5.4 and to mention recent CVE reports.
2011-07-26 14:08:35 -05:00
Glenn Randers-Pehrson
7a28724e6b
[devel] Minor documentation editing.
2011-07-26 14:08:17 -05:00
John Bowler
a5bcab7854
[devel] Enabled compilation with g++ compiler. This compiler does not
...
recognize the file extension, so it always compiles with C++ rules. Made minor
changes to pngrutil.c to cast results where C++ expects it but C does not.
2011-07-14 23:02:11 -05:00
Glenn Randers-Pehrson
0a007b743e
[devel] Added recent CVE numbers at relevant places in the CHANGES file.
2011-07-14 09:47:26 -05:00
Glenn Randers-Pehrson
e9ef47f69e
[devel] Bump version to libpng-1.5.5beta03
2011-07-14 08:22:36 -05:00
Glenn Randers-Pehrson
0532aca928
[devel] Imported from libpng-1.5.5beta02.tar
2011-07-14 08:16:59 -05:00
John Bowler
5a77e672e1
[devel] Revised Makefile.am and Makefile.in to look in the right directory for
...
pnglibconf.h.prebuilt
2011-07-14 07:42:11 -05:00
Glenn Randers-Pehrson
c2891d0011
[devel] Reverted Makefile.am and Makefile.in to 1.5.4 status.
2011-07-13 21:13:36 -05:00
Glenn Randers-Pehrson
5b03469a93
[master] Minor editing of libpng.3 and libpng-*.txt
2011-07-13 09:37:01 -05:00
Glenn Randers-Pehrson
25e0f55586
[devel] Bump version to libpng-1.5.5beta02
2011-07-13 07:18:07 -05:00
Glenn Randers-Pehrson
ce775cc851
[devel] Imported from libpng-1.5.5beta01.tar
2011-07-13 07:00:25 -05:00
Glenn Randers-Pehrson
d0797f5b53
[devel] Revised manual paragraph about use of 'NO' macros.
2011-07-12 10:28:02 -05:00
Glenn Randers-Pehrson
a5e5547679
[devel] Minor editing of the manual.
2011-07-12 10:13:32 -05:00
Glenn Randers-Pehrson
f5b9abde98
[master] Reverted non-portable GNU syntax in makefile (?=, +=)
2011-07-12 06:22:29 -05:00
Glenn Randers-Pehrson
4164c6f949
[devel] Reverted non-portable GNU syntax in makefile (?=, +=)
2011-07-12 06:11:42 -05:00
Glenn Randers-Pehrson
4b2237a6a4
[devel] Updated contrib/pngminus/makefile.std
2011-07-11 17:52:05 -05:00
Glenn Randers-Pehrson
340c9b237b
[master] Updated contrib/pngminus/makefile.std
2011-07-11 17:36:18 -05:00
Glenn Randers-Pehrson
cb47e20509
[devel] Reverted type of "my_background" to png_color_16 in the manual.
2011-07-10 06:55:14 -05:00
Glenn Randers-Pehrson
d3a0b23c1b
[devel] png_set_background does not take an info_ptr argument.
2011-07-09 19:51:16 -05:00
Glenn Randers-Pehrson
ab38979670
[devel] Fixed some typos in the manual.
2011-07-09 19:35:22 -05:00
Glenn Randers-Pehrson
628b632419
[devel] Bump version to libpng-1.5.5beta01
2011-07-08 13:22:11 -05:00
Glenn Randers-Pehrson
fb2bd00859
[master] Bump version to libpng-1.4.9beta01
2011-07-08 13:13:00 -05:00
Glenn Randers-Pehrson
5109688803
[master] Added vstudio/* and CMakeLists to EXTRA_DIST in Makefile.in
...
and Makefile.am
2011-07-08 13:09:41 -05:00
Glenn Randers-Pehrson
8fdd2fcef6
[master] Changed some incorrect "last changed" dates.
2011-07-07 12:46:23 -05:00
Glenn Randers-Pehrson
e7625063dc
[master] Imported from libpng-1.4.8.tar
2011-07-07 06:41:17 -05:00
Glenn Randers-Pehrson
d404b6d488
[devel] Imported from libpng-1.5.4.tar
2011-07-07 06:26:30 -05:00
Glenn Randers-Pehrson
38404a5996
[devel] Relocated a single quote from the beginning of a line in the manual
...
It interfered with nroff processing.
2011-07-03 13:07:41 -05:00
Glenn Randers-Pehrson
05fc4ccd30
[devel] Added references to CVE-2011-2501 and -0408 to the CHANGES file.
2011-07-01 09:30:38 -05:00
Glenn Randers-Pehrson
24f40e321c
[master] Imported from libpng-1.4.8rc01.tar
2011-06-30 19:58:41 -05:00
Glenn Randers-Pehrson
78bb9dafe1
[devel] Imported from libpng-1.5.4rc01.tar
2011-06-30 19:04:47 -05:00
Glenn Randers-Pehrson
4fca25504e
[devel] Define PNG_ALLOCATED to "restrict" only if MSC_VER >= 1400.
2011-06-27 12:01:01 -05:00
Glenn Randers-Pehrson
9daf91ed5c
[devel] Imported from libpng-1.5.4beta08.tar
2011-06-22 23:15:30 -05:00
John Bowler
fcd7c13ffd
[devel] Fix pngvalid.c with ACCURATE_SCALE
...
and update scripts/pnglibconf.h.prebuilt
2011-06-22 23:13:01 -05:00
Glenn Randers-Pehrson
0bb898a885
[master] Imported from libpng-1.4.8beta05.tar
2011-06-19 07:22:01 -05:00
Glenn Randers-Pehrson
5bcd0a8c14
[devel] Imported from libpng-1.5.4beta07.tar
2011-06-19 07:10:26 -05:00
Glenn Randers-Pehrson
61a2d8a2a7
[master] Check for sCAL chunk too short.
2011-06-18 14:51:09 -05:00
John Bowler
8d261262d9
[devel] Fixed pngvalid, simplified macros, added checking for 0 in sCAL.
2011-06-18 13:37:11 -05:00
John Bowler
af96543688
[devel] Removed double increment of pointers in the accurate scaling.
2011-06-18 13:25:46 -05:00
Glenn Randers-Pehrson
c4a8214b77
[devel] Delete chop_16 synopses and add one for png_set_scale_16_to_8()
2011-06-18 00:44:08 -05:00
Glenn Randers-Pehrson
34f5449736
[master] Imported from libpng-1.4.8beta05.tar
2011-06-18 00:39:53 -05:00
Glenn Randers-Pehrson
4e47be74e9
[devel] Bump version to libpng-1.5.4beta07
2011-06-18 00:30:16 -05:00
Glenn Randers-Pehrson
314ef3e72b
[devel] Imported from libpng-1.5.4beta06.tar
2011-06-18 00:27:49 -05:00
Glenn Randers-Pehrson
aee83b43d6
[devel] Fixed buffer bug (both the strip_16 and scale_16 transforms were
...
being applied.
2011-06-18 00:19:54 -05:00
Glenn Randers-Pehrson
9a1e2232ba
[devel] Fix pngvalid.c to compile when SCALE_16 is disabled.
2011-06-17 23:40:12 -05:00
Glenn Randers-Pehrson
6da2f2d92a
[devel] Fix more inconsistencies from the swap of 16_TO_8 APIs.
...
pngvalid still fails.
2011-06-17 23:07:16 -05:00
Glenn Randers-Pehrson
24145c8869
[devel] Still trying to fix row buffer problem but pngvalid still fails
2011-06-17 22:45:03 -05:00
Glenn Randers-Pehrson
e6a8060a71
[devel] Fixed some errors with 16_TO_8 macros
...
pngvalid still fails two tests, problem with row buffer.
2011-06-17 22:28:23 -05:00
Glenn Randers-Pehrson
98f053edbd
[devel] Fix new bugs in pngvalid.c; it failed to compile.
2011-06-17 21:57:49 -05:00
Glenn Randers-Pehrson
581d29d4c9
[devel] Removed redundant directives from pngminim/*/*dfa.
2011-06-17 21:44:10 -05:00
John Bowler
484a48e221
[master] Fixed error in "ACCURATE" 16-to-8 scaling.
2011-06-17 21:36:09 -05:00
Glenn Randers-Pehrson
66b942ce16
[devel] Changed a dependence in scripts/pnglibconf.dfa
2011-06-17 21:17:16 -05:00
Glenn Randers-Pehrson
86cf9b2e89
[devel] Bump version to libpng-1.5.4beta06
2011-06-17 21:13:51 -05:00
Glenn Randers-Pehrson
fb29e51dbd
[devel] Imported from libpng-1.5.4beta05.tar
2011-06-17 20:42:19 -05:00
Glenn Randers-Pehrson
ab63dd0892
[devel] Renamed png_set_chop_16() to png_set_strip_16().
2011-06-17 20:41:19 -05:00
Glenn Randers-Pehrson
a7428d443c
[devel] Renamed png_set_strip_16() to png_set_scale_16().
2011-06-17 19:07:04 -05:00
Glenn Randers-Pehrson
857dbbe7cc
[devel] Revised example.c to demonstrate png_set_chop_16().
2011-06-16 09:39:40 -05:00
Glenn Randers-Pehrson
3fb7c07ea5
[devel] Bump version to libpng-1.5.4beta05
2011-06-16 09:32:36 -05:00
Glenn Randers-Pehrson
60d7c022e5
[devel] Imported from libpng-1.5.4beta04.tar
2011-06-16 09:10:57 -05:00
Glenn Randers-Pehrson
850769f787
[devel] Revised contrib/visupng, gregbook, and pngminim
...
to demonstrate chop_16_to_8
2011-06-16 09:08:53 -05:00
Glenn Randers-Pehrson
5f0b9276ec
[devel] Made PNG_READ_16_TO_8_ACCURATE_SCALE configurable again.
...
If this is not enabled, png_set_strip_16() and png_do_scale_16_to_8()
aren't built.
2011-06-16 09:05:40 -05:00
Glenn Randers-Pehrson
733b131545
[devel] Added information about "chop_16" to the manual.
2011-06-15 13:21:01 -05:00
Glenn Randers-Pehrson
ef217b76a3
[devel] Updated comments that mention 1.5.3; changed them to 1.5.4.
2011-06-15 12:58:27 -05:00
Glenn Randers-Pehrson
b0791f75ad
[devel] Added PNG_TRANSFORM_CHOP_16 to the high-level read transforms.
2011-06-15 12:07:20 -05:00
Glenn Randers-Pehrson
039ad872fe
[devel] Bump version to libpng-1.5.4beta04
2011-06-15 11:51:55 -05:00
Glenn Randers-Pehrson
903c64dce8
[devel] Added "#ifdef PNG_READ_BACKGROUND_SUPPORTED/#endif" in pngrtran.c
2011-06-15 11:50:23 -05:00
Glenn Randers-Pehrson
8f4edd07be
[devel] Imported from libpng-1.5.4beta03.tar
2011-06-15 08:21:56 -05:00
Glenn Randers-Pehrson
be720edba7
[devel] Correction to the expand_16 code; removed extra instance of
...
png_set_scale_16_to_8 from pngpriv.h
2011-06-15 08:20:37 -05:00
Glenn Randers-Pehrson
140504b11a
[devel] Add synopsis for png_set_chop_16() to manual
...
and fix some other small typos.
2011-06-15 08:10:13 -05:00
John Bowler
cd3b0cc4d9
[devel] Fixed a problem in png_do_expand_palette() exposed by optimization in
...
1.5.3beta06
Also removed a spurious (totally unused and confusing) member from png_info.
The palette expand optimization prevented expansion to an intermediate RGBA
form if tRNS was present but alpha was marked to be stripped; this exposed
a check for tRNS in png_do_expand_palette() which is inconsistent with the
code elsewhere in libpng.
2011-06-14 23:01:07 -05:00
Glenn Randers-Pehrson
06a9684cfa
[devel] Bump version to libpng-1.5.4beta03
2011-06-14 11:06:42 -05:00
Glenn Randers-Pehrson
45599ad00f
[devel] Imported from libpng-1.5.4beta02.tar
2011-06-14 07:17:29 -05:00
Glenn Randers-Pehrson
677819fe66
[devel] Check for READ_CHOP_16_TO_8 support in pngvalid,
...
not libpng version for presence of png_set_chop_16_to_8(), in pngvalid.c
2011-06-14 07:10:47 -05:00
Glenn Randers-Pehrson
2232baa41b
[devel] Made png_set_chop_16() API removeable
...
by disabling PNG_CHOP_16_TO_8_SUPPORTED
2011-06-14 06:59:46 -05:00
Glenn Randers-Pehrson
7dffa41643
[devel] Use the old scaling method for background if png_set_chop_16() was
...
called.
2011-06-14 06:30:12 -05:00
John Bowler
550bab03fb
[devel] Removed the ACCURATE and LEGACY options (they are no longer useable)
...
Fixed some compiliation problems with scaling options.
2011-06-14 06:17:26 -05:00
Glenn Randers-Pehrson
413138a5ca
[devel] Added png_set_chop_16() API.
2011-06-13 22:07:37 -05:00
John Bowler
74945f2f04
[devel] Fix and clarify LEGACY 16-to-8 scaling.
2011-06-13 20:50:42 -05:00
Glenn Randers-Pehrson
97039baa88
[devel] Imported from libpng-1.5.4beta01.tar
2011-06-13 20:09:22 -05:00
Glenn Randers-Pehrson
fd73d04515
[devel] Moved definitions of PNG_HAVE_IHDR, PNG_AFTER_IDAT, and PNG_HAVE_PLTE
...
outside of an unknown-chunk block in png.h because they are also
needed for other uses.
2011-06-13 13:25:21 -05:00
Glenn Randers-Pehrson
141d9e3c20
[devel] Made it possible to undefine PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED
...
to get the same (inaccurate) output as libpng-1.5.2 and earlier.
2011-06-13 11:47:00 -05:00
Glenn Randers-Pehrson
0cb906d804
[devel] Imported from libpng-1.5.3beta11.tar
2011-06-11 14:23:33 -05:00
Glenn Randers-Pehrson
b704036531
[devel] Allow png_set_user_limits() to increase limits as well as reduce them.
2011-06-11 14:20:22 -05:00
John Bowler
6f55ee2ec5
[devel] Added log option to pngvalid.c and attempted to improve gamma messages.
2011-06-11 07:28:06 -05:00
John Bowler
6a1dc2329a
[devel] Removed string/memory macros that are no longer used
...
and are not necessarily fully supportable, particularly png_strncpy and
png_snprintf.
2011-06-11 06:58:46 -05:00
John Bowler
59a6c379dd
[devel] Revised pngvalid.c to test PNG_ALPHA_MODE_SUPPORTED correctly.
...
This allows pngvalid to build when ALPHA_MODE is not supported, which is
required if it is to build on libpng 1.4.
2011-06-11 06:51:06 -05:00
John Bowler
d2f0bc2d13
[devel] Improved gamma range checks and other things OpenWatcom warns about.
2011-06-11 06:42:06 -05:00
John Bowler
b011fe1c12
[devel] Remove testing cruft from projects/owatcom.
2011-06-11 06:36:51 -05:00
John Bowler
0eadc27cd6
[devel] Added projects/owatcom, an IDE project for OpenWatcom to replace
...
scripts/makefile.watcom. This project works with OpenWatcom 1.9. The
IDE autogenerates appropriate makefiles (libpng.mk) for batch processing.
The project is configurable, unlike the Visual Studio project, so long
as the developer has an awk.
2011-06-11 06:31:28 -05:00
Glenn Randers-Pehrson
700c55036c
[devel] Added "_SUPPORTED" to the PNG_WRITE_CUSTOMIZE_ZTXT_COMPRESSION macro.
2011-06-10 23:26:03 -05:00
John Bowler
b2bee3374c
[devel] Make the 16-to-8 scaling accurate. Dividing by 256 with no rounding is
...
wrong (high by one) 25% of the time. Dividing by 257 with rounding is
wrong in 128 out of 65536 cases. Getting the right answer all the time
without division is easy.
2011-06-10 23:24:58 -05:00
Glenn Randers-Pehrson
cc2770850a
[devel] Revised documentation about png_set_user_limits() to say that it can
...
only be used to reduce the defined limit, and that it also affects
png writing.
2011-06-10 21:17:34 -05:00
Glenn Randers-Pehrson
fb27873021
[devel] Bump version to libpng-1.5.3beta11
2011-06-10 20:46:53 -05:00
Glenn Randers-Pehrson
590fb8c481
[devel] Removed #ifdef in png.c that caused sCAL handler to leak memory.
2011-06-10 20:25:49 -05:00
John Bowler
4e8d7ec5fc
[devel] Added sCAL chunk to pngtest.png
2011-06-10 17:47:09 -05:00
Glenn Randers-Pehrson
254a513fd1
[devel] Fixed png_handle_sCAL which is broken in 1.5
2011-06-10 17:45:48 -05:00
Glenn Randers-Pehrson
ab1a573768
[devel] Imported from libpng-1.5.3rc03.tar
2011-06-07 19:56:51 -05:00
Glenn Randers-Pehrson
cc5226bf2a
[master] Imported from libpng-1.4.8beta05.tar
2011-06-07 19:53:23 -05:00
Glenn Randers-Pehrson
8fbb563f4e
[master] Imported from libpng-1.4.8beta04.tar
2011-06-07 14:59:33 -05:00
Glenn Randers-Pehrson
65e6d5a34f
[master] Fixed 1-byte uninitialized memory reference in png_format_buffer()
...
(Bug report by Frank Busse, related to CVE-2004-0421).
2011-06-07 14:58:07 -05:00
Glenn Randers-Pehrson
38a9d2763c
[devel] Imported from libpng-1.5.3rc02.tar
2011-06-07 14:36:45 -05:00
Glenn Randers-Pehrson
07e1d34a84
[devel] Fixed 1-byte uninitialized memory reference in png_format_buffer()
...
(Bug report by Frank Busse, related to CVE-2004-0421).
2011-06-07 14:35:30 -05:00
Glenn Randers-Pehrson
47be2e7c3a
[master] Imported from libpng-1.4.8beta04.tar
2011-06-06 00:02:11 -05:00
Glenn Randers-Pehrson
4d694dadd8
[master] Issue warning instead of error for out of range coefficients
...
for rgb_to_gray transform
2011-06-05 23:44:05 -05:00
Glenn Randers-Pehrson
59397f985e
[master] Imported from libpng-1.4.8beta03.tar
2011-06-05 23:27:22 -05:00
Glenn Randers-Pehrson
cc1d4d0dbc
[master] Check for integer overflow in png_set_rgb_to_gray().
2011-06-05 23:26:14 -05:00
Glenn Randers-Pehrson
070434c045
[master] Imported from libpng-1.4.8beta02.tar
2011-06-05 17:21:29 -05:00
Glenn Randers-Pehrson
0dc882d7c3
[master] Ported bugfix in pngrtran.c from 1.5.3: Ensure coefficients are OK for
...
png_rgb_to_gray_fixed().
2011-06-05 17:19:17 -05:00
Glenn Randers-Pehrson
c3ac9a507a
[master] Bump to version bumpify-1.4.8rc01
2011-06-03 21:36:28 -05:00
Glenn Randers-Pehrson
a6afebc718
[master] Imported from libpng-1.4.8beta01.tar
2011-06-03 21:21:15 -05:00
Glenn Randers-Pehrson
d41915dc2a
[master] Port change to pngrtran.c from 1.5.3: when expanding a paletted image,
...
always expand to RGBA if transparency is present.
2011-06-03 21:17:49 -05:00
Glenn Randers-Pehrson
5a5ad7a5fa
[master] Check for up->location !PNG_AFTER_IDAT when writing unknown chunks
...
before IDAT.
2011-06-03 21:16:45 -05:00
Glenn Randers-Pehrson
9dad5e37ae
[master] Pass "" instead of '\0' to png_default_error() in png_err().
...
This mistake was introduced in libpng-1.2.20beta01.
2011-06-03 21:14:55 -05:00
Glenn Randers-Pehrson
36edbb5eee
[devel] Imported from libpng-1.5.3rc01.tar
2011-06-03 07:18:14 -05:00
Glenn Randers-Pehrson
3fceee058f
[devel] Fix typo in pngwutil.c comment.
2011-05-23 06:31:33 -05:00
Glenn Randers-Pehrson
adde7b5c1e
[master] Fix typo in pngwutil.c comment
2011-05-23 06:29:49 -05:00
Glenn Randers-Pehrson
0640cc3d3a
[devel] Bump to version libpng-1.5.3beta11
2011-05-20 09:31:08 -05:00
Glenn Randers-Pehrson
3f68453d4a
[devel] Imported from libpng-1.5.3beta10.tar
2011-05-20 09:30:08 -05:00
Glenn Randers-Pehrson
0a048923ae
[devel] Update CHANGES and ANNOUNCE
2011-05-18 21:44:37 -05:00
John Bowler
5441e18988
[devel] Add tests for expand16, more fixes for palette image tests
...
Changes only pngvalid and test-pngvalid-full.sh - no libpng changes -
corrects the code for palette image tests, disables attempts to validate
palette colors.
2011-05-18 18:57:12 -05:00
John Bowler
db0ed3e62d
[devel] png_set_background+png_expand_16 did not interwork correctly.
...
This problem is present in 1.5.2; if png_set_background is called with
need_expand false and the matching 16 bit color libpng erroneously just treats
it as an 8-bit color because of where png_do_expand_16 is in the transform
list. This simple fix reduces the supplied colour to 8 bits, so it gets
smashed, but this is better than the current behavior.
2011-05-18 18:51:24 -05:00
Glenn Randers-Pehrson
8a7ec52c8b
[devel] Consistently use "n-bit", not "n bit" in png.c
2011-05-17 07:14:30 -05:00
Glenn Randers-Pehrson
66e1b3abba
[devel] Bump to version libpng-1.5.3beta10
2011-05-17 07:03:21 -05:00
Glenn Randers-Pehrson
cd116fa248
[devel] Fix spelling of "conversion" in manual.
2011-05-17 06:56:50 -05:00
Glenn Randers-Pehrson
c261077788
[devel] Consistently use "n-bit", not "n bit" in CHANGES and ANNOUNCE.
2011-05-17 06:52:54 -05:00
Glenn Randers-Pehrson
55fbff358a
[devel] Consistently use "n-bit", not "n bit" in comments.
2011-05-17 06:49:32 -05:00
John Bowler
1921e6db90
[devel] Reversed earlier change of transformation order; move
...
png_expand_16 back where it was before libpng-1.5.3beta07.
The change doesn't work because it requires 16 bit gamma tables when the code
only generates 8 bit ones. This fails silently; the libpng code just doesn't
do any gamma correction. Moving the tests back leaves the old, inaccurate, 8
bit gamma calculations, but these are clearly better than none!
2011-05-16 20:57:54 -05:00
Glenn Randers-Pehrson
bb4f77cd95
[devel] Bump to version libpng-1.5.3beta09
2011-05-16 20:42:11 -05:00
Glenn Randers-Pehrson
5ca62c9f35
[devel] Bump to version libpng-1.5.3rc01
2011-05-16 09:14:42 -05:00
Glenn Randers-Pehrson
1591a4c9dc
[devel] Imported from libpng-1.5.3beta08.tar
2011-05-16 09:10:37 -05:00
Glenn Randers-Pehrson
c36074e85a
[devel] Removed reference to non-existent png_set_rgb_to_Y from the manual.
2011-05-16 09:08:51 -05:00
Glenn Randers-Pehrson
73904f52b4
[devel] Minor revisions to comments on pngstruct.h and pngvalid.c
2011-05-15 19:38:06 -05:00
Glenn Randers-Pehrson
0e128dfa2f
[devel] Update CHANGES and ANNOUNCE; fix some new typos in comments.
2011-05-15 19:09:24 -05:00
John Bowler
9994f25733
[devel] pngvalid: add memory overwrite and palette image checks
...
also minor cleanup in the libpng code itself (pngrtran.c and pngrutil.c) and some
extra checking there.
2011-05-15 18:52:39 -05:00
Glenn Randers-Pehrson
593fc04096
[devel] Fix typos and indentation in new material in the documentation.
2011-05-12 22:18:23 -05:00
John Bowler
cb0b29631f
[devel] Documented png_set_alpha_mode(), other changes in libpng.3 and
...
libpng-manual.txt.
The cHRM chunk now sets the defaults for png_set_rgb_to_gray() (when negative
parameters are supplied by the caller), while in the absence of cHRM
sRGB/Rec 709 values are still used.
The bKGD chunk no longer overwrites the background value set by
png_set_background(), allowing the latter to be used before the file
header is read. It never performed any useful function to override
the default anyway.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit
2011-05-12 21:48:29 -05:00
John Bowler
ed4d32baa4
[devel] Improve "pngvalid --speed" to exclude more of pngvalid from the time.
2011-05-11 23:02:28 -05:00
Glenn Randers-Pehrson
d83530f45d
[devel] Bump to version libpng-1.5.3beta08
2011-05-11 14:39:11 -05:00
Glenn Randers-Pehrson
cb3f42123f
[devel] Imported from libpng-1.5.3beta07.tar
2011-05-11 14:36:14 -05:00
Glenn Randers-Pehrson
36fa2a0abd
[devel] Check for up->location !PNG_AFTER_IDAT when writing unknown chunks
...
before IDAT.
2011-05-11 06:52:37 -05:00
Glenn Randers-Pehrson
2d3fc1ca3b
[devel] Moved macro definitions for PNG_HAVE_IHDR, PNG_HAVE_PLTE, and
...
PNG_AFTER_IDAT from pngpriv.h to png.h because they must be visible to
applications that call png_set_unknown_chunks().
2011-05-10 23:48:00 -05:00
John Bowler
f70c7d02e9
[devel] Added named value and 'flag' gamma support to png_set_gamma. Made a
...
minor change from the previous (unreleased) ABI/API to hide the exact value
used for Macs - it's not a good idea to embed this in the ABI!
2011-05-10 22:54:37 -05:00
Glenn Randers-Pehrson
d768d103cf
[devel] Minor revision of commentary about png_set_alpha_mode().
2011-05-08 23:26:19 -05:00
Glenn Randers-Pehrson
44e26d4149
[devel] Revised commentary about png_set_alpha_mode() to make it clearer
...
that this only affects how composited pixels are returned to the calling
application; they don't affect the pixels that are written to a PNG file.
2011-05-08 22:56:42 -05:00
John Bowler
96cec0e1a3
[devel] Added expand_16 suppport to the high level interface.
2011-05-08 22:48:12 -05:00
John Bowler
a9b34191ae
[devel] Added expand_16 suppport to the high level interface.
2011-05-08 19:46:51 -05:00
Glenn Randers-Pehrson
e9eeb743cb
[devel] Reverted recent change of errors to warnings.
2011-05-08 19:39:17 -05:00
Glenn Randers-Pehrson
8ba34667a1
[devel] Changed some errors to warnings, added missing "png_ptr" arg in
...
some currently dead code in pngrtran.c that will be enabled in libpng-1.6
2011-05-08 06:02:18 -05:00
Glenn Randers-Pehrson
87952f0623
[devel] Fix spelling of "implemented" in CHANGES and ANNOUNCE
2011-05-07 22:36:47 -05:00
Glenn Randers-Pehrson
d12c02f020
[devel] Bump to version libpng-1.5.3beta07
2011-05-07 22:07:33 -05:00
Glenn Randers-Pehrson
f3d737dad1
[devel] Imported from libpng-1.5.3beta06.tar
2011-05-07 22:04:26 -05:00
Glenn Randers-Pehrson
492ef9c964
[devel] Apply new PNG_WARNING_PARAMETERS macro in pngwutil.c
2011-05-07 21:42:25 -05:00
Glenn Randers-Pehrson
c7822514cc
[devel] Fix typos in comments, add new API synopses to libpng.3
2011-05-07 21:23:43 -05:00
John Bowler
d273ad2d0f
[devel] Implementation of premultiplied alpha support: png_set_alpha_mode
...
(libpng-manual.txt still to be updated, see png.h for documentation.)
2011-05-07 21:00:28 -05:00
Glenn Randers-Pehrson
af855e415d
[devel] Remove some trailing blanks.
2011-05-07 10:54:28 -05:00
Glenn Randers-Pehrson
6ee0edf880
[devel] Removed the -D_ALL_SOURCE from definitions for AIX in CMakeLists.txt
2011-05-05 22:13:18 -05:00
Glenn Randers-Pehrson
00015a81dd
[devel] Bump to version libpng-1.5.3beta06
2011-05-05 21:11:56 -05:00
Glenn Randers-Pehrson
e1018a5bbb
[devel] Imported from libpng-1.5.3beta05.tar
2011-05-05 21:06:51 -05:00
John Bowler
c5bef946b1
[devel] IDAT compression failed if preceded by a compressed text chunk
...
This was because the attempt to reset the zlib stream in png_write_IDAT
happened after the first IDAT chunk had been deflated - much too late.
In this change internal functions are added to claim/release the z_stream
and, hopefully, make the code more robust. Also deflateEnd checking is
added - previously libpng would ignore an error at the end of the stream.
2011-05-05 17:35:39 -05:00
Glenn Randers-Pehrson
c559bb58ed
[devel] Added PNG_WRITE_OPTIMIZE_CMF_SUPPORTED macro to make zlib "CMF"
...
optimization configureable.
2011-05-05 16:55:20 -05:00
Glenn Randers-Pehrson
4753906826
[devel] Update "last changed" dates and added CHANGES entry.
2011-05-05 07:32:30 -05:00
John Bowler
88b77cc6f3
[devel] Remove png_snprintf, add formatted warning messages.
...
This change adds internal APIs to allow png_warning messages to have parameters
without requiring the host OS to implelment snprintf. As a side effect the
dependency of the RFC1132 code on stdio is removed and PNG_NO_WARNINGS does
actually work now.
2011-05-05 06:49:55 -05:00
Glenn Randers-Pehrson
b3b7168077
[devel] Added appropriate feature test macros (_POSIX_SOURCE, _ISOC99_SOURCE)
...
to ensure libpng sees the correct API.
2011-05-03 22:30:19 -05:00
Glenn Randers-Pehrson
3bdde42e40
[master] Copied png_debug macros from pngpriv.h into pngtest.c and removed
...
"#include pngpriv.h" from pngtest.c, to avoid setting a bad example.
2011-05-02 14:11:10 -05:00
Glenn Randers-Pehrson
6b4dee12f5
[master] Hard-coded the name of libpng-version.txt in Makefile.am, .in
2011-05-02 12:38:48 -05:00
Glenn Randers-Pehrson
355b90387b
[master] Undef "_ALL_SOURCE" for AIX, to prevent "jmpbuf" from being redefined.
2011-05-02 12:29:20 -05:00
Glenn Randers-Pehrson
f512ca7625
[master] Bump to version 1.4.8beta01
2011-05-02 12:23:29 -05:00
Glenn Randers-Pehrson
1384c048e4
[devel] Added comments in png.h about relocation of the png_struct
...
and png_info definitions.
2011-04-28 23:22:18 -05:00
Glenn Randers-Pehrson
24fde6e00f
[devel] Bump to version libpng-1.5.3beta05
2011-04-28 23:20:24 -05:00
Glenn Randers-Pehrson
33ced44f9e
[devel] Bump to version libpng-1.5.3beta04
2011-04-27 15:38:15 -05:00
John Bowler
e6dc85bb0b
[devel] Changed png_struct jmp_buf member name to avoid clash with macro
2011-04-27 14:47:15 -05:00
Glenn Randers-Pehrson
20786be695
[devel] Added more about creating and destroying the optional "end_info"
...
structure in the libpng documentation.
2011-04-20 22:20:40 -05:00
Glenn Randers-Pehrson
99778e17af
[devel] Mention the reason to call png_read_end() in the libpng documentation.
2011-04-20 17:43:52 -05:00
Glenn Randers-Pehrson
cf78aee1c4
[devel] Removed an obsolete statement from libpngpf.3
2011-04-17 19:26:56 -05:00
Glenn Randers-Pehrson
6cd31bbfce
[devel] Give credit for recent bug report to Andrew Church.
2011-04-17 19:02:00 -05:00
Glenn Randers-Pehrson
4bc9f8472c
[devel] Updated CHANGES, ANNOUNCE, and pngtest.png to reflect recent changes.
2011-04-17 18:58:38 -05:00
John Bowler
4a12f4a22a
[devel] Cleanup of conditional compilation code and of background/gamma
...
handling. Internal changes only except for a new option to avoid compiling
in the png_build_grayscale_palette API (which is not used at all internally.)
The main change is to move the transform tests (READ_TRANSFORMS,
WRITE_TRANSFORMS) up one level to the caller of the APIs.
2011-04-17 18:34:22 -05:00
Glenn Randers-Pehrson
a1f9426399
[devel] Bump to version libpng-1.5.3beta04
2011-04-16 21:48:23 -05:00
Glenn Randers-Pehrson
9f1cd70774
[devel] Imported from libpng-1.5.3beta03.tar
2011-04-16 21:39:11 -05:00
Glenn Randers-Pehrson
d2795b7909
[devel] Revised a comment about png_do_strip_channel().
2011-04-16 19:41:23 -05:00
Glenn Randers-Pehrson
b75b24103d
[devel] Added some whitespace in comments.
2011-04-16 19:35:05 -05:00
Glenn Randers-Pehrson
cb1aee2506
[devel] Fixed bug with stripping the filler or alpha channel when writing,
...
that was introduced in libpng-1.5.2beta01.
2011-04-16 19:27:34 -05:00
John Bowler
8d4ce1fed5
[devel] Fixed 64-bit builds where png_uint_32 is smaller than png_size_t
2011-04-15 06:54:30 -05:00
John Bowler
7abc130a81
[devel] Updated the vstudio project to zlib-1.2.5
2011-04-15 06:39:30 -05:00
John Bowler
5adc5a2ff8
[devel] Removed the now-unused PNG_DEPSTRUCT macro
2011-04-15 06:38:29 -05:00
John Bowler
b302c4721a
[devel] Removed the PNG_PTR_NORETURN attribute
2011-04-15 06:37:34 -05:00
John Bowler
537c146082
[devel] Fixed gcc -ansi -pedantic compile, using __STRICT_ANSI__
2011-04-15 06:36:21 -05:00
Glenn Randers-Pehrson
16ee3e9870
[master] Imported from libpng-1.4.7.tar
2011-04-10 06:44:29 -05:00
Glenn Randers-Pehrson
c8444775b1
[devel] Disabled PNG_PEDANTIC_WARNINGS for all MSC versions as in libpng-1.4.5.
2011-04-10 06:43:27 -05:00
Glenn Randers-Pehrson
784d80b509
[master] Imported from libpng-1.4.7rc01.tar
2011-04-08 20:54:20 -05:00
Glenn Randers-Pehrson
98aacb16c3
[master] Relocated new misplaced declarations in pngwutil.c
2011-04-08 20:41:48 -05:00
Glenn Randers-Pehrson
8a35e25852
[master] Imported from libpng-1.4.6.tar
2011-04-08 12:03:08 -05:00
Glenn Randers-Pehrson
97eb073189
[master] Imported from libpng-1.4.6rc02.tar
2011-04-06 07:09:52 -05:00
Glenn Randers-Pehrson
28534bd47a
[master] Improved the optimization of the zlib CMF byte
...
(see libpng-1.2.6beta03).
2011-04-06 07:07:42 -05:00
Glenn Randers-Pehrson
2053a26873
[master] Updated vstudio/zlib.props to zlib-1.2.5
2011-04-04 15:41:32 -05:00
Glenn Randers-Pehrson
b6743ea08e
[devel] Updated zlib.props to zlib-1.2.5
2011-04-04 15:40:59 -05:00
Glenn Randers-Pehrson
61365b6d15
[devel] Removed "#if 1" and the matching "#endif"
2011-04-03 19:49:37 -05:00
Glenn Randers-Pehrson
736a230890
[master] Bump to version 1.4.6rc02
2011-04-03 11:36:05 -05:00
Glenn Randers-Pehrson
3926448598
[devel] Fixed a typo in the manual about dithering
2011-04-03 11:34:40 -05:00
Glenn Randers-Pehrson
1b491cbda0
[devel] Bump to version libpng-1.5.3beta03
2011-04-03 06:51:53 -05:00
Glenn Randers-Pehrson
8abcf141fa
[devel] Imported from libpng-1.5.3beta02.tar
2011-04-03 06:36:34 -05:00
Glenn Randers-Pehrson
b8e314072f
[devel] Replaced pngtest.png with one that has the zTXt CMF optimized.
2011-04-02 08:28:31 -05:00
Glenn Randers-Pehrson
6785856858
[devel] Optimize the zlib CMF byte in non-IDAT compressed chunks
2011-04-02 08:26:42 -05:00
Glenn Randers-Pehrson
e99107b1aa
[devel] Moved misplaced declarations
2011-04-02 05:49:03 -05:00
Glenn Randers-Pehrson
f30f0e04e3
[devel] Fixed typo in scripts/symbols.def
...
(compression_level -> compression_method)
2011-04-01 22:17:55 -05:00
Glenn Randers-Pehrson
c3b3240a03
[devel] Improved the optimization of the zlib CMF byte
...
(see libpng-1.2.6beta03).
2011-04-01 22:10:41 -05:00
Glenn Randers-Pehrson
65a24d0638
[devel] Add comment in pngtest.c about setting zlib strategy for text
...
compression
2011-04-01 20:41:53 -05:00
Glenn Randers-Pehrson
a45f47c225
[devel] Updated documentation on setting non-IDAT zlib compression parameters
2011-04-01 15:31:26 -05:00
Glenn Randers-Pehrson
c683100e31
[devel] zlib text compression parameters fall back on non-IDAT parameters
...
except for strategy which defaults to the zlib default.
2011-04-01 15:24:18 -05:00
Glenn Randers-Pehrson
ec8296ab81
[devel] Relocated some comment lines in pngwutil.c
2011-04-01 15:09:05 -05:00
Glenn Randers-Pehrson
bdb0130aea
[devel] Remove "sPLT" from list of chunks that require compressed text
2011-04-01 14:55:01 -05:00
Glenn Randers-Pehrson
5975f31ff0
[devel] Added PNG_READ_COMPRESSED_TEXT_SUPPORTED macro.
2011-04-01 13:15:36 -05:00
Glenn Randers-Pehrson
205483d592
[devel] Added PNG_WRITE_COMPRESSED_TEXT_SUPPORTED macro.
2011-04-01 12:33:42 -05:00
Glenn Randers-Pehrson
3bb8683a79
[devel] Only compile the new zlib re-initializing code when text or iCCP
...
is supported.
2011-04-01 08:12:24 -05:00
Glenn Randers-Pehrson
bef60dc624
[devel] Updated scripts/symbols.def with new API functions.
2011-04-01 00:28:59 -05:00
Glenn Randers-Pehrson
8eb8833b74
[devel] Updated manual about the new API additions
2011-04-01 00:16:50 -05:00
Glenn Randers-Pehrson
b0525f83e1
[devel] Bump to version libpng-1.5.3beta02
2011-03-31 23:50:46 -05:00
Glenn Randers-Pehrson
ee1369b853
[devel] Imported from libpng-1.5.3beta01.tar
2011-03-31 23:50:36 -05:00
Glenn Randers-Pehrson
ea0c7b699e
[devel] Update LAST_ORDINAL to 226 in png.h, to account for new API.
2011-03-31 23:25:29 -05:00
Glenn Randers-Pehrson
f83783115f
[devel] Use a mode bit to avoid reopening the zstream except when necessary.
2011-03-31 22:06:04 -05:00
Glenn Randers-Pehrson
ed8aab4d85
[devel] Free zstream memory with deflateEnd before reinitializing it.
2011-03-31 21:33:39 -05:00
Glenn Randers-Pehrson
6bdea98992
[devel] Revised pngtest.c to set the zlib strategy, and restored pngtest.png
2011-03-31 21:14:55 -05:00
Glenn Randers-Pehrson
4a392c74cf
[devel] Replace pngtest.png with one compressed with libpng-1.5.3beta01.
...
The zTXt chunk is 4 bytes larger than before.
2011-03-31 20:56:05 -05:00
Glenn Randers-Pehrson
1ecd786d95
[devel] Enable API for setting zlib non-IDAT parameters.
2011-03-31 20:53:47 -05:00
Glenn Randers-Pehrson
1345cbeea8
[devel] Update change comments (1.5.2 -> 1.5.3)
2011-03-31 20:33:04 -05:00
Glenn Randers-Pehrson
ab23d34dd9
[devel] Update change date
2011-03-31 20:19:28 -05:00
Glenn Randers-Pehrson
907333884f
[devel] Bump to version libpng-1.5.3beta01
2011-03-31 20:16:03 -05:00
Glenn Randers-Pehrson
6b3d50b2cd
[devel] Re-initialize the zlib compressor before compressing non-IDAT chunks.
2011-03-31 20:14:29 -05:00
Glenn Randers-Pehrson
11130874d4
[master] Imported from libpng-1.4.6rc01.tar
2011-03-31 13:46:06 -05:00
Glenn Randers-Pehrson
ef5a57119a
[master] Imported from libpng-1.4.6beta07.tar
2011-03-22 06:31:58 -05:00
Glenn Randers-Pehrson
31f4e52842
[master] Fixed a bug (present since libpng-1.0.7) that makes png_handle_sPLT()
...
fail to compile when PNG_NO_POINTER_INDEXING is defined.
2011-03-21 18:20:24 -05:00
Glenn Randers-Pehrson
0e1aad158a
[master] Removed "strip" from contrib/pngminim/*/makefile.
2011-03-19 22:37:30 -05:00
Glenn Randers-Pehrson
5f5d6d637b
[master] Fixed incorrect examples of callback prototypes in the manual,
...
that were introduced in libpng-1.0.0.
2011-03-19 09:30:41 -05:00
Glenn Randers-Pehrson
a2336bcf05
[master] Bump to version 1.4.6beta07
2011-03-19 09:11:21 -05:00
Glenn Randers-Pehrson
20e6003290
[master] Added a request in the manual that applications do not use "png_" or
...
"PNG_" to begin any of their own symbols.
Fixed mistake in the descriptions of user read_transform and write_transform
function prototypes in the manual. The row_info struct is png_row_infop.
2011-03-19 09:08:45 -05:00
Glenn Randers-Pehrson
54c633b810
[master] Added -D_CRT_SECURE_NO_DEPRECATE to CFLAGS in makefile.vcwin32
2011-03-19 08:58:33 -05:00
Glenn Randers-Pehrson
f0c2cc32b1
[master] Added attribute definition (warnings) for MSC_VER >= 1300 in pngconf.h
2011-03-19 08:48:07 -05:00
Glenn Randers-Pehrson
8709982e22
[master] Bump to version 1.4.6beta06
2011-03-18 22:25:49 -05:00
Glenn Randers-Pehrson
686d45dcfd
[master] Imported from libpng-1.4.6beta06.tar
2011-03-18 22:22:18 -05:00
Glenn Randers-Pehrson
8502e1ff25
[master] Moved the definition of the new PNG_USED macro into pngconf.h
...
It really belongs in pngpriv.h and will be moved there in libpng-1.5.x
2011-03-14 12:49:20 -05:00
Glenn Randers-Pehrson
603c9fd959
[master] Added the private PNG_UNUSED() macro definition in pngpriv.h.
2011-03-08 11:33:28 -06:00
Glenn Randers-Pehrson
86946fdc03
[master] Updated contrib/pngsuite/README to add the word "modify".
2011-03-08 11:28:35 -06:00
Glenn Randers-Pehrson
af4c99b21a
[master] Bump to version 1.4.6beta06
2011-01-22 21:49:52 -06:00
Glenn Randers-Pehrson
97d2d68428
[master] Imported from libpng-1.4.6beta05.tar
2011-01-22 21:22:48 -06:00
Glenn Randers-Pehrson
ce5d7cb7aa
[master] Updated the synopses in the manual to reflect recent changes.
...
Fixed a typo in the *.def files and deleted entries that are now
declared in pngpriv.h
2011-01-22 21:10:03 -06:00
Glenn Randers-Pehrson
c4ff4e7167
[master] Imported from libpng-1.4.6beta04.tar
2011-01-21 22:20:15 -06:00
Glenn Randers-Pehrson
b94d24eb25
[master] Changed argument of png_get_io_ptr() back to png_struct
...
because we promised not to change its signature, so it can be used
safely in configure scripts to detect libpng.
2011-01-21 22:17:18 -06:00
Glenn Randers-Pehrson
379d0160ea
[master] Added const_png_structp and const_png_infop types, and used them in
...
prototypes for most png_get_*() functions.
In the manual, describe the png_get_IHDR() arguments in the correct order.
2011-01-21 11:09:07 -06:00
Glenn Randers-Pehrson
23c2ea38a6
[master] Bump to version 1.4.6beta04
2011-01-15 12:05:31 -06:00
Glenn Randers-Pehrson
d486eb18c5
[master] Updated documentation of png_set|get_tRNS() and png_set|get_iCCP().
2011-01-15 11:15:38 -06:00
Glenn Randers-Pehrson
a10d488a32
[master] Imported from libpng-1.4.6beta03.tar
2011-01-14 21:04:40 -06:00
Glenn Randers-Pehrson
25d754e86d
[master] Bump to version 1.4.6beta02
2011-01-14 20:26:03 -06:00
Glenn Randers-Pehrson
bba85637d7
[master] Imported from libpng-1.4.6beta02.tar
2011-01-14 17:26:54 -06:00
Glenn Randers-Pehrson
94c3a45f4c
[master] Updated CMakeLists.txt (Clifford Yapp)
2011-01-14 17:25:06 -06:00
Glenn Randers-Pehrson
221be3def1
[master] Fixed misspelled macros in contrib/pngminim (Cosmin)
2010-12-31 09:05:59 -06:00
Glenn Randers-Pehrson
1daf8980dd
[master] Bump to version 1.4.6beta02
2010-12-31 09:04:02 -06:00
Glenn Randers-Pehrson
5945408a93
[master] Imported from libpng-1.4.6beta01.tar
2010-12-31 08:06:37 -06:00
Glenn Randers-Pehrson
9a8c568e3c
[master] Fixed bug in background transformation handling in pngrtran.c
...
(it was looking for the flag in png_ptr->transformations instead of in
png_ptr->flags).
2010-12-28 21:45:08 -06:00
Glenn Randers-Pehrson
fb05477e11
[master] Bump version to 1.4.6beta01
2010-12-27 09:04:59 -06:00
Glenn Randers-Pehrson
df68ef4d5e
[master] Imported from libpng-1.4.5.tar
2010-12-09 07:49:40 -06:00
Glenn Randers-Pehrson
d857ed275e
[master] Reverted removal of PNG_NO_WRITE_gAMA
2010-12-09 07:42:25 -06:00
Glenn Randers-Pehrson
14181b7f48
[master] Removed PNG_NO_WRITE_gAMA from pngminim/encoder/pngusr.h, again.
2010-12-09 07:27:49 -06:00
Glenn Randers-Pehrson
6916ec5fa9
[master] Bump to version 1.4.5rc04
2010-12-09 07:12:52 -06:00
Glenn Randers-Pehrson
acb4822f6b
[master] Removed PNG_NO_WRITE_GAMMA from pngminim/encoder/pngusr.h
...
and some cosmetic changes to some source files.
2010-12-09 06:43:24 -06:00
Glenn Randers-Pehrson
79fb836d66
[master] Imported from libpng-1.4.5rc03.tar
2010-12-03 10:02:23 -06:00
Glenn Randers-Pehrson
010110a0be
[master] Imported from libpng-1.4.5rc02.tar
2010-12-02 07:05:34 -06:00
Glenn Randers-Pehrson
756f873a25
[master] Added comment about the potential API incompatibility in
...
png.h, libpng.3, and libpng-*.txt.
2010-11-25 07:38:30 -06:00
Glenn Randers-Pehrson
e2d740ae04
[master] Reverted png_get_uint_16 macro to beta05 and added a
...
comment about the potential API incompatibility.
2010-11-24 15:08:39 -06:00
Glenn Randers-Pehrson
ff244b6181
[master] Bump to version 1.4.5beta07
2010-11-24 15:04:15 -06:00
Glenn Randers-Pehrson
d3494d172c
[master] Imported from libpng-1.4.5beta06.tar
2010-11-21 15:05:12 -06:00
Glenn Randers-Pehrson
2922c07e67
[master] Changes to remove gcc warnings (John Bowler)
2010-11-21 14:02:16 -06:00
Glenn Randers-Pehrson
c03a949a0d
[master] Make the "png_get_uint_16" macro return a png_uint_32 in libpng-1.4
...
for API compatibility.
2010-11-21 13:31:52 -06:00
Glenn Randers-Pehrson
377e3ca5e6
[master] Added a comment about the parentheses in pngrutil.c
2010-11-20 22:56:49 -06:00
Glenn Randers-Pehrson
f320728911
[master] Restored the parentheses in pngrutil.c; they are needed when the
...
png_get_*int_*() functions are compiled (i.e., when PNG_USE_READ_MACROS
is not defined).
2010-11-20 21:41:51 -06:00
Glenn Randers-Pehrson
b4a5d88e0a
[master] Updated png_get_uint_32 like the others (i -> val).
2010-11-20 18:01:52 -06:00
Glenn Randers-Pehrson
7ea0b3b9e2
[master] Bump to version 1.4.5rc02
2010-11-20 18:01:01 -06:00
Glenn Randers-Pehrson
aa3725c860
[master] Fixed spelling in ANNOUNCE and CHANGES
2010-11-20 17:38:14 -06:00
Glenn Randers-Pehrson
8aa84c7fce
[master] Imported from libpng-1.4.5beta05.tar
2010-11-20 17:15:36 -06:00
Glenn Randers-Pehrson
453ceae85f
[master] Fixed atomicity of chunk header serialization (Cosmin)
...
and added test for io_state in pngtest.c (Cosmin)
2010-11-20 16:13:12 -06:00
Glenn Randers-Pehrson
1f5a0b9fa6
[master] Moved reading of file signature into png_read_sig (Cosmin)
2010-11-20 15:50:51 -06:00
Glenn Randers-Pehrson
820a8d1de9
[master] Changed prototypes for png_git_int_16() and png_get_int_32().
2010-11-20 15:07:51 -06:00
Glenn Randers-Pehrson
6bb02b28a1
[master] Revised png_get_int_32 and png_get_int_16 functions.
2010-11-20 15:00:35 -06:00
Glenn Randers-Pehrson
60ba227d57
[master] Removed some extraneous parentheses that appeared in pngrutil.c of
...
libpng-1.4.3bet01
2010-11-20 14:47:36 -06:00
Glenn Randers-Pehrson
175e21f5e1
[master] Imported from libpng-1.4.5rc01.tar
2010-11-18 22:11:18 -06:00
Glenn Randers-Pehrson
97db6709e4
[master] Imported from libpng-1.4.5beta04.tar
2010-11-08 12:44:03 -06:00
Glenn Randers-Pehrson
c0fc0dfc45
[master] Check for out-of-range text compression mode in png_set_text().
2010-10-13 07:34:30 -05:00
Glenn Randers-Pehrson
f3eadd1737
[master] Bump to version 1.4.5beta04
2010-10-13 07:13:45 -05:00
Glenn Randers-Pehrson
c4ec48281c
[master] Imported from libpng-1.4.5beta03.tar
2010-10-07 20:52:27 -05:00
Glenn Randers-Pehrson
1a006390d9
[master] Wrapped long lines in CMakeLists.txt
...
and introduced ${libpng_public_hdrs}
2010-10-05 08:36:49 -05:00
Glenn Randers-Pehrson
953f265513
[master] Bump to version 1.4.5beta03
2010-10-04 23:16:06 -05:00
Glenn Randers-Pehrson
468877578a
[master] Imported from libpng-1.4.5beta02.tar
2010-10-04 23:15:57 -05:00
Glenn Randers-Pehrson
ff14eeb4f2
[master] Revised CHANGES about the last bugfix.
2010-10-04 22:18:50 -05:00
Glenn Randers-Pehrson
5f3eabf4cd
[master] Fixed problem with symbols creation in Makefile.ac (Martin Banky).
2010-10-04 21:51:57 -05:00
Glenn Randers-Pehrson
bbc70d2471
[master] Reverted configure scripts to autoconf-2.65
2010-10-04 17:00:31 -05:00
Glenn Randers-Pehrson
a0cafa3d0b
[master] Bump to version 1.4.5beta02
2010-09-25 06:38:06 -05:00
Glenn Randers-Pehrson
58219ca22f
[master] Imported from libpng-1.4.5beta01.tar
2010-09-25 06:35:14 -05:00
Glenn Randers-Pehrson
50b28f3bf2
[master] Rebuilt configure scripts with autoconf-2.68 instead of autoconf-2.65
2010-09-24 15:22:09 -05:00
Glenn Randers-Pehrson
0f8345abf7
[master] Bump to version 1.4.5beta01
2010-09-24 10:22:16 -05:00
Glenn Randers-Pehrson
4f213e08aa
[master] Fixed configure.ac bug introduced in version 1.4.4rc05.
2010-09-24 09:51:01 -05:00
Glenn Randers-Pehrson
8493de3cee
[master] Imported from libpng-1.4.4.tar
2010-09-23 07:22:01 -05:00
Glenn Randers-Pehrson
fee6e7428f
[master] Imported from libpng-1.4.4rc05.tar
2010-09-20 10:21:28 -05:00
Glenn Randers-Pehrson
d10616d364
[master] Imported from libpng-1.4.4rc04.tar
2010-09-16 09:51:06 -05:00
Glenn Randers-Pehrson
85d143a273
[master] Revised autogen.sh to recognize and use $AUTOCONF, $AUTOMAKE,
...
$AUTOHEADER, $AUTOPOINT, $ACLOCAL and $LIBTOOLIZE
2010-09-15 06:44:47 -05:00
Glenn Randers-Pehrson
6e72bc46d3
[master] Fixed indentation and removed debugging message from CMakeLists.txt
2010-09-15 06:43:23 -05:00
Glenn Randers-Pehrson
b8eed1d830
[master] Imported from libpng-1.4.4rc03.tar
2010-09-13 20:58:20 -05:00
Glenn Randers-Pehrson
a64ecdfa5b
[master] Eliminated another deprecated reference to png_ptr->io_ptr
...
in pngtest.c
2010-09-13 10:19:20 -05:00
Glenn Randers-Pehrson
bcfc0ce5f6
[master] Removed an extraneous close-double-quote from CMakeLists.txt
2010-09-13 09:57:13 -05:00
Glenn Randers-Pehrson
8bc0719dde
[master] Imported from libpng-1.4.4rc02.tar
2010-09-13 08:14:27 -05:00
Glenn Randers-Pehrson
185cd6c058
[master] Revised CMakeLists.txt (Philip Lowman).
2010-09-13 08:13:09 -05:00
Glenn Randers-Pehrson
afb77541b4
[master] Bump to version 1.4.4rc02
2010-09-13 08:11:54 -05:00
Glenn Randers-Pehrson
c4a5c2de26
[master] Imported from libpng-1.4.4rc01.tar
2010-09-10 08:50:36 -05:00
Glenn Randers-Pehrson
87bc4b08ff
[master] Imported from libpng-1.4.4beta08.tar
2010-09-02 06:54:37 -05:00
Glenn Randers-Pehrson
65cdb3dfa8
[master] Updated the xcode project to work with libpng-1.4.x and added iOS
...
targets for simulator and device (Philippe Hausler).
2010-09-02 06:41:40 -05:00
Glenn Randers-Pehrson
cc411ae004
[master] Bump to version 1.4.4beta08
2010-08-26 08:50:32 -05:00
Glenn Randers-Pehrson
f521b99b09
[master] Imported from libpng-1.4.4beta07.tar
2010-08-26 08:46:53 -05:00
Glenn Randers-Pehrson
b08f330d62
[master] Eliminated new unnecessary #if tests regarding the sCAL chunk
...
from pngrutil.c
2010-08-24 12:38:36 -05:00
Glenn Randers-Pehrson
41ffb1c950
[master] Eliminated a deprecated reference to png_ptr->io_ptr in pngtest.c
2010-08-23 16:54:35 -05:00
Glenn Randers-Pehrson
ebe3ea3204
[master] Restored the documentation of PNG_USER_PRIVATEBUILD in pngconf.h
2010-08-23 06:46:18 -05:00
Glenn Randers-Pehrson
d94c4516c6
[master] Corrected handling and documentation of PNG_USER_PRIVATEBUILD flag.
2010-08-22 12:36:25 -05:00
Glenn Randers-Pehrson
b0f8d9bb97
[master] Changed PNG_LIB_NAME from pngNN to libpngNN in CMakeLists.txt
...
(Philip Lowman)
2010-08-21 18:55:08 -05:00
Glenn Randers-Pehrson
04dfe7b3f6
[master] Revised CMakeLists.txt to make symlinks instead of copies
...
when installing.
2010-08-21 18:49:50 -05:00
Glenn Randers-Pehrson
547afcfc74
[master] Revised CMakeLists.txt to put the man pages in share/man/man*
...
not in man/man*
2010-08-21 18:36:29 -05:00
Glenn Randers-Pehrson
48afdb4eef
[master] Update CMakelists.txt to use CMAKE_INSTALL_LIBDIR variable;
...
useful for installing libpng in /usr/lib64 (FundaWang).
2010-08-21 18:29:47 -05:00
Glenn Randers-Pehrson
9ee96e3ba9
[master] Updated prebuilt aclocal.m4 and ltmain.sh
2010-08-17 13:36:20 -05:00
Glenn Randers-Pehrson
0311f5412e
[master] Add .dll.a to symlinks installed by Makefile.am (Yaakov)
2010-08-13 08:14:13 -05:00
Glenn Randers-Pehrson
e734eba51e
[master] Bump to version 1.4.4beta07
2010-08-13 07:56:59 -05:00
Glenn Randers-Pehrson
7ed40716cb
[master] Imported from libpng-1.4.4beta06.tar
2010-08-11 09:10:35 -05:00
Glenn Randers-Pehrson
155889b318
[master] Revised contrib/gregbook to work under cygwin/mingw.
2010-08-11 06:50:11 -05:00
Glenn Randers-Pehrson
4dd011f6d0
[master] Don't try to use version-script with cygwin/mingw.
2010-08-11 06:48:37 -05:00
Glenn Randers-Pehrson
e45a5d3a32
[master] Bump to version 1.4.4beta06
2010-08-06 06:43:59 -05:00
Glenn Randers-Pehrson
80a1050237
[master] Bump to version 1.4.4beta05
2010-08-06 06:40:31 -05:00
Glenn Randers-Pehrson
54592bba4d
[master] Don't depend only _WINDOWS_ in pngconf.h to detect Windows
2010-08-06 06:36:56 -05:00
Glenn Randers-Pehrson
902d4d109a
[master] Correct use of _WINDOWS_ in pngconf.h
2010-08-03 21:10:04 -05:00
Glenn Randers-Pehrson
d8daacf157
[master] Removed unused png_mem_* defines from pngconf.h.
2010-08-03 20:47:46 -05:00
Glenn Randers-Pehrson
0da5bcb414
[master] Imported from libpng-1.4.4beta05.tar
2010-08-03 20:46:46 -05:00
Glenn Randers-Pehrson
ac6555fa3c
[master] Updated projects/visualc71 so it can find scripts/pnglibconf.h
2010-08-03 08:53:13 -05:00
Glenn Randers-Pehrson
2af7ef63c3
[master] Updated the read macros and functions from 1.5.0beta38.
2010-07-31 16:37:38 -05:00
Glenn Randers-Pehrson
6da5b35fca
[master] Bump to version 1.4.4beta04
2010-07-24 18:20:21 -05:00
Glenn Randers-Pehrson
abd68eb92b
[master] Imported from libpng-1.4.4beta03.tar
2010-07-24 18:16:54 -05:00
Glenn Randers-Pehrson
bf451ffc9a
[master] Eliminated the new special case typedef of png_longjmp_ptr for WATCOM
...
and made a special case "#define PNGAPI" in pngconf.h instead.
2010-07-24 18:13:55 -05:00
Glenn Randers-Pehrson
be734f5592
[master] Removed reference to cbuilder5/* from Makefile.in and Makefile.am
2010-07-24 15:31:38 -05:00
Glenn Randers-Pehrson
9f0c080847
[master] Bump to version 1.4.4beta03
2010-07-24 08:34:34 -05:00
Glenn Randers-Pehrson
3a1ba773b0
[master] Imported from libpng-1.4.4beta02.tar
2010-07-24 08:30:30 -05:00
Glenn Randers-Pehrson
849a1ab845
[master] Added a special case typedef of png_longjmp_ptr for WATCOM.
2010-07-24 08:02:03 -05:00
Glenn Randers-Pehrson
940de5ab02
[master] Moved the definition of png_snprintf()
...
outside of the enclosing #ifdef blocks in pngconf.h
2010-07-24 07:56:36 -05:00
Glenn Randers-Pehrson
dd9578f379
[master] Update copyright year in documentation
2010-07-22 07:55:00 -05:00
Glenn Randers-Pehrson
0ce807691b
[master] Added -DNO_PNG_SNPRINTF to CFLAGS in scripts/makefile.dj2
2010-07-16 21:17:50 -05:00
Glenn Randers-Pehrson
4f8ea5eede
[master] Bump to version 1.4.4beta02
2010-07-12 06:41:34 -05:00
Glenn Randers-Pehrson
7869e676af
[master] Imported from libpng-1.4.4beta01.tar
2010-07-12 06:37:08 -05:00
Glenn Randers-Pehrson
af0a726689
[master] Changed "extern PNG_EXPORT" to "PNG_EXPORT" in png.h (Jan Nijtmans)
...
Changed "extern" to "PNG_EXTERN" in pngpriv.h (except for the 'extern "C" {')
Put #ifndef PNG_EXTERN, #endif around the define PNG_EXTERN in pngpriv.h
2010-07-12 06:22:55 -05:00
Glenn Randers-Pehrson
8d9263fca6
[master] Added some "(" that were missing in README and scripts/README.txt
2010-06-30 23:11:34 -05:00
Glenn Randers-Pehrson
d6a0cbaade
[master] Removed some newly-added TAB characters from pngpread.c
...
and pngrtran.c, and fixed some indentation in pngpread.c and pngrutil.c
2010-06-30 23:07:02 -05:00
Glenn Randers-Pehrson
2302a4d04f
[master] Revised the "SEE ALSO" style of libpng.3, libpngpf.3, and png.5
2010-06-27 13:53:25 -05:00
Glenn Randers-Pehrson
8f9a2d08ea
[master] Bump version to libpng-1.4.4beta01
2010-06-25 22:18:15 -05:00
Glenn Randers-Pehrson
30c73195b5
[master] Tag the recent releases
2010-06-25 20:44:31 -05:00
Glenn Randers-Pehrson
097485195c
[master] Imported from libpng-1.4.3.tar
2010-06-25 20:22:08 -05:00
Glenn Randers-Pehrson
c5f6fa110a
[master] Imported from libpng-1.4.3rc03.tar
2010-06-25 20:20:16 -05:00
Glenn Randers-Pehrson
90cfcecc09
[master] Imported from libpng-1.4.3rc02.tar
2010-06-25 20:20:14 -05:00
Glenn Randers-Pehrson
dee0e2ed0f
[master] Imported from libpng-1.4.3rc01.tar
2010-06-25 20:20:12 -05:00
Glenn Randers-Pehrson
5ad9884ff1
[master] Imported from libpng-1.4.3beta05.tar
2010-06-25 20:20:09 -05:00
Glenn Randers-Pehrson
188eb6b426
[master] Imported from libpng-1.4.3beta04.tar
2010-06-25 20:20:07 -05:00
Glenn Randers-Pehrson
8361f64dbf
[master] Imported from libpng-1.4.3beta02.tar
2010-06-25 20:20:04 -05:00
Glenn Randers-Pehrson
2a6227941e
[master] Imported from libpng-1.4.3beta01.tar
2010-06-25 20:20:02 -05:00
Glenn Randers-Pehrson
a582b8f840
[master] Imported from libpng-1.4.3.tar
2010-06-25 20:19:59 -05:00
Glenn Randers-Pehrson
5316f66005
[master] The "vstudio" project was missing from the .zip and .7z distributions
2010-05-17 08:31:53 -05:00
Glenn Randers-Pehrson
f86905457a
[master] Added missing quotation marks in the aix block of configure.ac
2010-05-14 15:40:31 -05:00
Glenn Randers-Pehrson
abb211c4e8
[master] Bump to version 1.4.3beta01
2010-05-14 15:38:51 -05:00
Glenn Randers-Pehrson
bb56c39d16
[master] Imported from libpng-1.4.2.tar
2010-05-06 06:48:47 -05:00
Glenn Randers-Pehrson
77237196c7
[master] Imported from libpng-1.4.2rc06.tar
2010-05-04 09:34:13 -05:00
Glenn Randers-Pehrson
a310a3b398
[master] Moved declarations of umsg[] inside the proper #ifdef blocks
...
in pngrutil.c
2010-05-04 09:32:02 -05:00
Glenn Randers-Pehrson
e0f6c7d90b
[master] Revert to version 1.4.2rc05
2010-05-04 09:24:32 -05:00
Glenn Randers-Pehrson
a1587302aa
[master] Use bitwise AND instead of integer arithmetic MOD in pngrutil.c
...
calculation of the png_ptr->rowbuf pointer into png_ptr->big_row_buf.
2010-05-03 21:57:13 -05:00
Glenn Randers-Pehrson
cc0bff446b
[master] Changed a typecast in pngrutil.c to stifle compiler warning
...
in the calculation of the png_ptr->rowbuf pointer into png_ptr->big_row_buf.
2010-05-03 21:28:50 -05:00
Glenn Randers-Pehrson
9b8ddff5b7
[master] Added a typecast in pngrutil.c to stifle compiler warning
...
in the calculation of the png_ptr->rowbuf pointer into png_ptr->big_row_buf.
2010-05-03 15:19:11 -05:00
Glenn Randers-Pehrson
ac4942e26b
[master] Moved declarations of umsg[] inside proper #ifdef blocks in pngrutil.c
2010-05-03 15:18:09 -05:00
Glenn Randers-Pehrson
2c55e3e917
[master] Bump to version 1.4.2rc06
2010-04-29 11:47:15 -05:00
Glenn Randers-Pehrson
db082802c6
[master] Bump to version 1.4.2rc05
2010-04-29 11:44:55 -05:00
Glenn Randers-Pehrson
b367fb5ac6
[master] Bump to version 1.4.2rc06
2010-04-29 11:20:42 -05:00
Glenn Randers-Pehrson
e9ab2f8d94
[master] Imported from libpng-1.4.2rc05.tar
2010-04-29 11:08:01 -05:00
Glenn Randers-Pehrson
a845cca037
[master] Corrected protection of png_get_user_transform_ptr.
...
The API declaration in
png.h is removed if both READ and WRITE USER_TRANSFORM are turned off
but was left defined in pngtrans.c
2010-04-29 10:43:23 -05:00
Glenn Randers-Pehrson
3ab6ef0aa1
[master] Corrected PNG_UNKNOWN_CHUNKS_SUPPORTED in gregbook/readpng2.c
...
to PNG_HANDLE_AS_UNKNOWN_SUPPORTED
2010-04-29 10:34:18 -05:00
Glenn Randers-Pehrson
198ed18b9e
[master] Bump to version 1.4.2rc05
2010-04-29 09:41:01 -05:00
Glenn Randers-Pehrson
9110473f93
[master] Removed dummy_inflate.c and uncompr.c from contrib/pngminim/encoder
2010-04-29 09:38:05 -05:00
Glenn Randers-Pehrson
97313e0aab
[master] Include png_reset_zstream() in png.c only when PNG_READ_SUPPORTED
...
is defined.
2010-04-29 09:22:01 -05:00
Glenn Randers-Pehrson
8876e74e43
[master] Remove mislocated files from projects/visualc6
2010-04-26 23:02:39 -05:00
Glenn Randers-Pehrson
510227e39e
[master] Imported from libpng-1.4.2rc04.tar
2010-04-26 22:51:30 -05:00
Glenn Randers-Pehrson
7a1f214166
[master] Set PNG_NO_READ_BGR, PNG_NO_IO_STATE, and PNG_NO_TIME_RFC1123 in
...
contrib/pngminim/decoder/pngusr.h to make a smaller decoder application.
2010-04-26 22:41:53 -05:00
Glenn Randers-Pehrson
5913dd10f1
[master] Added the "vstudio" project to replace "visualc6" and "visualc71"
...
which will be removed from libpng-1.5.0.
2010-04-26 16:28:35 -05:00
Glenn Randers-Pehrson
087ebd80da
[master] Imported from libpng-1.4.2rc03.tar
2010-04-24 13:58:16 -05:00
Glenn Randers-Pehrson
bc9267e3a6
[master] Move png_set_quantize and png_do_quantize to proper locations in docs.
2010-04-16 10:41:02 -05:00
Glenn Randers-Pehrson
a019c335c9
[master] Bump to version 1.4.2rc03
2010-04-16 10:25:20 -05:00
Glenn Randers-Pehrson
ed49c8c1b6
[master] Trivial revision of documentation.
2010-04-16 10:04:53 -05:00
Glenn Randers-Pehrson
2a243fc074
[master] Added some "(long)" typecasts to printf calls in png_handle_cHRM().
2010-04-16 09:41:27 -05:00
Glenn Randers-Pehrson
47045ce402
[master] Bump to version 1.4.2rc02
2010-04-16 07:45:21 -05:00
Glenn Randers-Pehrson
d6e67586bf
[master] Imported from libpng-1.4.2rc02.tar
2010-04-16 07:28:21 -05:00
Glenn Randers-Pehrson
6e9783bd25
[master] Updated the scripts/*.def lists to include png_set_quantize()
2010-04-16 07:26:01 -05:00
Glenn Randers-Pehrson
8dc3729522
[master] Reenabled png_set_dither() but renamed it to png_set_quantize() to
...
reflect more accurately what it actually does. At the same time, renamed
the PNG_DITHER_[RED,GREEN_BLUE]_BITS macros to
PNG_QUANTIZE_[RED,GREEN,BLUE]_BITS.
2010-04-16 07:24:52 -05:00
Glenn Randers-Pehrson
7aad4e7fb4
[master] Expanded CHANGES entry about disabling dithering support.
2010-04-13 22:31:25 -05:00
Glenn Randers-Pehrson
930af7d50b
[master] Documented the fact that png_set_dither() is no longer supported.
2010-04-13 22:08:21 -05:00
Glenn Randers-Pehrson
0f544f62d6
[master] Imported from libpng-1.4.2rc01.tar
2010-04-10 06:43:07 -05:00
Glenn Randers-Pehrson
398c212955
[master] Bump to version 1.4.2beta02
2010-04-01 07:52:00 -05:00
Glenn Randers-Pehrson
2ec1fc60c3
[master] Imported from libpng-1.4.2beta01.tar
2010-04-01 07:41:11 -05:00
Glenn Randers-Pehrson
c01ee053b1
[master] Imported from libpng-1.4.1.tar
2010-02-25 05:45:01 -06:00
Glenn Randers-Pehrson
b0baee5e36
[master] Removed unused gzio.c from contrib/pngminim gather and makefile
...
scripts. This is necessary when libz is updated to version 1.2.4.
2010-02-21 23:12:32 -06:00
Glenn Randers-Pehrson
b55295cb12
[master] Imported from libpng-1.4.1rc04.tar
2010-02-19 19:23:47 -06:00
Glenn Randers-Pehrson
5928ee97ca
[master] Define _ALL_SOURCE in configure.ac, makefile.aix, and CMakeLists.txt
...
when using the AIX compiler.
2010-02-19 19:22:08 -06:00
Glenn Randers-Pehrson
2445ad4331
[master] Imported from libpng-1.4.1rc03.tar
2010-02-19 15:09:07 -06:00
Glenn Randers-Pehrson
93d6d9d835
[master] Define _ALLSOURCE in pngconf.h when building with nonANSI AIX compiler.
...
otherwise AIX reserves "jmpbuf" and renames it to "__jmpbuf".
2010-02-19 15:02:46 -06:00
Glenn Randers-Pehrson
d207e6a6ad
[master] Removed obsolete unused MMX-querying support from contrib/gregbook
2010-02-19 07:52:06 -06:00
Glenn Randers-Pehrson
df6f3f404a
[master] Noted in scripts/makefile.mingw that it expects to be run under MSYS.
2010-02-18 23:04:25 -06:00
Glenn Randers-Pehrson
357c1c8c53
[master] Imported from libpng-1.4.1rc02.tar
2010-02-18 07:07:19 -06:00
Glenn Randers-Pehrson
44827ccad8
[master] Fixed typo in ANNOUNCE and CHANGES.
2010-02-14 07:43:22 -06:00
Glenn Randers-Pehrson
0d1a2dd7a9
[master] Bump to version 1.4.1beta13
2010-02-14 07:42:15 -06:00
Glenn Randers-Pehrson
471c9b47fe
[master] Imported from libpng-1.4.1beta12.tar
2010-02-14 07:05:57 -06:00
Glenn Randers-Pehrson
23b9a2fda0
[master] Fixed incorrect typecast of png_get_user_malloc_max() in pngget.c
2010-02-14 06:48:09 -06:00
Glenn Randers-Pehrson
7d6103ad6c
[master] Imported from libpng-1.4.1beta11.tar
2010-02-12 21:33:07 -06:00
Glenn Randers-Pehrson
ec39f8f8d7
[master] Update announcements about png_decompress_chunk().
2010-02-12 21:25:37 -06:00
Glenn Randers-Pehrson
a2cde53c87
[master]
2010-02-12 21:07:14 -06:00
Glenn Randers-Pehrson
13714e87f2
[master] Imported from libpng-1.4.1beta10.tar
2010-02-08 15:58:31 -06:00
Glenn Randers-Pehrson
9101d75316
[master] Return allocated "old_buffer" in png_push_save_buffer()
...
before calling png_error(), to avoid a potential memory leak.
2010-02-08 15:56:17 -06:00
Glenn Randers-Pehrson
233edbf415
[master] Imported from libpng-1.4.1beta09.tar
2010-02-07 23:05:33 -06:00
Glenn Randers-Pehrson
bd209f75fa
[master] Reverted to original png_push_save_buffer() code.
2010-02-07 23:02:42 -06:00
Glenn Randers-Pehrson
27854a478e
[master] Fixed incorrect test in new png_push_save_buffer() code.
2010-02-07 20:02:02 -06:00
Glenn Randers-Pehrson
f12a87a96c
[master] Imported from libpng-1.4.1beta08.tar
2010-02-06 19:48:53 -06:00
Glenn Randers-Pehrson
cb4358ddbb
[master] Revert to version 1.4.1beta07
2010-02-06 13:48:45 -06:00
Glenn Randers-Pehrson
c4819d78ba
[master] Fix scripting typo in pngwrite.c
2010-02-06 13:44:20 -06:00
Glenn Randers-Pehrson
0b721cd4c4
[master] Bump to version libpng-1.4.1beta08
2010-02-06 13:03:51 -06:00
Glenn Randers-Pehrson
b025757328
[master] Bump to version libpng-1.4.1beta07
2010-02-06 12:17:51 -06:00
Glenn Randers-Pehrson
4bd73b6947
[master] Revised png_push_save_buffer() to do fewer but larger png_mallocs
...
Eliminated use of png_ptr->irowbytes and reused the slot in png_ptr as
png_ptr->png_user_chunk_malloc_max.
2010-02-06 12:15:07 -06:00
Glenn Randers-Pehrson
f3c42680db
[master] Fixed an incorrect #ifdef in pngwrite.c
2010-02-06 10:44:22 -06:00
Glenn Randers-Pehrson
c10066205d
[master] Fixed indentation in some png.h comments.
2010-02-05 17:31:42 -06:00
Glenn Randers-Pehrson
21b7aaa428
[master] Imported from libpng-1.4.1beta07.tar
2010-02-05 16:30:38 -06:00
Glenn Randers-Pehrson
d7225fdfce
[master] Folded some long lines in png.h
...
Most of them were too long because of recent insertion of PNG_DEPSTRUCT.
2010-02-05 15:35:41 -06:00
Glenn Randers-Pehrson
deb870c77d
[master] Added defineable PNG_USER_CHUNK_CACHE_MAX and PNG_USER_CHUNK_MALLOC_MAX
2010-02-05 15:32:42 -06:00
Glenn Randers-Pehrson
c05538959b
[master] Revised documentation to mention the change in
...
the prototype for the user malloc_fn().
2010-02-02 06:47:13 -06:00
Glenn Randers-Pehrson
f6c761dda1
[master] Imported from libpng-1.4.1beta06.tar
2010-01-28 07:22:50 -06:00
Glenn Randers-Pehrson
877b08d6d2
[master] Implement two-pass png_decompress_chunk() function
...
suggested by John Bowler. Does not waste memory, does only one malloc()
to the measured decompressed size.
2010-01-28 07:16:15 -06:00
Glenn Randers-Pehrson
a69064328b
[master] Undo recent pngtest changes
...
The problem was with a buggy compiler (gcc-4.0.1) not a libpng problem
and not worth attempting to work around.
2010-01-27 07:05:02 -06:00
Glenn Randers-Pehrson
01b9566e50
[master] Use int copies instead of longs in pngtest.c
...
to try to appease the Mac compiler
2010-01-26 23:27:21 -06:00
Glenn Randers-Pehrson
ca3a100be6
[master] Revised pngtest.c for the sake of an optimizing compiler
2010-01-26 22:45:58 -06:00
Glenn Randers-Pehrson
1655e4ddb0
[master] Imported from libpng-1.4.1beta05.tar
2010-01-26 06:56:04 -06:00
Glenn Randers-Pehrson
526f839764
[master] Relocated "int k" declaration in pngtest.c
...
to work around a compiler optimization bug.
2010-01-26 06:51:00 -06:00
Glenn Randers-Pehrson
1a86bd2a09
[master] Revised png_decompress_chunk() to improve speed and memory
...
usage when decoding large chunks.
2010-01-22 22:50:46 -06:00
Glenn Randers-Pehrson
610e7b5bd6
[master] Added png_set|get_chunk_malloc_max() functions.
2010-01-22 19:48:40 -06:00
Glenn Randers-Pehrson
86f6c04d84
[master] Imported from libpng-1.4.1beta04.tar
2010-01-22 19:34:44 -06:00
Glenn Randers-Pehrson
fb3a1da4bb
[master] Bump to version 1.4.1beta04
2010-01-22 19:29:47 -06:00
Glenn Randers-Pehrson
525efcbb7b
[master] Imported from libpng-1.4.1rc01.tar
2010-01-16 08:05:12 -06:00
Glenn Randers-Pehrson
ea4340e1ec
[master] Imported from libpng-1.4.1beta03.tar
2010-01-10 16:53:46 -06:00
Glenn Randers-Pehrson
91f3864fbd
[master] Removed png_set_premultiply_alpha() from scripts/*.def
...
Implementation of this function was postponed.
2010-01-10 16:51:01 -06:00
Glenn Randers-Pehrson
14fa704caf
[master] Imported from libpng-1.4.1beta02.tar
2010-01-09 13:13:30 -06:00
Glenn Randers-Pehrson
ad1f8180a5
[master] Updated makefiles to link to libpng14.so.14.1
2010-01-07 23:28:16 -06:00
Glenn Randers-Pehrson
e364f899af
[master] Imported from libpng-1.4.1beta01.tar
2010-01-07 22:39:45 -06:00
Glenn Randers-Pehrson
40683870ea
[master] Update PNG_LIBPNG_VER_NUM to 1.4.1
2010-01-07 22:27:30 -06:00
Glenn Randers-Pehrson
7569d7c069
[master] Updated documentation about png_set_compression_buffer_size().
2010-01-07 11:37:53 -06:00
Glenn Randers-Pehrson
c87ddbb3ce
[master] Make png_set|get_compression_buffer_size() available even
...
when PNG_WRITE_SUPPORTED is not enabled. There was no good reason
for this restriction, and PNG readers can gain a speed benefit in
reading large iCCP chunks by increasing png_ptr->zbuf_size via
these functions.
2010-01-07 11:10:16 -06:00
Glenn Randers-Pehrson
793fedcf57
[master] Revise makefile.linux to build libpng.so.14.1
2010-01-07 11:00:07 -06:00
Glenn Randers-Pehrson
74fd86a69e
[master] Updated copyright year in revised makefiles.
2010-01-07 08:19:31 -06:00
Glenn Randers-Pehrson
f234091207
[master] Restored "; \" that was lost from makefiles in the previous change
2010-01-07 08:14:16 -06:00
Glenn Randers-Pehrson
772b72139a
[master] Revised the makefiles to install the same files and symbolic
...
links as configure, except for libpng.la and libpng14.la.
2010-01-06 23:11:53 -06:00
Glenn Randers-Pehrson
6e6a844baf
[master] Revise scripts/makefile.linux to not make libpng.so.NN
2010-01-06 22:30:32 -06:00
Glenn Randers-Pehrson
2f2f80273b
[master] Undid recent change to the Makefiles.
...
People don't need libpng.so.NN
2010-01-06 17:39:57 -06:00
Glenn Randers-Pehrson
353d8860ac
[master] Revised scripts/makefile.linux to make the same files as configure,
...
except for libpng.la and libpng14.la. Many other scripts to be fixed soon.
2010-01-06 14:45:03 -06:00
Glenn Randers-Pehrson
fab96cb72a
[master] Revised Makefile.am and Makefile.in to make libpng.so.14,
...
libpng.sl.14, and libpng.14.dylib links in the installed library directory.
2010-01-06 14:16:49 -06:00
Glenn Randers-Pehrson
2203e41900
[master] Revised Makefile.am and Makefile.in to remove references to Y2KINFO,
...
KNOWNBUG, and libpng.la (Robert Schwebel).
2010-01-04 06:26:41 -06:00
Glenn Randers-Pehrson
e16f2bc5f7
[master] Updated CMakeLists.txt for consistent indentation and to avoid an
...
unclosed if-statement warning (Philip Lowman).
2010-01-04 06:25:28 -06:00
Glenn Randers-Pehrson
2381cf3269
[master] Bump to version 1.4.1beta01
2010-01-03 17:02:38 -06:00
Glenn Randers-Pehrson
7e3a82cd9c
[master] Imported from libpng-1.4.0.tar
2010-01-02 23:15:33 -06:00
Glenn Randers-Pehrson
115817d118
[master] Imported from libpng-1.2.42.tar
2010-01-02 23:15:22 -06:00
Glenn Randers-Pehrson
5cfea4fc98
[master] Imported from libpng-1.2.42rc05.tar
2010-01-01 18:29:51 -06:00
Glenn Randers-Pehrson
a87c870f99
[master] Avoid deprecated references to png_ptr-io_ptr and png_ptr->error_ptr
...
in pngtest.c
2010-01-01 18:28:50 -06:00
Glenn Randers-Pehrson
b9d671326b
[master] Imported from libpng-1.2.42rc04.tar
2010-01-01 10:50:04 -06:00
Glenn Randers-Pehrson
8e4e070151
[master] Updated copyright year to 2010 and made some trivial cosmetic changes
2010-01-01 10:48:33 -06:00
Glenn Randers-Pehrson
4607e1386f
[master] Imported from libpng-1.2.42rc03.tar
2009-12-25 14:23:21 -06:00
Glenn Randers-Pehrson
9686172872
[master] Swapped PNG_UNKNOWN_CHUNKS_SUPPORTED and PNG_HANDLE_AS_UNKNOWN_SUPPORTED
...
in pngset.c to be consistent with other changes in version 1.2.38.
2009-12-25 14:22:08 -06:00
Glenn Randers-Pehrson
8563ac1664
[master] Bump to version 1.2.42rc03
2009-12-25 14:20:39 -06:00
Glenn Randers-Pehrson
9a80a35f4b
[master] Imported from libpng-1.2.42rc02.tar
2009-12-23 07:43:15 -06:00
Glenn Randers-Pehrson
4cde19b0c9
[master] Renamed libpng-pc.in back to libpng.pc.in and revised CMakeLists.txt
...
(revising changes made in 1.2.41beta17 and 1.2.41rc01)
2009-12-22 08:09:39 -06:00
Glenn Randers-Pehrson
230e8b436f
[master] Bump to version libpng-1.2.42rc02
2009-12-22 08:07:11 -06:00
Glenn Randers-Pehrson
dbb86efac3
[master] Imported from libpng-1.2.42rc01.tar
2009-12-17 05:53:39 -06:00
Glenn Randers-Pehrson
e8d28e1b1c
[master] Bump to version 1.2.42rc01
2009-12-13 07:37:24 -06:00
Glenn Randers-Pehrson
a3a5d0d1f4
[master] Imported from libpng-1.2.42beta02.tar
2009-12-11 17:58:22 -06:00
Glenn Randers-Pehrson
4cf1ca4338
[master] Relocated png_do_chop() to its original position in pngrtran.c
...
The change in version 1.2.41beta08 caused transparency to be handled wrong
in some 16-bit datastreams (Yusaku Sugai).
2009-12-11 07:29:18 -06:00
Glenn Randers-Pehrson
f174f27096
[master] Removed leftover "-DPNG_CONFIGURE_LIBPNG"
...
from contrib/pngminim/*/makefile
2009-12-11 07:26:31 -06:00
Glenn Randers-Pehrson
1a15762c59
[master] Bump to version 1.2.42beta02
2009-12-11 07:21:54 -06:00
Glenn Randers-Pehrson
fec6a4ca4e
[master] Removed leftover "-DPNG_CONFIGURE_LIBPNG" from scripts/makefile.darwin
2009-12-04 08:26:21 -06:00
Glenn Randers-Pehrson
bcc878bb81
[master] Imported from libpng-1.2.42beta01.tar
2009-12-04 07:16:38 -06:00
Glenn Randers-Pehrson
df61a00acc
[master] Revised scripts/makefile.netbsd, makefile.openbsd, and makefile.sco
...
to put png.h and pngconf.h in $prefix/include, like the other scripts,
instead of in $prefix/include/libpng.
2009-12-04 06:54:36 -06:00
Glenn Randers-Pehrson
878fea5403
[master] Removed "#define PNG_NO_ERROR_NUMBERS" that was inadvertently added
...
to pngconf.h in version 1.2.41.
2009-12-04 06:03:57 -06:00
Glenn Randers-Pehrson
804cc98cd1
[master] Bump to version 1.2.42beta01
2009-12-04 06:03:15 -06:00
Glenn Randers-Pehrson
6e00020a9f
[master] Imported from libpng-1.2.41.tar
2009-12-02 19:48:27 -06:00
Glenn Randers-Pehrson
2aac9a1fa3
[master] Brought README up to date.
2009-11-27 15:48:31 -06:00
Glenn Randers-Pehrson
5aa8676122
[master] Bump to version 1.2.41rc04
2009-11-27 15:47:49 -06:00
Glenn Randers-Pehrson
ea88d94dcf
[master] Imported from libpng-1.2.41rc03.tar
2009-11-25 16:00:51 -06:00
Glenn Randers-Pehrson
eaa1b0a5f2
[master] Removed test for PNG_CONFIGURE_LIBPNG from pngconf.h
2009-11-25 09:27:48 -06:00
Glenn Randers-Pehrson
de5c932283
[master] Disabled the new pedantic warnings
...
about deprecated function use and deprecated structure access unless the
user defines PNG_PEDANTIC_WARNINGS. Added "#define PNG_NO_PEDANTIC_WARNINGS"
in the libpng source files. Removed "-DPNG_CONFIGURE_LIBPNG" from the
makefiles and projects since the warnings no longer depend on this.
2009-11-25 08:51:04 -06:00
Glenn Randers-Pehrson
3b673e0fb0
[master] Bump to version libpng-1.2.41rc03
2009-11-25 08:42:36 -06:00
Glenn Randers-Pehrson
83b84d65c2
[master] Removed some trailing blanks
...
in Makefile.ac and Makefile.in
2009-11-22 11:37:19 -06:00
Glenn Randers-Pehrson
c31e04e2f8
[master] Rebuilt the configure scripts with autoconf-2.65
2009-11-22 08:55:10 -06:00
Glenn Randers-Pehrson
a460e00574
[master] Bump to version 1.2.41rc02
2009-11-22 08:31:00 -06:00
Glenn Randers-Pehrson
c593d488f9
[master] Imported from libpng-1.2.41rc01.tar
2009-11-18 09:58:36 -06:00
Glenn Randers-Pehrson
44a7c89e02
[master] Moved descriptions of makefiles and other scripts out of INSTALL
...
into scripts/README.txt
and updated the copyright year in scripts/pngw32.rc from 2004 to 2009.
2009-11-15 08:31:00 -06:00
Glenn Randers-Pehrson
88bbbfa567
[master] Bump to version 1.2.41rc01
2009-11-14 07:41:19 -06:00
Glenn Randers-Pehrson
e3f9ce59eb
[master] Bump to version 1.2.41beta20
2009-11-12 20:24:32 -06:00
Glenn Randers-Pehrson
12f0c2f580
[master] Imported from libpng-1.2.41beta19.tar
2009-11-12 20:11:04 -06:00
Glenn Randers-Pehrson
6099e57b07
[master] Restore pngtest.png, CHANGES, and ANNOUNCE to 1.2.41beta19 version.
2009-11-12 12:20:41 -06:00
Glenn Randers-Pehrson
e53ecd35c0
[master] Restored pngtest.png to the libpng-1.4.0beta7 version.
2009-11-12 12:16:23 -06:00
Glenn Randers-Pehrson
8397b45b20
[master] Removed reference to some non-exported functions from scripts/*.def
...
These functions won't be exported until libpng-1.4.0
2009-11-12 11:31:09 -06:00
Glenn Randers-Pehrson
bcb1b414ed
[master] Fixed up some line-wrapping in the documentation.
2009-11-12 11:30:03 -06:00
Glenn Randers-Pehrson
bef02a89ea
[master] Bump to version 1.2.41beta19
2009-11-11 15:09:22 -06:00
Glenn Randers-Pehrson
1aae1bf9fd
[master] Updated CHANGES and ANNOUNCE about PNG_PRIVATE macro.
2009-11-11 15:03:20 -06:00
Glenn Randers-Pehrson
078f2aecfb
[master] Imported from libpng-1.2.41beta18.tar
2009-11-11 14:26:32 -06:00
Glenn Randers-Pehrson
c87f913eb9
[master] Marked "internally exported" functions with PNG_PRIVATE.
2009-11-11 14:24:27 -06:00
Glenn Randers-Pehrson
a5fc3eb9d4
[master] Bump to version libpng-1.2.41beta18
2009-11-11 14:21:39 -06:00
Glenn Randers-Pehrson
780dc06584
[master] Renamed scripts/makefile.wce to scripts/makefile.cegcc
2009-11-10 09:30:18 -06:00
Glenn Randers-Pehrson
365cddf35f
[master] Bump to version libpng-1.2.41rc01
2009-11-10 09:25:53 -06:00
Glenn Randers-Pehrson
c099ea497a
[master] Imported from libpng-1.2.41beta17.tar
2009-11-10 06:11:31 -06:00
Glenn Randers-Pehrson
336b43d278
[master] Moved "rm pnggccrd.c pnggvrd.c" to a separate line
...
in contrib/pngminim/*/gather.sh
2009-11-09 13:42:16 -06:00
Glenn Randers-Pehrson
08e585d948
[master] Added "-DPNG_CONFIGURE_LIBPNG" to the contrib/pngminum makefiles.
2009-11-09 11:20:01 -06:00
Glenn Randers-Pehrson
7aacd895ee
[master] Fixed deprecated usages in contrib directory.
2009-11-09 10:47:12 -06:00
Glenn Randers-Pehrson
3130af0e2b
[master] Fixed a typo in a comment in CMakeLists.txt
2009-11-09 08:31:05 -06:00
Glenn Randers-Pehrson
02a58af3c0
[master] Marked memory allocation function prototypes with PNG_ALLOCATED.
2009-11-09 08:25:36 -06:00
Glenn Randers-Pehrson
86645a3f19
[master] Marked deprecated function prototypes with PNG_DEPRECATED.
2009-11-09 08:10:22 -06:00
Glenn Randers-Pehrson
edc3994cfd
[master] In CMakeLists.txt, add "-DPNG_CONFIGURE_LIBPNG" to the definitions.
2009-11-09 07:18:26 -06:00
Glenn Randers-Pehrson
71f29b701d
[master] Bump to version 1.2.41beta17
2009-11-09 06:50:36 -06:00
Glenn Randers-Pehrson
b4b853b4c5
[master] Imported from libpng-1.2.41beta16.tar
2009-11-09 06:50:25 -06:00
Glenn Randers-Pehrson
d5483f3352
[master] Make PNG_DEPSTRUCT, etc., configurable.
...
Only #define PNG_DEPSTRUCT, etc. in pngconf.h if not already defined.
2009-11-08 20:37:37 -06:00
Glenn Randers-Pehrson
2522de8594
[master] Restore new pngtest.c
2009-11-08 20:07:41 -06:00
Glenn Randers-Pehrson
e5e60564cf
[master] Bump to version 1.2.41beta16
2009-11-08 20:06:21 -06:00
Glenn Randers-Pehrson
bf2dabe6f1
[master] Removed three direct references to read_info_ptr members
...
in pngtest.c that were detected by the new PNG_DEPSTRUCT macro.
2009-11-08 20:01:55 -06:00
Glenn Randers-Pehrson
70c873bcac
[master] Remove some extra text from CHANGES
2009-11-08 19:55:14 -06:00
Glenn Randers-Pehrson
5aabf5b8eb
[master] Imported from libpng-1.2.41beta15.tar
2009-11-08 19:31:21 -06:00
Glenn Randers-Pehrson
20e82ae2a2
[master] Added deprectated-use reporting
...
ported from libpng-1.4.0
2009-11-08 19:18:45 -06:00
Glenn Randers-Pehrson
e890cb118c
[master] Bump to version bump-to-1.2.41beta15.tar
2009-11-08 17:05:27 -06:00
Glenn Randers-Pehrson
275d1aa94e
[master] Imported from libpng-1.2.41beta14.tar
2009-11-08 17:05:18 -06:00
Glenn Randers-Pehrson
f748fda0ed
[master] Reverted iTXt compatibility stuff
...
from 1.2.41beta05, 1.2.41beta11, and 1.2.41beta12.
2009-11-08 16:51:11 -06:00
Glenn Randers-Pehrson
87480bf6d4
[master] Removed reference to png_calloc from scripts/*.def
2009-11-08 15:15:37 -06:00
Glenn Randers-Pehrson
bd6f1edea8
[master] Update png.h and pngconf.h to revert iTXt support.
2009-11-08 15:14:32 -06:00
Glenn Randers-Pehrson
ed4c9fc4e9
[master] Remove mention of empty pngpriv.h in CHANGES
2009-11-03 19:18:56 -06:00
Glenn Randers-Pehrson
8f8be84024
[master] Removed the empty pngpriv.h
...
due to popular demand.
2009-11-03 19:13:59 -06:00
Glenn Randers-Pehrson
ead562ed05
[master] Make PNG_CONVERT_tIME_SUPPORTED depend on PNG_WRITE_tIME_SUPPORTED
2009-11-03 12:28:14 -06:00
Glenn Randers-Pehrson
8cf8726c7c
[master] Make #define PNG_CONVERT_tIME_SUPPORTED depend on PNG_tIME_SUPPORTED
2009-11-03 11:42:47 -06:00
Glenn Randers-Pehrson
b83df4e711
[master] Added empty pngpriv.h file
...
as an aid to migration to 1.4.x
2009-11-03 10:10:20 -06:00
Glenn Randers-Pehrson
7e64470a71
[master] Bump version to libpng-1.2.41beta14
2009-11-03 07:05:11 -06:00
Glenn Randers-Pehrson
fd3d717df5
[master] Imported from libpng-1.2.41beta13.tar
2009-11-03 06:53:07 -06:00
Glenn Randers-Pehrson
d4ebb803fa
[master] Added scripts/makefile.wce and scripts/png32ce.def
...
to support WindowsCE.
2009-11-02 21:03:14 -06:00
Glenn Randers-Pehrson
5d276731e6
[master] Use the new PNG_CONVERT_tIME_SUPPORTED macro in pngwrite.c.
2009-11-02 11:35:26 -06:00
Glenn Randers-Pehrson
6dcfbc479d
[master] Added PNG_CONVERT_tIME_SUPPORTED macro.
2009-11-02 11:26:10 -06:00
Glenn Randers-Pehrson
d8bf20d9ac
[master] Updated scripts/pngw32.def and added CE support to ltmain.sh
2009-11-02 09:19:11 -06:00
Glenn Randers-Pehrson
38453101f0
[master] Bump version to 1.2.41beta13
2009-11-02 06:26:40 -06:00
Glenn Randers-Pehrson
8e46375186
[master] Free png_ptr->user_png_ver when destroying png_ptr.
2009-11-02 06:04:47 -06:00
Glenn Randers-Pehrson
c75d7fb32e
[master] Bump version to 1.2.41beta12
2009-11-02 05:54:39 -06:00
Glenn Randers-Pehrson
6e0cf087ad
[master] Imported from libpng-1.2.41beta11.tar
2009-11-01 21:46:17 -06:00
Glenn Randers-Pehrson
af9a41d770
[master] Store user's user_png_ver in new png_ptr->user_png_ver element.
...
Revised iTXt support. To ensure binary compatibility with
previous versions, the "lang" and "lang_key" members will be assumed
to be omitted from versions prior to 1.2.41beta11 whenever there is a
library mismatch.
2009-11-01 21:22:01 -06:00
Glenn Randers-Pehrson
d6dc43db7d
[master] Removed some dead code from pngconf.h
...
(inside an #if 0/#endif block)
2009-11-01 16:41:09 -06:00
Glenn Randers-Pehrson
4c49647788
[master] Revise pngconf.h (iTXt handling)
...
and avoid reference to time.h "tm" structure in png.h and pngwrite.c
2009-11-01 16:32:57 -06:00
Glenn Randers-Pehrson
3de7bde0e1
[master] Revised iTXt support and documentation
2009-11-01 08:47:04 -06:00
Glenn Randers-Pehrson
dc38e24fed
[master] Bump version to 1.2.41beta11
2009-10-31 23:29:58 -05:00
Glenn Randers-Pehrson
a61724c004
[master] Imported from libpng-1.2.41beta10.tar
2009-10-31 23:24:15 -05:00
Glenn Randers-Pehrson
29b738b4e6
[master] Enabled iTXt support by default.
...
To ensure binary compatibility with
previous versions, the "lang" and "lang_key" members will be assumed
to be omitted from previous versions unless the current libpng
version was built with PNG_iTXt_SUPPORTED (which is otherwise no
longer necessary to gain iTXt support), as a signal that the user has
been building previous versions with PNG_iTXt_SUPPORTED as well.
2009-10-31 23:20:11 -05:00
Glenn Randers-Pehrson
602d314ba0
[master] Bump version to libpng-1.2.41beta10
2009-10-31 21:43:03 -05:00
Glenn Randers-Pehrson
a68974409c
[master] Imported from libpng-1.2.41beta09.tar
2009-10-31 21:42:50 -05:00
Glenn Randers-Pehrson
5d67107c79
[master] Fix typo in pngconf.h
2009-10-31 21:32:42 -05:00
Glenn Randers-Pehrson
da9b591621
[master] Updated documentation
...
Merged libpng-1.2.41.txt with libpng-1.4.0.txt where appropriate.
2009-10-31 19:21:30 -05:00
Glenn Randers-Pehrson
2e8aa25844
[master] Apply png_user_chunk_cache_max within png_decompress_chunk().
2009-10-31 19:20:20 -05:00
Glenn Randers-Pehrson
6611322a8b
[master] Moved CMakeLists.txt from scripts
...
into the main libpng directory. More bugfixes and improvements to
CMakeLists.txt (Philip Lowman)
2009-10-31 12:50:05 -05:00
Glenn Randers-Pehrson
948c6ee88d
[master] Removed a harmless extra png_set_invert_alpha()
...
from pngwrite.c
2009-10-31 12:28:23 -05:00
Glenn Randers-Pehrson
b7a9d80f28
[master] Bump version to libpng-1.2.41beta09
2009-10-30 06:54:53 -05:00
Glenn Randers-Pehrson
277f6fbe49
[master] Revert version to 1.2.41beta08
2009-10-30 06:14:45 -05:00
Glenn Randers-Pehrson
e05080f5a8
[master] Added png_get_user_cache_max()
...
and png_set_user_cache_max() from libpng-1.4.0rc01.
2009-10-30 05:49:16 -05:00
Glenn Randers-Pehrson
4de250dd75
[master] Put new png_struct members at the end.
2009-10-30 05:41:34 -05:00
Glenn Randers-Pehrson
8f2f7f431c
[master] Bump version to 1.2.41beta09
2009-10-30 00:10:54 -05:00
Glenn Randers-Pehrson
4f67b78853
[master] Imported from libpng-1.2.41beta08.tar
2009-10-29 23:54:16 -05:00
Glenn Randers-Pehrson
4b14b35208
[master] Ported functions from libpng-1.4.0rc01:
...
png_calloc(), png_get_io_state(),
png_get_io_chunk_name(), png_set_premultiply_alpha, and
png_do_read_premultiply_alpha().
2009-10-29 23:47:05 -05:00
Glenn Randers-Pehrson
bc2ab12f99
[master] Bump version to 1.2.41beta08
2009-10-29 23:41:29 -05:00
Glenn Randers-Pehrson
c3166b2a48
[master] Imported from libpng-1.2.41beta07.tar
2009-10-21 10:42:32 -05:00
Glenn Randers-Pehrson
1eef1e5b2f
[master} Ported some cosmetic changes from libpng-1.4.0rc01
...
changing "#if defined(x)" to "#ifdef x" in png.h and pngconf.h.
2009-10-21 10:32:04 -05:00
Glenn Randers-Pehrson
8191965555
[master] Fixed "DATE" comment in pngrtran.c
2009-10-19 06:39:35 -05:00
Glenn Randers-Pehrson
f1c9244dfd
[master] Bump version to 1.2.41beta07
2009-10-18 14:38:38 -05:00
Glenn Randers-Pehrson
58155a9921
[master] Imported from libpng-1.2.41beta06.tar
2009-10-18 14:36:31 -05:00
Glenn Randers-Pehrson
5d398a69fb
[master] Converted all PNG_NO_* tests to PNG_*_SUPPORTED
...
everywhere except pngconf.h as in libpng-1.4.0beta78 and later.
2009-10-18 14:30:53 -05:00
Glenn Randers-Pehrson
4560de58f4
[master] Update CHANGES and ANNOUNCE
2009-10-18 08:07:48 -05:00
Glenn Randers-Pehrson
7f9f605781
[master] Restored PNG_USE_LOCAL_ARRAYS block of pngread.c
...
that was inadvertently deleted by the previous checkin.
2009-10-18 08:03:07 -05:00
Glenn Randers-Pehrson
41cad5fbed
[master] Bump version to 1.2.41beta06
2009-10-17 19:20:53 -05:00
Glenn Randers-Pehrson
e4f15b0f0e
[master] Ported cosmetic changes to pngread.c
...
from libpng-1.4.0beta87.
2009-10-17 19:02:45 -05:00
Glenn Randers-Pehrson
d4e3ef6eae
[master] Ported cosmetic changes to pngwrite.c
...
from libpng-1.4.0beta87.
2009-10-17 18:30:44 -05:00
Glenn Randers-Pehrson
eda90ace80
[master] Port cosmetic changes in png.c
...
from libpng-1.4.0beta87
2009-10-13 20:12:37 -05:00
Glenn Randers-Pehrson
0c127348e1
[master] Ported cosmetic changes in pngrtran.c
...
from libpng-1.4.0beta87
2009-10-13 18:31:01 -05:00
Glenn Randers-Pehrson
eb6b59af64
[master] Fixed some indentation in pngrtran.c
2009-10-13 18:29:46 -05:00
Glenn Randers-Pehrson
11066e33f8
[master] Port cosmetic changes in pngrutil.c
...
from libpng-1.4.0beta87
2009-10-13 09:09:11 -05:00
Glenn Randers-Pehrson
51a32d64d8
[master] Ported cosmetic changes in pngpread.c and pngrtran.c
...
from libpng-1.4.0beta87.
2009-10-12 13:41:14 -05:00
Glenn Randers-Pehrson
77a9f59487
[master] Ported some cosmetic changes from libpng-1.4.0beta87/pngrutil.c,
...
changing many "#if defined(x)" to "#ifdef x".
2009-10-11 08:26:03 -05:00
Glenn Randers-Pehrson
1814c4e45b
[master] Imported from libpng-1.2.41beta05.tar
2009-10-11 07:49:17 -05:00
Glenn Randers-Pehrson
722f5fd8d4
[master] Ported some cosmetic changes from libpng-1.4.0beta87
...
changing many "#if defined(x)" to "#ifdef x" in pngtest.c and pngwutil.c.
2009-10-10 09:27:12 -05:00
Glenn Randers-Pehrson
e9c8dcf96c
[master] Revised pngconf.h to make it easier to enable iTXt support
...
by defining PNG_iTXT_SUPPORTED
2009-10-10 08:13:01 -05:00
Glenn Randers-Pehrson
89e0d95883
[master] Bump version to 1.2.41beta05
2009-10-10 06:29:47 -05:00
Glenn Randers-Pehrson
aeb9906717
[master] Imported from libpng-1.2.41beta04.tar
2009-10-10 06:29:36 -05:00
Glenn Randers-Pehrson
368971ec8b
[master] Eliminated a shadowed declaration
...
of "pp" in png_handle_sPLT().
2009-10-07 12:48:44 -05:00
Glenn Randers-Pehrson
0112826daf
[master] Change xcode project library name
...
from libpng.0.dylib to libpng.3.dylib to be consistent with makefile.darwin.
2009-10-05 14:56:46 -05:00
Glenn Randers-Pehrson
9023e8f7bb
[master] Ported some cosmetic changes from the devel branch
2009-10-05 13:53:19 -05:00
Glenn Randers-Pehrson
48fac4e8ce
[master] Added projects/xcode/libpng.xcodeproj/.gitignore
2009-10-04 16:01:53 -05:00
Glenn Randers-Pehrson
edeccce619
[master] Added "xcode" project
...
similar one already in libpng-1.4.0beta (Alam Arias).
2009-10-02 14:12:54 -05:00
Glenn Randers-Pehrson
60668aa210
[master] Bump version to 1.2.4beta04
2009-10-02 09:41:34 -05:00
Glenn Randers-Pehrson
455e8a4281
[master] Imported from libpng-1.2.41beta03.tar
2009-09-30 23:14:24 -05:00
Glenn Randers-Pehrson
5d7fe7a718
[master] Revised png_check_IHDR() again
...
to check info_ptr members instead of the contents of the returned parameters.
2009-09-30 23:10:28 -05:00
Glenn Randers-Pehrson
64ca95e375
[master] Bump version to 1.2.41beta03
2009-09-30 16:03:06 -05:00
Glenn Randers-Pehrson
837eecbc91
[master] Revised png_check_IHDR()
...
to avoid bogus complaints about filter method.
2009-09-30 14:45:33 -05:00
Glenn Randers-Pehrson
26cc10a00c
[master] Reverted recent test in png_get_IHDR().
2009-09-30 14:35:05 -05:00
Glenn Randers-Pehrson
f12abe957d
[master] Revised png_check_IHDR()
2009-09-30 14:29:00 -05:00
Glenn Randers-Pehrson
caaf688582
[master] Imported from libpng-1.2.41beta02.tar
2009-09-30 13:40:53 -05:00
Glenn Randers-Pehrson
3dfd0cd62a
[master] Add a test to make sure the user isn't trying to stuff height into
...
a 16-bit int (assuming height immediately follows width).
2009-09-30 13:38:37 -05:00
Glenn Randers-Pehrson
18bd86f154
[master] Revise documentation to mention not using TAB character
2009-09-25 14:21:52 -05:00
Glenn Randers-Pehrson
338f465019
[master] Expand TAB characters in pngrtran.c
2009-09-25 14:11:33 -05:00
Glenn Randers-Pehrson
ac13f5e6f9
[master] Imported from libpng-1.2.41beta01.tar
2009-09-25 12:07:58 -05:00
Glenn Randers-Pehrson
1b6f6d80ea
[master] Imported from libpng-1.2.40.tar
2009-09-10 09:01:41 -05:00
Glenn Randers-Pehrson
18b078414a
[master] Imported from libpng-1.2.40rc01.tar
2009-09-02 07:09:11 -05:00
Glenn Randers-Pehrson
f6ce318061
[master] CMakeLists.txt updated with bugfixes and improvements
2009-08-28 07:06:45 -05:00
Glenn Randers-Pehrson
a21c94e3dc
[master] Bump version to libpng-1.2.40beta02
2009-08-22 09:26:42 -05:00
Glenn Randers-Pehrson
38b92d56e7
[master] Imported from libpng-1.2.40beta01.tar
2009-08-20 17:39:42 -05:00
Glenn Randers-Pehrson
a08d95b971
[master] Fixed incorrect #ifdef in pngset.c
...
PNG_UNKNOWN_CHUNKS_SUPPORTED should be PNG_HANDLE_AS_UNKNOWN_SUPPORTED
2009-08-20 16:13:58 -05:00
Glenn Randers-Pehrson
339416b38b
[master] Trivial cosmetic changes in comments
2009-08-19 08:42:06 -05:00
Glenn Randers-Pehrson
7e2f07486a
[master] Remove an extra png_debug() statement
...
that was recently added to png_write_find_filter() in pngwutil.c
2009-08-13 17:54:20 -05:00
Glenn Randers-Pehrson
a3e569cdda
[master] Bump libpng.3 and ANNOUNCE to version 1.2.40beta01
2009-08-13 17:52:49 -05:00
Glenn Randers-Pehrson
d68d8d82e6
[master] Bump version to libpng-1.2.40beta01
2009-08-13 17:41:35 -05:00
Glenn Randers-Pehrson
997b4a544d
[master] Update ANNOUNCE to mention .tar.xz instead of .tgz
2009-08-13 06:15:22 -05:00
Glenn Randers-Pehrson
176d2b622e
[master] Imported from libpng-1.2.39.tar
2009-08-13 05:51:34 -05:00
Glenn Randers-Pehrson
3a9ab23713
[master] Imported from libpng-1.2.39rc01.tar
2009-08-05 21:26:48 -05:00
Glenn Randers-Pehrson
9e88fcd58c
[master] Imported from libpng-1.2.39beta05.tar
2009-08-01 08:57:10 -05:00
Glenn Randers-Pehrson
39ffc1c3c7
[master] Imported from libpng-1.2.39beta04.tar
2009-08-01 08:57:08 -05:00
Glenn Randers-Pehrson
69d0e44295
[master] Imported from libpng-1.2.39beta03.tar
2009-07-29 05:50:25 -05:00
Glenn Randers-Pehrson
d2d5e540ac
[master] Update configure scripts to autoconf-2.64
2009-07-28 16:51:57 -05:00
Glenn Randers-Pehrson
d7bd2d2b2c
[master] Relocated prototype for png_64bit_product()
...
into png.h and revised the documenatation (in the libpng style section) about
placement of prototypes.
2009-07-28 08:18:31 -05:00
Glenn Randers-Pehrson
ddf5fc8a42
[master] Bump version to libpng-1.2.39beta03
2009-07-28 08:05:11 -05:00
Glenn Randers-Pehrson
0841c63e0d
[master] Imported from libpng-1.2.39beta02.tar
2009-07-27 22:31:10 -05:00
Glenn Randers-Pehrson
a4d439b975
[master] Avoid a possible NULL dereference in debug build,
...
in png_set_text_2() (bug introduced in libpng-0.95, discovered by Evan Rouault)
2009-07-27 22:27:30 -05:00
Glenn Randers-Pehrson
8de509a837
[master] Bump version to libpng-1.2.39beta02
2009-07-27 22:26:15 -05:00
Glenn Randers-Pehrson
219760639a
[master] Imported from libpng-1.2.39beta01.tar
2009-07-25 09:27:58 -05:00
Glenn Randers-Pehrson
38ed8795ab
[master] Added a prototype for png_16bit_product()
...
(suggested by Peter Breitenlohner)
2009-07-23 13:18:55 -05:00
Glenn Randers-Pehrson
55697d7dc9
[master] Update some dates.
2009-07-23 13:17:27 -05:00
Glenn Randers-Pehrson
a7fb782aea
[master] Bump version to libpng-1.2.39beta01
2009-07-23 13:01:03 -05:00
Glenn Randers-Pehrson
d91c64e428
[master] Imported from libpng-1.2.38.tar
2009-07-16 06:01:45 -05:00
Glenn Randers-Pehrson
4aa911abc6
[master] Imported from libpng-1.2.38rc03.tar
2009-07-11 09:16:28 -05:00
Glenn Randers-Pehrson glennrp@comcast.net
64c72bb919
[master] Updated configuration scripts to autoconf-2.63
...
from autoconf-2.62
2009-07-11 09:07:35 -05:00
Glenn Randers-Pehrson glennrp@comcast.net
fec191d3cc
[master] Revised references to libpng license in contrib/visupng
...
to be consistent with the rest of the source files.
2009-07-11 07:13:56 -05:00
Glenn Randers-Pehrson
7430bcbc44
[master] Add a reference to the "libpng license" in each source file.
2009-06-28 21:38:35 -05:00
Glenn Randers-Pehrson
eba11d2ba5
[master] Imported from libpng-1.2.38rc02.tar
2009-06-28 20:28:53 -05:00
Glenn Randers-Pehrson
a3a724f805
[master] Imported from libpng-1.2.38rc01.tar
2009-06-24 06:59:36 -05:00
Glenn Randers-Pehrson
a770d71890
[master] Bump version to bump-to-libpng-1.2.38beta02
2009-06-18 16:53:56 -05:00
Glenn Randers-Pehrson
1de866cd09
[master] Imported from libpng-1.2.38beta01.tar
2009-06-17 07:46:44 -05:00
Glenn Randers-Pehrson
54380f53a2
[master] Fixed some indentation in pngset.c
2009-06-16 17:53:00 -05:00
Glenn Randers-Pehrson
7d870524d3
[master] Changed PNG_HANDLE_AS_UNKNOWN to PNG_UNKNOWN_CHUNKS_SUPPORTED
...
in pngset.c
2009-06-16 17:28:01 -05:00
Glenn Randers-Pehrson
d28aad9a58
[master] Added an "#ifdef PNG_WRITE_SUPPORTED/#endif" block in pngconf.h
2009-06-16 17:27:14 -05:00
Glenn Randers-Pehrson
8be63adbc8
[master] Relocated various UNKNOWN_CHUNK macro definitions
...
outside of the PNG_READ|WRITE_ANCILLARY_CHUNK_SUPPORTED macros and
updated CHANGES and ANNOUNCE. The definitions were actually relocated
in the previous commit but I forgot to mention it.
2009-06-16 16:13:42 -05:00
Glenn Randers-Pehrson
7d8f352e0a
Added a PNG_NO_HANDLE_AS_UNKNOWN inside the LEGACY block of pngconf.h
2009-06-16 13:54:57 -05:00
Glenn Randers-Pehrson
587382c0ba
[master] Added 2 "defined(PNG_HANDLE_AS_UNKNOWN_SUPPORTED)" tests in png.h
2009-06-16 13:35:47 -05:00
Glenn Randers-Pehrson
0f714ca6bc
[master] Reformatted some comments.
2009-06-15 22:01:39 -05:00
Glenn Randers-Pehrson
63da1df6fe
[master] png.c should have been included in the previous checkin
2009-06-15 20:58:37 -05:00
Glenn Randers-Pehrson
bbe589da44
[master] Change some instances of PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
...
to PNG_HANDLE_AS_UNKNOWN to make it possible to build a libpng that can
use the png_set_keep_unknown_chunks() mechanism to ignore unused chunks
without having to save unknown chunks.
2009-06-15 20:50:00 -05:00
Glenn Randers-Pehrson
b278e91338
about calling png_set_IHDR() multiple times and about the order
...
of color samples in the tRNS chunk.
2009-06-08 08:37:58 -05:00
Glenn Randers-Pehrson
f2609e133d
[master] Revise libpng*.txt
...
about calling png_set_IHDR() multiple times and about the order
of color samples in the tRNS chunk.
2009-06-08 08:33:46 -05:00
Glenn Randers-Pehrson
e14fdbbddb
[master] Bump version to bump-to-libpng-1.2.38beta01
2009-06-05 17:27:14 -05:00
Glenn Randers-Pehrson
a162155919
Imported from libpng-1.2.37.tar
2009-06-04 06:11:58 -05:00
Glenn Randers-Pehrson
4d7ae382a8
[master] Added a section in documentation
...
about using png_set_io_ptr() in configure scripts for detecting libpng
2009-06-02 13:48:22 -05:00
Glenn Randers-Pehrson
0c86eb2dc7
Update pngminim/*/pngusr.h
...
to add PNG_NO_READ_SWAP, PNG_NO_WRITE_SWAP
2009-06-02 06:50:00 -05:00
Glenn Randers-Pehrson
70c2db8b9f
Updated documentation about the git repository and libpng coding style.
2009-06-02 06:41:57 -05:00
Glenn Randers-Pehrson
c1dd118d2c
Reformatted several "if () statment;"
...
and "else statement;" into two lines.
2009-05-30 20:25:20 -05:00
Glenn Randers-Pehrson
2d21d91abd
Imported from libpng-1.2.37rc01.tar
2009-05-27 06:47:59 -05:00
Glenn Randers-Pehrson
e5ee05dc0d
Imported from libpng-1.2.37beta03.tar
2009-05-20 17:19:00 -05:00
Glenn Randers-Pehrson
c0d53e176b
Change version from libpng-1.2.37rc01 to libpng-1.2.37beta03
...
Because of many cosmetic changes, drop back to beta and do rc01 later.
2009-05-20 17:16:46 -05:00
Glenn Randers-Pehrson
b26d188190
Rename contrib/pngminim/*/makefile.std to makefile.
2009-05-19 18:51:08 -05:00
Glenn Randers-Pehrson
0a6382e2af
Bump version to libpng-1.2.37rc01
2009-05-19 18:48:06 -05:00
Glenn Randers-Pehrson
1214d8cd26
Fix "AVE" -> "AVG" typo in libpng docs again.
...
Evidently the fix didn't go into the real master copy.
2009-05-19 07:18:06 -05:00
Glenn Randers-Pehrson
65a30ab0a2
Imported from libpng-1.2.37beta02.tar
2009-05-19 07:05:20 -05:00
Glenn Randers-Pehrson
61616abef2
Fixed cut-and-paste error in contrib/pngminim/preader/README
...
"pngminus" should be "gregbook"
2009-05-18 15:19:29 -05:00
Glenn Randers-Pehrson
bb1fcd1ba8
Fixed a glitch in contrib/pngminim/preader/README.
2009-05-18 14:57:07 -05:00
Glenn Randers-Pehrson
6d65121993
Add contrib/pngminim/preader files
...
(README, gather.sh, makefile.std, and pngusr.h)
2009-05-18 14:50:48 -05:00
Glenn Randers-Pehrson
ecf0bffb79
Added contrib/pngminim/preader demo of gregbook/rpng2-x with embedded libpng
...
also minor editing of encoder/pngusr.h and decoder/pngusr.h
2009-05-18 14:46:35 -05:00
Glenn Randers-Pehrson
af2ea0a1f2
Revise ANNOUNCE to reflect conditional compile of png_read_finish_row().
2009-05-18 14:43:36 -05:00
Glenn Randers-Pehrson
286467db82
Restored compiling png_combine_row() for progressive readers.
...
Only png_read_finish_row() can be omitted.
2009-05-18 13:40:23 -05:00
Glenn Randers-Pehrson
6b60a31ebf
Restore png_memset() call
...
This stuff should be handled in the APNG fork.
2009-05-18 11:55:55 -05:00
Glenn Randers-Pehrson
54028e5943
Revert "png_reset_prev_row" from png.h and pngrutil.c
...
This should be handled in the APNG fork, not in libpng proper.
2009-05-18 11:49:19 -05:00
Glenn Randers-Pehrson
0c062e839d
Conditionally compile png_combine_row() and png_read_finish_row()
...
which are only used by sequential PNG readers. This can save some
resources in applications that only do progressive reading.
2009-05-18 10:31:21 -05:00
Glenn Randers-Pehrson
0fcbf05b6d
Revert "Set png_ptr->old_prev_row_size=0 to force prev_row to be cleared"
...
This reverts commit f4276c36c9 .
2009-05-18 10:18:00 -05:00
Glenn Randers-Pehrson
f4276c36c9
Set png_ptr->old_prev_row_size=0 to force prev_row to be cleared
2009-05-16 08:47:20 -05:00
Glenn Randers-Pehrson
ba05bddf92
Relocate misplaced #endif directives in pngwrite.c
...
having to do with sCAL chunk handling
2009-05-16 08:40:25 -05:00
Glenn Randers-Pehrson glennrp@comcast.net
7a63d75a83
Fixed typo in libpng documentation: AVE filter should be AVG filter.
2009-05-15 20:56:43 -05:00
Glenn Randers-Pehrson glennrp@comcast.net
da3f74a70e
Bump version to libpng-1.2.37beta02
2009-05-15 20:53:04 -05:00
Glenn Randers-Pehrson
5f26656fc5
Imported from libpng-1.2.37beta01.tar
2009-05-14 05:23:07 -05:00
Glenn Randers-Pehrson
2f76e90d1a
Reformatted comments in example.c
...
Added advice about setting pointers to NULL after png_free(),
capitalized sentences, reformatted long comments in libpng style.
2009-05-13 15:20:53 -05:00
Glenn Randers-Pehrson
1296329f02
Revised commentary in example.c
2009-05-13 07:42:05 -05:00
Glenn Randers-Pehrson
e38b432846
Clarified usage of sig_bit as struct vs sig_bit_p as pointer in example.c
...
sig_bit was not declared in write_png() and was used differently from
sig_bit in read_png(), as reported by Vincent Torri. This update changes
sig_bit to sig_bit_p in read_png() and declares sig_bit in write_png().
2009-05-13 05:18:48 -05:00
Glenn Randers-Pehrson
549a5101e7
Fixed inconsistency in use of "row_bytes" in pngrutil.c
...
The memset() should use "row_bytes" instead of "png_ptr->rowbytes".
This bug was introduced in libpng-1.2.36.
2009-05-12 05:49:10 -05:00
Glenn Randers-Pehrson glennrp@comcast.net
031a8648cb
Merged scripts/makefiles and other scripts with libpng-1.4.0beta57.
...
These are mostly just cosmetic changes.
2009-05-07 17:12:33 -05:00
Glenn Randers-Pehrson glennrp@comcast.net
a8476a8404
Bump internal version to libpng-1.2.37beta01.
2009-05-07 17:09:14 -05:00
Glenn Randers-Pehrson
25c8491fc8
Imported from libpng-1.2.36.tar
2009-05-07 10:59:02 -05:00
Glenn Randers-Pehrson
d0d637dd47
Imported from libpng-1.2.36rc01.tar
2009-04-30 15:29:29 -05:00
Glenn Randers-Pehrson
977c6bd44c
Imported from libpng-1.2.36beta05.tar
2009-04-24 15:09:41 -05:00
Glenn Randers-Pehrson
89ad3aa168
Suppress "shadowed declaration" warnings about "gamma" in pngset.c
...
The variable "gamma" is also defined in math.h on some platforms.
2009-04-20 13:23:24 -05:00
Glenn Randers-Pehrson
55b921dab2
Suppress "shadowed declaration" warnings in pngtest.c
...
Changed some local variable names such as "buffer" to "buff".
2009-04-20 13:12:07 -05:00
Glenn Randers-Pehrson
92d0fe938f
Add PNG_SKIP_SETJMP_CHECK macro
2009-04-20 13:07:01 -05:00
Glenn Randers-Pehrson
d07e9b03c4
Bump versioning to 1.2.36beta05
2009-04-20 13:02:18 -05:00
Glenn Randers-Pehrson
6cbd1cba68
Imported from libpng-1.2.36beta04.tar
2009-04-06 16:18:42 -05:00
Glenn Randers-Pehrson
3b8df1f143
Imported from libpng-1.2.36beta03.tar
2009-04-06 16:18:40 -05:00
Glenn Randers-Pehrson
85f7d0a8d5
Imported from libpng-1.2.36beta02.tar
2009-04-06 16:18:37 -05:00
Glenn Randers-Pehrson
556450a2ff
Imported from libpng-1.2.36beta01.tar
2009-04-06 16:18:34 -05:00
Glenn Randers-Pehrson
6048b12510
Imported from libpng-1.2.35.tar
2009-04-06 16:18:32 -05:00
Glenn Randers-Pehrson
8cafc1e1ac
Imported from libpng-1.2.35rc02.tar
2009-04-06 16:18:30 -05:00
Glenn Randers-Pehrson
51807d7608
Imported from libpng-1.2.35rc01.tar
2009-04-06 16:18:28 -05:00
Glenn Randers-Pehrson
e104df5bb7
Imported from libpng-1.2.35beta03.tar
2009-04-06 16:18:26 -05:00
Glenn Randers-Pehrson
c6df7e5899
Imported from libpng-1.2.35beta02.tar
2009-04-06 16:18:23 -05:00
Glenn Randers-Pehrson
d0a4300dde
Imported from libpng-1.2.35beta01.tar
2009-04-06 16:18:21 -05:00
Glenn Randers-Pehrson
d8865433f9
Imported from libpng-1.2.34.tar
2009-04-06 16:18:19 -05:00
Glenn Randers-Pehrson
9c2bd642ba
Imported from libpng-1.2.34rc01.tar
2009-04-06 16:18:17 -05:00
Glenn Randers-Pehrson
09883db208
Imported from libpng-1.2.34beta07.tar
2009-04-06 16:18:14 -05:00
Glenn Randers-Pehrson
f7f68f7160
Imported from libpng-1.2.34beta06.tar
2009-04-06 16:18:12 -05:00
Glenn Randers-Pehrson
31f744a8c0
Imported from libpng-1.2.34beta05.tar
2009-04-06 16:18:10 -05:00
Glenn Randers-Pehrson
bc66c96275
Imported from libpng-1.2.34beta04.tar
2009-04-06 16:18:07 -05:00
Glenn Randers-Pehrson
87c2acdeae
Imported from libpng-1.2.34beta03.tar
2009-04-06 16:18:05 -05:00
Glenn Randers-Pehrson
6b90023764
Imported from libpng-1.2.34beta02.tar
2009-04-06 16:18:02 -05:00
Glenn Randers-Pehrson
e502bca962
Imported from libpng-1.2.34beta01.tar
2009-04-06 16:18:00 -05:00
Glenn Randers-Pehrson
c4d44b72e8
Imported from libpng-1.2.33.tar
2009-04-06 16:17:58 -05:00
Glenn Randers-Pehrson
e7324bb94f
Imported from libpng-1.2.33rc02.tar
2009-04-06 16:17:56 -05:00
Glenn Randers-Pehrson
8431b2c190
Imported from libpng-1.2.33rc01.tar
2009-04-06 16:17:53 -05:00
Glenn Randers-Pehrson
7d376ccd8c
Imported from libpng-1.2.33beta01.tar
2009-04-06 16:17:51 -05:00
Glenn Randers-Pehrson
382410249d
Imported from libpng-1.2.32.tar
2009-04-06 16:17:49 -05:00
Glenn Randers-Pehrson
bfb5132362
Imported from libpng-1.2.32rc01.tar
2009-04-06 16:17:47 -05:00
Glenn Randers-Pehrson
4489dbc630
Imported from libpng-1.2.32beta01.tar
2009-04-06 16:17:45 -05:00
Glenn Randers-Pehrson
5c31bc8ffc
Imported from libpng-1.2.31.tar
2009-04-06 16:17:42 -05:00
Glenn Randers-Pehrson
baee5f46cf
Imported from libpng-1.2.31rc03.tar
2009-04-06 16:17:40 -05:00
Glenn Randers-Pehrson
66ab7ffa15
Imported from libpng-1.2.31rc02.tar
2009-04-06 16:17:37 -05:00
Glenn Randers-Pehrson
32df7eb346
Imported from libpng-1.2.31rc01.tar
2009-04-06 16:17:35 -05:00
Glenn Randers-Pehrson
576b532b45
Imported from libpng-1.2.30.tar
2009-04-06 16:17:33 -05:00
Glenn Randers-Pehrson
b520414d5a
Imported from libpng-1.2.30rc08.tar
2009-04-06 16:17:31 -05:00
Glenn Randers-Pehrson
b54fd5c588
Imported from libpng-1.2.30rc07.tar
2009-04-06 16:17:28 -05:00
Glenn Randers-Pehrson
d9b4c01719
Imported from libpng-1.2.30rc06.tar
2009-04-06 16:17:26 -05:00
Glenn Randers-Pehrson
84d5d968a6
Imported from libpng-1.2.30rc05.tar
2009-04-06 16:17:24 -05:00
Glenn Randers-Pehrson
9c8717e42f
Imported from libpng-1.2.30rc04.tar
2009-04-06 16:17:21 -05:00
Glenn Randers-Pehrson
3215e97b17
Imported from libpng-1.2.30rc03.tar
2009-04-06 16:17:19 -05:00
Glenn Randers-Pehrson
975e721432
Imported from libpng-1.2.30rc02.tar
2009-04-06 16:17:17 -05:00
Glenn Randers-Pehrson
b8bccdd081
Imported from libpng-1.2.30rc01.tar
2009-04-06 16:17:15 -05:00
Glenn Randers-Pehrson
4310a4d813
Imported from libpng-1.2.30beta04.tar
2009-04-06 16:17:12 -05:00
Glenn Randers-Pehrson
b96b342561
Imported from libpng-1.2.30beta03.tar
2009-04-06 16:17:10 -05:00
Glenn Randers-Pehrson
eb1cd11d57
Imported from libpng-1.2.30beta02.tar
2009-04-06 16:17:07 -05:00
Glenn Randers-Pehrson
a55c72890d
Imported from libpng-1.2.30beta01.tar
2009-04-06 16:17:05 -05:00
Glenn Randers-Pehrson
247e230581
Imported from libpng-1.2.29.tar
2009-04-06 16:17:03 -05:00
Glenn Randers-Pehrson
1586ea6fe9
Imported from libpng-1.2.29rc01.tar
2009-04-06 16:17:01 -05:00
Glenn Randers-Pehrson
ae505c50b0
Imported from libpng-1.2.29beta03.tar
2009-04-06 16:16:58 -05:00
Glenn Randers-Pehrson
fce1b4b1fb
Imported from libpng-1.2.29beta02.tar
2009-04-06 16:16:55 -05:00
Glenn Randers-Pehrson
c6bcbf4951
Imported from libpng-1.2.29beta01.tar
2009-04-06 16:16:53 -05:00
Glenn Randers-Pehrson
6ed6086da5
Imported from libpng-1.2.28.tar
2009-04-06 16:16:51 -05:00
Glenn Randers-Pehrson
9f7b16ad19
Imported from libpng-1.2.27.tar
2009-04-06 16:16:49 -05:00
Glenn Randers-Pehrson
fc70a92071
Imported from libpng-1.2.27rc01.tar
2009-04-06 16:16:46 -05:00
Glenn Randers-Pehrson
ccaaab2898
Imported from libpng-1.2.27beta06.tar
2009-04-06 16:16:43 -05:00
Glenn Randers-Pehrson
8d36e630f2
Imported from libpng-1.2.27beta05.tar
2009-04-06 16:16:41 -05:00
Glenn Randers-Pehrson
eb1f347bca
Imported from libpng-1.2.27beta04.tar
2009-04-06 16:16:38 -05:00
Glenn Randers-Pehrson
7db798186c
Imported from libpng-1.2.27beta03.tar
2009-04-06 16:16:36 -05:00
Glenn Randers-Pehrson
a1cd94bfbb
Imported from libpng-1.2.27beta02.tar
2009-04-06 16:16:34 -05:00
Glenn Randers-Pehrson
d9d2a6f6d9
Imported from libpng-1.2.27beta01.tar
2009-04-06 16:16:31 -05:00
Glenn Randers-Pehrson
b8c4b82d18
Imported from libpng-1.2.26.tar
2009-04-06 16:16:29 -05:00
Glenn Randers-Pehrson
b8f615d7a1
Imported from libpng-1.2.26rc01.tar
2009-04-06 16:16:27 -05:00
Glenn Randers-Pehrson
35d97eb5c5
Imported from libpng-1.2.26beta06.tar
2009-04-06 16:16:24 -05:00
Glenn Randers-Pehrson
fc15b2e479
Imported from libpng-1.2.26beta05.tar
2009-04-06 16:16:22 -05:00
Glenn Randers-Pehrson
936df0d290
Imported from libpng-1.2.26beta04.tar
2009-04-06 16:16:20 -05:00
Glenn Randers-Pehrson
3236beddf8
Imported from libpng-1.2.26beta03.tar
2009-04-06 16:16:18 -05:00
Glenn Randers-Pehrson
c13f8f10e6
Imported from libpng-1.2.26beta02.tar
2009-04-06 16:16:15 -05:00
Glenn Randers-Pehrson
d8b530b93c
Imported from libpng-1.2.26beta01.tar
2009-04-06 16:16:13 -05:00
Glenn Randers-Pehrson
2296f211e8
Imported from libpng-1.2.25.tar
2009-04-06 16:16:10 -05:00
Glenn Randers-Pehrson
a5136b8863
Imported from libpng-1.2.25rc02.tar
2009-04-06 16:16:08 -05:00
Glenn Randers-Pehrson
913bc38217
Imported from libpng-1.2.25beta06.tar
2009-04-06 16:16:05 -05:00
Glenn Randers-Pehrson
4b7dca3d2c
Imported from libpng-1.2.25beta05.tar
2009-04-06 16:16:03 -05:00
Glenn Randers-Pehrson
5c58e3ee31
Imported from libpng-1.2.25beta04.tar
2009-04-06 16:16:00 -05:00
Glenn Randers-Pehrson
49f304bd07
Imported from libpng-1.2.25beta03.tar
2009-04-06 16:15:58 -05:00
Glenn Randers-Pehrson
c95be42221
Imported from libpng-1.2.25rc01.tar
2009-04-06 16:15:56 -05:00
Glenn Randers-Pehrson
dbc07e13bb
Imported from libpng-1.2.25beta02.tar
2009-04-06 16:15:54 -05:00
Glenn Randers-Pehrson
5ca40ebc22
Imported from libpng-1.2.25beta01.tar
2009-04-06 16:15:51 -05:00
Glenn Randers-Pehrson
a8e07274ae
Imported from libpng-1.2.24.tar
2009-04-06 16:15:49 -05:00
Glenn Randers-Pehrson
af99dba018
Imported from libpng-1.2.24rc01.tar
2009-04-06 16:15:46 -05:00
Glenn Randers-Pehrson
03dfa028d2
Imported from libpng-1.2.24beta02.tar
2009-04-06 16:15:44 -05:00
Glenn Randers-Pehrson
541b47ac2a
Imported from libpng-1.2.24beta01.tar
2009-04-06 16:15:42 -05:00
Glenn Randers-Pehrson
507a35a9be
Imported from libpng-1.2.23.tar
2009-04-06 16:15:39 -05:00
Glenn Randers-Pehrson
1eddb5463e
Imported from libpng-1.2.23rc01.tar
2009-04-06 16:15:37 -05:00
Glenn Randers-Pehrson
d91769efd4
Imported from libpng-1.2.23beta05.tar
2009-04-06 16:15:34 -05:00
Glenn Randers-Pehrson
134a8eb272
Imported from libpng-1.2.23beta04.tar
2009-04-06 16:15:32 -05:00
Glenn Randers-Pehrson
930be98598
Imported from libpng-1.2.23beta03.tar
2009-04-06 16:15:30 -05:00
Glenn Randers-Pehrson
28e3cb3e93
Imported from libpng-1.2.23beta02.tar
2009-04-06 16:15:28 -05:00
Glenn Randers-Pehrson
6328671ef8
Imported from libpng-1.2.23beta01.tar
2009-04-06 16:15:25 -05:00
Glenn Randers-Pehrson
fab1959d00
Imported from libpng-1.2.22.tar
2009-04-06 16:15:23 -05:00
Glenn Randers-Pehrson
5ab788cd84
Imported from libpng-1.2.22rc1.tar
2009-04-06 16:15:21 -05:00
Glenn Randers-Pehrson
ce2a6d3739
Imported from libpng-1.2.22beta4.tar
2009-04-06 16:15:18 -05:00
Glenn Randers-Pehrson
40dd10dfb2
Imported from libpng-1.2.22beta3.tar
2009-04-06 16:15:16 -05:00
Glenn Randers-Pehrson
e41076e082
Imported from libpng-1.2.22beta2.tar
2009-04-06 16:15:14 -05:00
Glenn Randers-Pehrson
582fec4e11
Imported from libpng-1.2.22beta1.tar
2009-04-06 16:15:11 -05:00
Glenn Randers-Pehrson
42ae02aa08
Imported from libpng-1.2.21.tar
2009-04-06 16:15:08 -05:00
Glenn Randers-Pehrson
79e3fc64c4
Imported from libpng-1.2.21rc3.tar
2009-04-06 16:15:06 -05:00
Glenn Randers-Pehrson
b188d671d1
Imported from libpng-1.2.21rc2.tar
2009-04-06 16:15:04 -05:00
Glenn Randers-Pehrson
5ecf1b53ea
Imported from libpng-1.2.21rc1.tar
2009-04-06 16:15:01 -05:00
Glenn Randers-Pehrson
0636311d37
Imported from libpng-1.2.21beta2.tar
2009-04-06 16:14:59 -05:00
Glenn Randers-Pehrson
219d3b449f
Imported from libpng-1.2.21beta1.tar
2009-04-06 16:14:57 -05:00
Glenn Randers-Pehrson
22eaa89c5a
Imported from libpng-1.2.20.tar
2009-04-06 16:14:55 -05:00
Glenn Randers-Pehrson
79e28a4c2e
Imported from libpng-1.2.20rc6.tar
2009-04-06 16:14:52 -05:00
Glenn Randers-Pehrson
db05b1eb2b
Imported from libpng-1.2.20rc5.tar
2009-04-06 16:14:50 -05:00
Glenn Randers-Pehrson
d20666a228
Imported from libpng-1.2.20rc4.tar
2009-04-06 16:14:48 -05:00
Glenn Randers-Pehrson
9cc7b03503
Imported from libpng-1.2.20rc3.tar
2009-04-06 16:14:45 -05:00
Glenn Randers-Pehrson
b38f12d519
Imported from libpng-1.2.20rc2.tar
2009-04-06 16:14:43 -05:00
Glenn Randers-Pehrson
e736f1ead9
Imported from libpng-1.2.20rc1.tar
2009-04-06 16:14:40 -05:00
Glenn Randers-Pehrson
b56c1f6023
Imported from libpng-1.2.20beta04.tar
2009-04-06 16:14:37 -05:00
Glenn Randers-Pehrson
268f0d64fc
Imported from libpng-1.2.20beta03.tar
2009-04-06 16:14:35 -05:00
Glenn Randers-Pehrson
b3ea17736b
Imported from libpng-1.2.20beta02.tar
2009-04-06 16:14:33 -05:00
Glenn Randers-Pehrson
963daeaec5
Imported from libpng-1.2.20beta01.tar
2009-04-06 16:14:30 -05:00
Glenn Randers-Pehrson
249bd44ebc
Imported from libpng-1.2.19.tar
2009-04-06 16:14:28 -05:00
Glenn Randers-Pehrson
04a1b1c123
Imported from libpng-1.2.19rc6.tar
2009-04-06 16:14:25 -05:00
Glenn Randers-Pehrson
3922e7afc3
Imported from libpng-1.2.19rc5.tar
2009-04-06 16:14:23 -05:00
Glenn Randers-Pehrson
f0a97a0d80
Imported from libpng-1.2.19rc4.tar
2009-04-06 16:14:21 -05:00
Glenn Randers-Pehrson
88713fd590
Imported from libpng-1.2.19rc3.tar
2009-04-06 16:14:18 -05:00
Glenn Randers-Pehrson
394759e0c8
Imported from libpng-1.2.19rc2.tar
2009-04-06 16:14:16 -05:00
Glenn Randers-Pehrson
c229f65dcf
Imported from libpng-1.2.19rc1.tar
2009-04-06 16:14:13 -05:00
Glenn Randers-Pehrson
f929861609
Imported from libpng-1.2.19beta31.tar
2009-04-06 16:14:10 -05:00
Glenn Randers-Pehrson
f024ce7675
Imported from libpng-1.2.19beta30.tar
2009-04-06 16:14:08 -05:00
Glenn Randers-Pehrson
f3fcf00392
Imported from libpng-1.2.19beta29.tar
2009-04-06 16:14:05 -05:00
Glenn Randers-Pehrson
08313ef870
Imported from libpng-1.2.19beta28.tar
2009-04-06 16:14:03 -05:00
Glenn Randers-Pehrson
911c469d69
Imported from libpng-1.2.19beta27.tar
2009-04-06 16:14:00 -05:00
Glenn Randers-Pehrson
07c089ee04
Imported from libpng-1.2.19beta26.tar
2009-04-06 16:13:58 -05:00
Glenn Randers-Pehrson
dadc944810
Imported from libpng-1.2.19beta25.tar
2009-04-06 16:13:55 -05:00
Glenn Randers-Pehrson
80663032a9
Imported from libpng-1.2.19beta24.tar
2009-04-06 16:13:53 -05:00
Glenn Randers-Pehrson
67c75ee7f0
Imported from libpng-1.2.19beta23.tar
2009-04-06 16:13:51 -05:00
Glenn Randers-Pehrson
62626737a5
Imported from libpng-1.2.19beta22.tar
2009-04-06 16:13:48 -05:00
Glenn Randers-Pehrson
e404eed318
Imported from libpng-1.2.19beta21.tar
2009-04-06 16:13:46 -05:00
Glenn Randers-Pehrson
3c115428ea
Imported from libpng-1.2.19beta20.tar
2009-04-06 16:13:43 -05:00
Glenn Randers-Pehrson
db40ca4aca
Imported from libpng-1.2.19beta19.tar
2009-04-06 16:13:41 -05:00
Glenn Randers-Pehrson
f456d0d6bb
Imported from libpng-1.2.19beta18.tar
2009-04-06 16:13:38 -05:00
Glenn Randers-Pehrson
06fe17eb9f
Imported from libpng-1.2.19beta17.tar
2009-04-06 16:13:36 -05:00
Glenn Randers-Pehrson
7945bdb88f
Imported from libpng-1.2.19beta16.tar
2009-04-06 16:13:33 -05:00
Glenn Randers-Pehrson
f7794ec181
Imported from libpng-1.2.19beta15.tar
2009-04-06 16:13:31 -05:00
Glenn Randers-Pehrson
16851b3eb3
Imported from libpng-1.2.19beta14.tar
2009-04-06 16:13:29 -05:00
Glenn Randers-Pehrson
c72d8d4d29
Imported from libpng-1.2.19beta13.tar
2009-04-06 16:13:26 -05:00
Glenn Randers-Pehrson
2b7436558e
Imported from libpng-1.2.19beta12.tar
2009-04-06 16:13:24 -05:00
Glenn Randers-Pehrson
e59c47d5b1
Imported from libpng-1.2.19beta11.tar
2009-04-06 16:13:22 -05:00
Glenn Randers-Pehrson
c1523ad16d
Imported from libpng-1.2.19beta10.tar
2009-04-06 16:13:19 -05:00
Glenn Randers-Pehrson
d0be8e27de
Imported from libpng-1.2.19beta9.tar
2009-04-06 16:13:17 -05:00
Glenn Randers-Pehrson
5c66b81289
Imported from libpng-1.2.19beta8.tar
2009-04-06 16:13:15 -05:00
Glenn Randers-Pehrson
1a42cb2013
Imported from libpng-1.2.19beta7.tar
2009-04-06 16:13:12 -05:00
Glenn Randers-Pehrson
cf2978cbbb
Imported from libpng-1.2.19beta6.tar
2009-04-06 16:13:10 -05:00
Glenn Randers-Pehrson
8a9733e777
Imported from libpng-1.2.19beta5.tar
2009-04-06 16:13:07 -05:00
Glenn Randers-Pehrson
ba880c5501
Imported from libpng-1.2.19beta4.tar
2009-04-06 16:13:05 -05:00
Glenn Randers-Pehrson
788f962fbd
Imported from libpng-1.2.19beta3.tar
2009-04-06 16:13:03 -05:00
Glenn Randers-Pehrson
12f8283560
Imported from libpng-1.2.19beta2.tar
2009-04-06 16:13:01 -05:00
Glenn Randers-Pehrson
4d27f6b77b
Imported from libpng-1.2.19beta1.tar
2009-04-06 16:12:58 -05:00
Glenn Randers-Pehrson
413ed28246
Imported from libpng-1.2.18.tar
2009-04-06 16:12:56 -05:00
Glenn Randers-Pehrson
ad084f559a
Imported from libpng-1.2.17.tar
2009-04-06 16:12:54 -05:00
Glenn Randers-Pehrson
3832ab1c21
Imported from libpng-1.2.17rc4.tar
2009-04-06 16:12:52 -05:00
Glenn Randers-Pehrson
999bceb413
Imported from libpng-1.2.17rc3.tar
2009-04-06 16:12:49 -05:00
Glenn Randers-Pehrson
e8f6605642
Imported from libpng-1.2.17rc2.tar
2009-04-06 16:12:47 -05:00
Glenn Randers-Pehrson
3148c65323
Imported from libpng-1.2.17rc1.tar
2009-04-06 16:12:45 -05:00
Glenn Randers-Pehrson
0a3d2cc68b
Imported from libpng-1.2.17beta2.tar
2009-04-06 16:12:43 -05:00
Glenn Randers-Pehrson
11cf76edb3
Imported from libpng-1.2.17beta1.tar
2009-04-06 16:12:40 -05:00
Glenn Randers-Pehrson
8833ad415c
Imported from libpng-1.2.16.tar
2009-04-06 16:12:38 -05:00
Glenn Randers-Pehrson
bc290d8e6c
Imported from libpng-1.2.16rc1.tar
2009-04-06 16:12:35 -05:00
Glenn Randers-Pehrson
9c5b3a4060
Imported from libpng-1.2.16beta2.tar
2009-04-06 16:12:33 -05:00
Glenn Randers-Pehrson
04bbba55c7
Imported from libpng-1.2.16beta1.tar
2009-04-06 16:12:31 -05:00
Glenn Randers-Pehrson
40b70d5373
Imported from libpng-1.2.15.tar
2009-04-06 16:12:29 -05:00
Glenn Randers-Pehrson
833d32646e
Imported from libpng-1.2.15rc5.tar
2009-04-06 16:12:27 -05:00
Glenn Randers-Pehrson
6cdefb3cac
Imported from libpng-1.2.15rc4.tar
2009-04-06 16:12:25 -05:00
Glenn Randers-Pehrson
f959d3ee7a
Imported from libpng-1.2.15rc3.tar
2009-04-06 16:12:22 -05:00
Glenn Randers-Pehrson
b0952eabc7
Imported from libpng-1.2.15rc2.tar
2009-04-06 16:12:20 -05:00
Glenn Randers-Pehrson
43bb4ba4bf
Imported from libpng-1.2.15rc1.tar
2009-04-06 16:12:18 -05:00
Glenn Randers-Pehrson
c2de22abeb
Imported from libpng-1.2.15beta6.tar
2009-04-06 16:12:15 -05:00
Glenn Randers-Pehrson
a0113ee049
Imported from libpng-1.2.15beta5.tar
2009-04-06 16:12:13 -05:00
Glenn Randers-Pehrson
05db10fda3
Imported from libpng-1.2.15beta4.tar
2009-04-06 16:12:11 -05:00
Glenn Randers-Pehrson
948ee23a2a
Imported from libpng-1.2.15beta3.tar
2009-04-06 16:12:08 -05:00
Glenn Randers-Pehrson
271a2931b6
Imported from libpng-1.2.15beta2.tar
2009-04-06 16:12:06 -05:00
Glenn Randers-Pehrson
9fe05edd47
Imported from libpng-1.2.15beta1.tar
2009-04-06 16:12:04 -05:00
Glenn Randers-Pehrson
c2573702cf
Imported from libpng-1.2.14.tar
2009-04-06 16:12:02 -05:00
Glenn Randers-Pehrson
b8e76b586e
Imported from libpng-1.2.14rc1.tar
2009-04-06 16:11:59 -05:00
Glenn Randers-Pehrson
11a89964b9
Imported from libpng-1.2.14beta2.tar
2009-04-06 16:11:57 -05:00
Glenn Randers-Pehrson
b5bfcbae59
Imported from libpng-1.2.14beta1.tar
2009-04-06 16:11:55 -05:00
Glenn Randers-Pehrson
efe95a6953
Imported from libpng-1.2.13.tar
2009-04-06 16:11:53 -05:00
Glenn Randers-Pehrson
e88a5eca8b
Imported from libpng-1.2.13rc2.tar
2009-04-06 16:11:51 -05:00
Glenn Randers-Pehrson
2e3980e1de
Imported from libpng-1.2.13rc1.tar
2009-04-06 16:11:49 -05:00
Glenn Randers-Pehrson
0ff85c6923
Imported from libpng-1.2.13beta1.tar
2009-04-06 16:11:47 -05:00
Glenn Randers-Pehrson
e3358d1839
Imported from libpng-1.2.12.tar
2009-04-06 16:11:45 -05:00
Glenn Randers-Pehrson
f5eac0c7fa
Imported from libpng-1.2.11.tar
2009-04-06 16:11:42 -05:00
Glenn Randers-Pehrson
6034592a27
Imported from libpng-1.2.11rc5.tar
2009-04-06 16:11:40 -05:00
Glenn Randers-Pehrson
7b00d826d3
Imported from libpng-1.2.11rc3.tar
2009-04-06 16:11:37 -05:00
Glenn Randers-Pehrson
52ef3586b9
Imported from libpng-1.2.11rc2.tar
2009-04-06 16:11:35 -05:00
Glenn Randers-Pehrson
4118fcdd14
Imported from libpng-1.2.11rc1.tar
2009-04-06 16:11:33 -05:00
Glenn Randers-Pehrson
d9e18047d3
Imported from libpng-1.2.11beta4.tar
2009-04-06 16:11:31 -05:00
Glenn Randers-Pehrson
734f320ade
Imported from libpng-1.2.11beta3.tar
2009-04-06 16:11:29 -05:00
Glenn Randers-Pehrson
79f25cdeb2
Imported from libpng-1.2.11beta2cos.tar
2009-04-06 16:11:27 -05:00
Glenn Randers-Pehrson
413f3db617
Imported from libpng-1.2.11beta2.tar
2009-04-06 16:11:25 -05:00
Glenn Randers-Pehrson
4db11d5143
Imported from libpng-1.2.11beta1.tar
2009-04-06 16:11:23 -05:00
Glenn Randers-Pehrson
78d28c6b96
Imported from libpng-1.2.10.tar
2009-04-06 16:11:21 -05:00
Glenn Randers-Pehrson
24df7333a2
Imported from libpng-1.2.10rc3.tar
2009-04-06 16:11:18 -05:00
Glenn Randers-Pehrson
8694cd8bf5
Imported from libpng-1.2.10rc2.tar
2009-04-06 16:11:16 -05:00