1
0
mirror of https://github.com/glennrp/libpng.git synced 2026-10-24 08:39:18 +03:00

7 Commits

Author SHA1 Message Date
Cosmin Truta
28cb99fe65 build: Remove the POINTER_INDEXING config option
POINTER_INDEXING was a build configuration option that we maintained
in order to work around a gcc 2.7.2.2 code generation bug (circa 1997).
This provided array-indexing fallback loops in `png_write_PLTE` and
`png_write_sPLT`.

Unfortunately, the fallback paths were effectively untested dead code
in every default build, and have been a recurring source of latent bugs.
(See commit 48800443eb in pnggroup/libpng#801 and commit f27592a0cd in
libpng 1.5.2rc02).

No compiler in current use requires this accommodation.
2026-03-06 17:58:06 +02:00
Cosmin Truta
96c78de6d5 Merge tag 'v1.6.54' into libpng18 2026-02-06 21:19:42 +02:00
Cosmin Truta
465f654c68 api! Remove the experimental (and incomplete) ERROR_NUMBERS feature
The purpose of this feature was to optionally prepend standardized
numbers to error and warning messages. The ERROR_NUMBERS feature was
first drafted in libpng-1.2.0 and further developed in libpng-1.4.0;
and yet, it was always disabled by default, and never completed.

In the light of a recent report concerning the security hazards arising
from enabling this code in custom libpng builds, we think it's best to
simply remove all the code written to support this feature.

Reported-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Cosmin Truta <ctruta@gmail.com>
2025-09-29 15:44:46 +03:00
Cosmin Truta
a92c7d779f Introduce APNG support -- patch applied, animations unlocked!
This is a cherry-pick of commit 7d55a836ae
from branch 'develop'.

Co-authored-by: Daisuke Nishikawa <daisuken@users.sourceforge.net>
Reviewed-by: John Bowler <jbowler@acm.org>
Reviewed-by: Maarten Bent <MaartenBent@users.noreply.github.com>
Signed-off-by: Cosmin Truta <ctruta@gmail.com>
2025-07-14 18:23:07 +03:00
Cosmin Truta
d35fa11425 Merge tag 'v1.6.47' into libpng18
Sync with libpng version 1.6.47
2025-02-18 21:43:14 +02:00
Cosmin Truta
91c396c48c build: Fix pnglibconf for the awk implementations that lack asort 2025-02-17 17:58:55 +02:00
Cosmin Truta
f6aa44850c build: Move the pnglibconf files and scripts to scripts/pnglibconf/
Considering that pnglibconf is a whole mini-system for configuring and
building libpng, it should be placed in its own dedicated subdirectory.
Any future additions, including tests and documentation, should go into
this subdirectory.

One exception: pnglibconf.h.prebuilt is moved to the top-level source
directory, where pnglibconf.h would be. This follows the organization
pattern typically used with the "*.in" files, for example.

All references to the pnglibconf artifacts, found in machine-readable
code and in human-readable comments, are updated accordingly.
2025-02-02 22:18:39 +02:00