aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-07-07Snap for 10453563 from dfb0b6e960c10be916541250ac2f81845a125538 to ↵aml_con_341614000aml_con_341511080aml_con_341410300aml_con_341310090aml_con_341110000android14-mainline-conscrypt-releaseAndroid Build Coastguard Worker
mainline-conscrypt-release Change-Id: I6a6a40f9db4839bf005d0e589eaa29c9e0cab616
2023-02-16Merge "Upgrade libpng to v1.6.39" am: cb9e209cab am: c05ebac440 am: 725d7d60eeandroid-14.0.0_r45android-14.0.0_r44android-14.0.0_r43android-14.0.0_r42android-14.0.0_r41android-14.0.0_r40android-14.0.0_r39android-14.0.0_r38android-14.0.0_r27android-14.0.0_r26android-14.0.0_r25android-14.0.0_r24android-14.0.0_r23android-14.0.0_r22android-14.0.0_r21android-14.0.0_r20android-14.0.0_r19android-14.0.0_r18android-14.0.0_r17android-14.0.0_r16aml_hef_341717050aml_hef_341613000aml_hef_341512030aml_hef_341415040aml_hef_341311010aml_hef_341114030android14-qpr1-s2-releaseandroid14-qpr1-releaseandroid14-mainline-healthfitness-releaseandroid14-devandroid14-d2-s5-releaseandroid14-d2-s4-releaseandroid14-d2-s3-releaseandroid14-d2-s2-releaseandroid14-d2-s1-releaseandroid14-d2-releaseSadaf Ebrahimi
Original change: https://android-review.googlesource.com/c/platform/external/libpng/+/2435872 Change-Id: I78ad12417bd62fb4f64085149b28c515abd59172 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-15Merge "Upgrade libpng to v1.6.39" am: cb9e209cab am: c05ebac440Sadaf Ebrahimi
Original change: https://android-review.googlesource.com/c/platform/external/libpng/+/2435872 Change-Id: I1f08558da6b79ca77bcc65ab0552010aec33166f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-15Merge "Upgrade libpng to v1.6.39" am: cb9e209cabandroid-u-beta-1-gplSadaf Ebrahimi
Original change: https://android-review.googlesource.com/c/platform/external/libpng/+/2435872 Change-Id: I55f6baed19a6ba4cbb67fbd493e1615e9570cef9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-15Merge "Upgrade libpng to v1.6.39"Sadaf Ebrahimi
2023-02-14Upgrade libpng to v1.6.39Sadaf Ebrahimi
This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update libpng For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md Test: TreeHugger Change-Id: Iaf1e90d0dd15d9fb9e30c34eab3809a9991a997f
2022-11-20Release libpng version 1.6.39Cosmin Truta
2022-11-20Update the file list in READMECosmin Truta
2022-11-20configure: Fix possible regressions with trunk autoconf (vs 2.71)Paul Eggert
Signed-off-by: Cosmin Truta <ctruta@gmail.com>
2022-11-20tools: Fix a memory leak in pngcpJohn Bowler
Signed-off-by: Cosmin Truta <ctruta@gmail.com>
2022-11-20tools: Fix a buffer overflow involving a file name in pngfixAlberto Barbaro
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-20Clean up comments and whitespace characters in source filesCosmin Truta
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-20Clean up oss-fuzzCosmin Truta
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-20Update, rename and clean up various scriptsCosmin Truta
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-20Clean up vestigial uses of png_size_tpCosmin Truta
2022-11-20Turn large PNG chunks into benign errorsCosmin Truta
Import Chromium commit https://chromium.googlesource.com/chromium/src/+/e87a02987101e2dbe319a4aba6b52470f7624b4a 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] https://github.com/glennrp/libpng/commit/347538efbdc21b8df684ebd92d37400b3ce85d55 [2] https://chromium.googlesource.com/chromium/src/+/f82653a473f8de5fc86d0f2ecc75f6237e61946b *** 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-17Merge "Upgrade libpng to v1.6.38" am: 1640fa9077 am: 3f67af02ac am: 1a56ed26adSadaf Ebrahimi
Original change: https://android-review.googlesource.com/c/platform/external/libpng/+/2305386 Change-Id: Ia0b22bce775aab319c61e7f43d7a186033aa4b34 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-17Merge "Upgrade libpng to v1.6.38" am: 1640fa9077 am: 3f67af02acSadaf Ebrahimi
Original change: https://android-review.googlesource.com/c/platform/external/libpng/+/2305386 Change-Id: Ic4c4441ec85ddf26a7d93671623524e5df9b644d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-17Merge "Upgrade libpng to v1.6.38" am: 1640fa9077main-16k-with-phonesSadaf Ebrahimi
Original change: https://android-review.googlesource.com/c/platform/external/libpng/+/2305386 Change-Id: I2b5bf136b55627fc010bae198b937402b202a18c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-17Merge "Upgrade libpng to v1.6.38"Sadaf Ebrahimi
2022-11-16Upgrade libpng to v1.6.38Sadaf Ebrahimi
This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update libpng For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md Test: TreeHugger Change-Id: Id1ea88761f7874779d7fd531dd14489032d17a61
2022-11-16Fix commentstangyaofang
Signed-off-by: Cosmin Truta <ctruta@gmail.com>
2022-10-23scripts: Fix the remaining instance of ZLIB_INCLUDE_DIRFelix Hanau
2022-10-12arm: Add a compile-time assertion about PNG_ARM_NEON_CHECK_SUPPORTEDCosmin Truta
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-12cmake: Default to PNG_ARM_NEON=off for arm targetsMartin Storsjö
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-09-18scripts: Add missing makefile.clang reference to README.txtCosmin Truta
2022-09-18scripts: Remove the support for "install" targets from all makefilesCosmin Truta
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-18scripts: Remove makefile.cegccCosmin Truta
It is obsolete and unlikely to be still working
2022-09-18.gitignore: Ignore the autoreconf artifactsCosmin Truta
2022-09-17Bump version to 1.6.39.gitCosmin Truta
2022-09-14Release libpng version 1.6.38Cosmin Truta
2022-09-14Acknowledge the contributors of bug fixes applied to the EXIF supportCosmin Truta
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-14Fix a last-minute bug in the checking of the EXIF byte-order headerCosmin Truta
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-14Revert "Remove second call to write_eXIf"Cosmin Truta
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 cd03aaf7bf0e0c748b8c6cb34a56b402b40d61d0.
2022-09-14.gitignore: UpdateCosmin Truta
2022-09-14scripts: Remove leftover references to the ci_* scripts from README.txtCosmin Truta
2022-09-14ci: Trace the paths of executable files found on the build machineCosmin Truta
Also add markers to trace the boundaries of configuration and build steps.
2022-09-14scripts: Add makefile.emcc for building libpng with EmscriptenCosmin Truta
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-14scripts: Disable the hardware-optimized compilation in legacy makefilesCosmin Truta
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-14scripts: Set the compiler warning options to "-Wall -Wextra -Wundef"Cosmin Truta
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-14scripts: Clean up the logging in makefile.std and pnglibconf.makCosmin Truta
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-14Fix handling incorrect hIST chunks of uneven sizeCosmin Truta
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-14Simplify the definition of png_isaligned and avoid compiler warningsCosmin Truta
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-14projects: Delete the definition of _WINDOWS from the VStudio projectCosmin Truta
The _WINDOWS macro should not be defined on a modern Windows platform. This macro was predefined by 16-bit Windows compilers only.
2022-09-14Delete vestigial declarations formerly used on 16-bit platformsCosmin Truta
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-14arm: Do not allow PNG_ARM_NEON_CHECK_SUPPORTED on ARM64Cosmin Truta
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-14arm: Avoid compiler warnings in palette_neon_intrinsics.cCosmin Truta
Use correct int types; wrap PNG_UNUSED around unused arguments.
2022-09-14Avoid -Wundef for MIPS and PPC symbols tooVadim Zeitlin
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-14Avoid -Wundef warnings for PNG_ARM_NEON_IMPLEMENTATIONVadim Zeitlin
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-13Fix a memory leak in png_set_tRNSSami Boukortt
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>