Compare commits

...

146 Commits

Author SHA256 Message Date
Dominique Leuenberger
b53cf97040 Accepting request 1219523 from graphics
- version update to 1.6.44:
  * Hardened calculations in chroma handling to prevent overflows, and
    relaxed a constraint in cHRM validation to accomodate the standard
    ACES AP1 set of color primaries.
    (Contributed by John Bowler)
  * Removed the ASM implementation of ARM Neon optimizations and updated
    the build accordingly. Only the remaining C implementation shall be
    used from now on, thus ensuring the support of the PAC/BTI security
    features on ARM64.
    (Contributed by Ross Burton and John Bowler)
  * Fixed the pickup of the PNG_HARDWARE_OPTIMIZATIONS option in the
    CMake build on FreeBSD/amd64. This is an important performance fix
    on this platform.
  * Applied various fixes and improvements to the CMake build.
    (Contributed by Eric Riff, Benjamin Buch and Erik Scholz)
  * Added fuzzing targets for the simplified read API.
    (Contributed by Mikhail Khachayants)
  * Fixed a build error involving pngtest.c under a custom config.
    This was a regression introduced in a code cleanup in libpng-1.6.43.
    (Contributed by Ben Wagner)
  * Fixed and improved the config files for AppVeyor CI and Travis CI.
- Drop upstream patch:
  * 563.patch (forwarded request 1219518 from Guillaume_G)

OBS-URL: https://build.opensuse.org/request/show/1219523
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=57
2024-10-31 15:09:20 +00:00
Ana Guerrero
e94123dbda Accepting request 1194654 from graphics
- Fix missing backslash (forwarded request 1193249 from Andreas_Schwab)

OBS-URL: https://build.opensuse.org/request/show/1194654
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=56
2024-08-20 14:12:43 +00:00
c0be9ffafa - Fix missing backslash
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=148
2024-08-19 07:39:31 +00:00
Ana Guerrero
cdb0b7f6f9 Accepting request 1180336 from graphics
- Backport patch to fix PAC/BTI support on aarch64:
  * 563.patch (forwarded request 1180119 from Guillaume_G)

OBS-URL: https://build.opensuse.org/request/show/1180336
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=55
2024-06-14 16:57:12 +00:00
dcba818b5c - Backport patch to fix PAC/BTI support on aarch64:
* 563.patch

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=146
2024-06-13 08:50:42 +00:00
Ana Guerrero
5350362fc7 Accepting request 1155898 from graphics
- version update to 1.6.43
  * Fixed the row width check in png_check_IHDR().
    This corrected a bug that was specific to the 16-bit platforms,
    and removed a spurious compiler warning from the 64-bit builds.
    (Reported by Jacek Caban; fixed by John Bowler)
  * Added eXIf chunk support to the push-mode reader in pngpread.c.
    (Contributed by Chris Blume)
  * Added contrib/pngexif for the benefit of the users who would like
    to inspect the content of eXIf chunks.
  * Added contrib/conftest/basic.dfa, a basic build-time configuration.
    (Contributed by John Bowler)
  * Fixed a preprocessor condition in pngread.c that broke build-time
    configurations like contrib/conftest/pngcp.dfa.
    (Contributed by John Bowler)
  * Added CMake build support for LoongArch LSX.
    (Contributed by GuXiWei)
  * Fixed a CMake build error that occurred under a peculiar state of the
    dependency tree. This was a regression introduced in libpng-1.6.41.
    (Contributed by Dan Rosser)
  * Marked the installed libpng headers as system headers in CMake.
    (Contributed by Benjamin Buch)
  * Updated the build support for RISCOS.
    (Contributed by Cameron Cawley)
  * Updated the makefiles to allow cross-platform builds to initialize
    conventional make variables like AR and ARFLAGS.
  * Added various improvements to the CI scripts in areas like version
    consistency verification and text linting.
  * Added version consistency verification to pngtest.c also.

OBS-URL: https://build.opensuse.org/request/show/1155898
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=54
2024-03-08 17:07:47 +00:00
d4ab427613 checkin
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=144
2024-03-07 12:37:01 +00:00
Ana Guerrero
7667049c2a Accepting request 1147522 from graphics
Update libpng to 1.6.42 (forwarded request 1147257 from yannboyer_dev)

OBS-URL: https://build.opensuse.org/request/show/1147522
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=53
2024-02-21 16:51:51 +00:00
6865cc196b Accepting request 1147257 from home:yannboyer_dev
Update libpng to 1.6.42

OBS-URL: https://build.opensuse.org/request/show/1147257
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=142
2024-02-19 08:38:22 +00:00
Ana Guerrero
f68739b3f7 Accepting request 1138083 from graphics
- fixes [bsc#1121624] CVE-2019-6129 and [bsc#1124211] CVE-2019-7317

OBS-URL: https://build.opensuse.org/request/show/1138083
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=52
2024-01-12 22:44:17 +00:00
6a2e844fb9 - fixes [bsc#1121624] CVE-2019-6129 and [bsc#1124211] CVE-2019-7317
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=140
2024-01-11 09:14:22 +00:00
Dominique Leuenberger
d32cd36eea Accepting request 1094850 from graphics
- Update to version 1.6.40:
  * Fixed the eXIf chunk multiplicity checks.
  * Fixed a memory leak in pCAL processing.
  * Corrected the validity report about tRNS inside png_get_valid().
  * Fixed various build issues on *BSD, Mac and Windows.
  * Updated the configurations and the scripts for continuous integration.
  * Cleaned up the code, the build scripts, and the documentation. (forwarded request 1094720 from pluskalm)

OBS-URL: https://build.opensuse.org/request/show/1094850
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=51
2023-06-24 18:13:31 +00:00
65cbf1f0a9 Accepting request 1094720 from home:pluskalm:branches:graphics
- Update to version 1.6.40:
  * Fixed the eXIf chunk multiplicity checks.
  * Fixed a memory leak in pCAL processing.
  * Corrected the validity report about tRNS inside png_get_valid().
  * Fixed various build issues on *BSD, Mac and Windows.
  * Updated the configurations and the scripts for continuous integration.
  * Cleaned up the code, the build scripts, and the documentation.

OBS-URL: https://build.opensuse.org/request/show/1094720
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=138
2023-06-23 10:55:10 +00:00
Dominique Leuenberger
3946498b5d Accepting request 1087176 from graphics
- do not use NEON instructions [bsc#1211176]

OBS-URL: https://build.opensuse.org/request/show/1087176
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=50
2023-05-16 12:15:47 +00:00
e7ad2c9d7b - do not use NEON instructions [bsc#1211176]
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=136
2023-05-15 07:31:22 +00:00
Dominique Leuenberger
dc50fe740a Accepting request 1080488 from graphics
- Fix license tag to libpng-2.0. (forwarded request 1080481 from fcrozat)

OBS-URL: https://build.opensuse.org/request/show/1080488
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=49
2023-04-21 12:15:44 +00:00
7f2791a459 Accepting request 1080481 from home:fcrozat:branches:graphics
- Fix license tag to libpng-2.0.

OBS-URL: https://build.opensuse.org/request/show/1080481
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=134
2023-04-20 07:31:42 +00:00
Dominique Leuenberger
d303d46d33 Accepting request 1062455 from graphics
- Fix build: some*.la files are symlinks. Adjust spec to use
   find -type f,l (forwarded request 1062444 from dimstar)

OBS-URL: https://build.opensuse.org/request/show/1062455
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=48
2023-02-02 17:07:37 +00:00
8fab1a6c5e Accepting request 1062444 from home:dimstar:Factory
- Fix build: some*.la files are symlinks. Adjust spec to use
   find -type f,l

OBS-URL: https://build.opensuse.org/request/show/1062444
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=132
2023-02-01 13:25:02 +00:00
7ba6a54afe Accepting request 1062412 from home:dirkmueller:Factory
- switch to pkgconfig(zlib) to allow alternative providers as well
- build with glibc hwcaps optimized libs

OBS-URL: https://build.opensuse.org/request/show/1062412
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=131
2023-02-01 09:28:53 +00:00
Dominique Leuenberger
4e82b1b65e Accepting request 1038197 from graphics
- Update to version 1.6.39:
  * cmake: Default to PNG_ARM_NEON=off for arm targets.
  + Turn large PNG chunks into benign errors.
  + Update, rename and clean up various scripts.
  + tools: Fix a buffer overflow involving a file name in pngfix.
  + tools: Fix a memory leak in pngcp. (forwarded request 1038184 from dimstar)

OBS-URL: https://build.opensuse.org/request/show/1038197
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=47
2022-11-26 17:45:07 +00:00
85fafee4d4 Accepting request 1038184 from home:dimstar:Factory
- Update to version 1.6.39:
  * cmake: Default to PNG_ARM_NEON=off for arm targets.
  + Turn large PNG chunks into benign errors.
  + Update, rename and clean up various scripts.
  + tools: Fix a buffer overflow involving a file name in pngfix.
  + tools: Fix a memory leak in pngcp.

OBS-URL: https://build.opensuse.org/request/show/1038184
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=129
2022-11-25 12:19:00 +00:00
Dominique Leuenberger
d69bcdca2d Accepting request 1007169 from graphics
OBS-URL: https://build.opensuse.org/request/show/1007169
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=46
2022-10-03 11:44:20 +00:00
Stephan Kulow
2dd89d15a5 Accepting request 1007088 from home:dirkmueller:Factory
- update to 1.6.38:
  * Added configurations and scripts for continuous integration.
  * Fixed various errors in the handling of tRNS, hIST and eXIf.
  * Implemented many stability improvements across all platforms.
  * Updated the internal documentation.

OBS-URL: https://build.opensuse.org/request/show/1007088
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=127
2022-09-30 07:03:18 +00:00
Dominique Leuenberger
be71ef1692 Accepting request 976272 from graphics
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/976272
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=45
2022-05-12 20:58:12 +00:00
b5e69da6cc - switch source url to https
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=125
2022-05-04 09:10:56 +00:00
Dominique Leuenberger
248fcca93e Accepting request 890905 from graphics
- install rpm macros in %{_rpmmacrodir} [bsc#1185661]
- call spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/890905
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=44
2021-05-08 20:07:10 +00:00
49208e9728 OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=123 2021-05-06 07:41:07 +00:00
d9882e71dd - install rpm macros in %{_rpmmacrodir} [bsc#1185661]
- call spec-cleaner

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=122
2021-05-06 06:53:29 +00:00
Richard Brown
b23e801a3b Accepting request 878473 from graphics
Enable SSE optimizations. They are not enabled by default in configure-based builds (see the INSTALL file). (forwarded request 878383 from llunak)

OBS-URL: https://build.opensuse.org/request/show/878473
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=43
2021-03-16 14:43:42 +00:00
53b8c15b0b Accepting request 878383 from home:llunak:branches:graphics
Enable SSE optimizations. They are not enabled by default in configure-based builds (see the INSTALL file).

OBS-URL: https://build.opensuse.org/request/show/878383
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=120
2021-03-12 07:30:35 +00:00
Dominique Leuenberger
edf2d65594 Accepting request 694940 from graphics
- make check actually works under asan

- version update to 1.6.37
  Fixed a use-after-free vulnerability (CVE-2019-7317) in png_image_free.
  Fixed a memory leak in the ARM NEON implementation of png_do_expand_palette.
  Fixed a memory leak in pngtest.c.
  Fixed two vulnerabilities (CVE-2018-14048, CVE-2018-14550) in
    contrib/pngminus; refactor.
  Changed the license of contrib/pngminus to MIT; refresh makefile and docs.
    (Contributed by Willem van Schaik)
  Added makefiles for AddressSanitizer-enabled builds.
- deleted patches
  - libpng-arm-free.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/694940
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=42
2019-04-18 11:57:46 +00:00
7550ad9f8d - make check actually works under asan
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=118
2019-04-17 06:29:38 +00:00
94fadb06fa - version update to 1.6.37
Fixed a use-after-free vulnerability (CVE-2019-7317) in png_image_free.
  Fixed a memory leak in the ARM NEON implementation of png_do_expand_palette.
  Fixed a memory leak in pngtest.c.
  Fixed two vulnerabilities (CVE-2018-14048, CVE-2018-14550) in
    contrib/pngminus; refactor.
  Changed the license of contrib/pngminus to MIT; refresh makefile and docs.
    (Contributed by Willem van Schaik)
  Added makefiles for AddressSanitizer-enabled builds.
- deleted patches
  - libpng-arm-free.patch (upstreamed)

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=117
2019-04-15 15:03:17 +00:00
Stephan Kulow
003ccb84a9 Accepting request 669458 from graphics
- fix arm build [bsc#1121829]
  + libpng-arm-free.patch

- asan_build: build ASAN included
- debug_build: build more suitable for debugging, install pngcp

OBS-URL: https://build.opensuse.org/request/show/669458
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=41
2019-02-04 20:24:19 +00:00
b7377afde8 OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=115 2019-01-29 08:09:10 +00:00
774495c1ae - fix arm build [bsc#1121829]
+ libpng-arm-free.patch

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=114
2019-01-28 11:50:38 +00:00
2642e3f1d9 - asan_build: build ASAN included
- debug_build: build more suitable for debugging, install pngcp

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=113
2019-01-14 14:31:27 +00:00
Dominique Leuenberger
1ac70aeccb Accepting request 662196 from graphics
- update to 1.6.36:
   Replaced the remaining uses of png_size_t with size_t (Cosmin)
    Fixed the calculation of row_factor in png_check_chunk_length
      (reported by Thuan Pham in SourceForge issue #278)
    Added missing parentheses to a macro definition
      (suggested by "irwir" in GitHub issue #216)
    Optimized png_do_expand_palette for ARM processors.
    Improved performance by around 10-22% on a recent ARM Chromebook.
    (Contributed by Richard Townsend, ARM Holdings)
    Fixed manipulation of machine-specific optimization options.
    (Contributed by Vicki Pfau)
    Used memcpy instead of manual pointer arithmetic on Intel SSE2.
    (Contributed by Samuel Williams)
    Fixed build errors with MSVC on ARM64.
    (Contributed by Zhijie Liang)
    Fixed detection of libm in CMakeLists.
    (Contributed by Cameron Cawley)
    Fixed incorrect creation of pkg-config file in CMakeLists.
    (Contributed by Kyle Bentley)
    Fixed the CMake build on Windows MSYS by avoiding symlinks.
    Fixed a build warning on OpenBSD.
    (Contributed by Theo Buehler)
    Fixed various typos in comments.
    (Contributed by "luz.paz")
    Raised the minimum required CMake version from 3.0.2 to 3.1.
    Removed yet more of the vestigial support for pre-ANSI C compilers.
    Removed ancient makefiles for ancient systems that have been broken
    across all previous libpng-1.6.x versions.
    Removed the Y2K compliance statement and the export control
    information.

OBS-URL: https://build.opensuse.org/request/show/662196
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=40
2019-01-03 17:05:24 +00:00
7d96e07570 - update to 1.6.36:
Replaced the remaining uses of png_size_t with size_t (Cosmin)
    Fixed the calculation of row_factor in png_check_chunk_length
      (reported by Thuan Pham in SourceForge issue #278)
    Added missing parentheses to a macro definition
      (suggested by "irwir" in GitHub issue #216)
    Optimized png_do_expand_palette for ARM processors.
    Improved performance by around 10-22% on a recent ARM Chromebook.
    (Contributed by Richard Townsend, ARM Holdings)
    Fixed manipulation of machine-specific optimization options.
    (Contributed by Vicki Pfau)
    Used memcpy instead of manual pointer arithmetic on Intel SSE2.
    (Contributed by Samuel Williams)
    Fixed build errors with MSVC on ARM64.
    (Contributed by Zhijie Liang)
    Fixed detection of libm in CMakeLists.
    (Contributed by Cameron Cawley)
    Fixed incorrect creation of pkg-config file in CMakeLists.
    (Contributed by Kyle Bentley)
    Fixed the CMake build on Windows MSYS by avoiding symlinks.
    Fixed a build warning on OpenBSD.
    (Contributed by Theo Buehler)
    Fixed various typos in comments.
    (Contributed by "luz.paz")
    Raised the minimum required CMake version from 3.0.2 to 3.1.
    Removed yet more of the vestigial support for pre-ANSI C compilers.
    Removed ancient makefiles for ancient systems that have been broken
    across all previous libpng-1.6.x versions.
    Removed the Y2K compliance statement and the export control
    information.

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=111
2018-12-31 09:48:16 +00:00
Dominique Leuenberger
39ea93d749 Accepting request 626863 from graphics
- security update:
  * CVE-2018-13785 [bsc#1100687]
    + libpng16-CVE-2018-13785.patch

OBS-URL: https://build.opensuse.org/request/show/626863
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=39
2018-08-07 07:39:30 +00:00
017efe162c - security update:
* CVE-2018-13785 [bsc#1100687]
    + libpng16-CVE-2018-13785.patch

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=109
2018-08-01 08:04:03 +00:00
Dominique Leuenberger
b2d60cd160 Accepting request 573091 from graphics
- %{libname} package provides libpng = %{version} again 
  [bsc#1079342]

OBS-URL: https://build.opensuse.org/request/show/573091
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=38
2018-02-09 14:43:21 +00:00
b4f19dc98b - %{libname} package provides libpng = %{version} again
[bsc#1079342]

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=107
2018-02-05 15:36:37 +00:00
Dominique Leuenberger
9ffc4f8852 Accepting request 571330 from graphics
- check with -j1

- Fix SRPM group and grammar issues.

- removed obsoleted Obsoletes

- update to 1.6.34:
  * Removed contrib/pngsuite/i*.png; some of these were incorrect
    and caused test failures.
- includes 1.6.33:
  * Added PNGMINUS_UNUSED macro to contrib/pngminus/p*.c and added
    missing parenthesis in contrib/pngminus/pnm2png.c
  * Fixed off-by-one error in png_do_check_palette_indexes()
  * Initialize png_handler.row_ptr in libpng_read_fuzzer.cc
    to fix shortlived oss-fuzz issue 3234.
  * Compute a larger limit on IDAT because some applications write
    a deflate buffer for each row
  * Use current date (DATE) instead of release-date (RDATE) in last
    changed date of contrib/oss-fuzz files.
  * Enabled ARM support in CMakeLists.txt
  * Fixed incorrect typecast of some arguments to png_malloc() and
    png_calloc() that were png_uint_32 instead of png_alloc_size_t
  * Use pnglibconf.h.prebuilt when building for ANDROID with cmake
  * Initialize memory allocated by png_inflate to zero, using
    memset, to stop an oss-fuzz "use of uninitialized value"
    detection in png_set_text_2() due to truncated iTXt or zTXt
    chunk.
  * Initialize memory allocated by png_read_buffer to zero, using
    memset, to stop an oss-fuzz "use of uninitialized value"
    detection in png_icc_check_tag_table() due to truncated iCCP

OBS-URL: https://build.opensuse.org/request/show/571330
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=37
2018-02-01 20:26:04 +00:00
dae74ca9f5 - check with -j1
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=105
2018-01-31 09:58:12 +00:00
967757aa6d Accepting request 571243 from home:jengelh:branches:graphics
- Fix SRPM group and grammar issues.

OBS-URL: https://build.opensuse.org/request/show/571243
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=104
2018-01-31 08:52:07 +00:00
cb9da2686a - removed obsoleted Obsoletes
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=103
2018-01-30 15:32:56 +00:00
e4eeecccf9 Accepting request 570288 from home:avindra
- update to 1.6.34:
  * Removed contrib/pngsuite/i*.png; some of these were incorrect
    and caused test failures.
- includes 1.6.33:
  * Added PNGMINUS_UNUSED macro to contrib/pngminus/p*.c and added
    missing parenthesis in contrib/pngminus/pnm2png.c
  * Fixed off-by-one error in png_do_check_palette_indexes()
  * Initialize png_handler.row_ptr in libpng_read_fuzzer.cc
    to fix shortlived oss-fuzz issue 3234.
  * Compute a larger limit on IDAT because some applications write
    a deflate buffer for each row
  * Use current date (DATE) instead of release-date (RDATE) in last
    changed date of contrib/oss-fuzz files.
  * Enabled ARM support in CMakeLists.txt
  * Fixed incorrect typecast of some arguments to png_malloc() and
    png_calloc() that were png_uint_32 instead of png_alloc_size_t
  * Use pnglibconf.h.prebuilt when building for ANDROID with cmake
  * Initialize memory allocated by png_inflate to zero, using
    memset, to stop an oss-fuzz "use of uninitialized value"
    detection in png_set_text_2() due to truncated iTXt or zTXt
    chunk.
  * Initialize memory allocated by png_read_buffer to zero, using
    memset, to stop an oss-fuzz "use of uninitialized value"
    detection in png_icc_check_tag_table() due to truncated iCCP
    chunk.
  * Removed redundant tests
  * Added an interlaced version of each file in contrib/pngsuite.
  * Relocate new memset() call in pngrutil.c
  * Add support for loading images with associated alpha in the
    Simplified API
  * Revert contrib/oss-fuzz/libpng_read_fuzzer.cc to libpng-1.6.32
    state
  * Initialize png_handler.row_ptr in libpng_read_fuzzer.cc
  * Add end_info structure and png_read_end() to the libpng fuzzer
- includes 1.6.32:
  * Avoid possible NULL dereference in png_handle_eXIf when
    benign_errors are allowed. Avoid leaking the input buffer
    "eXIf_buf".
  * Eliminated png_ptr->num_exif member from pngstruct.h and added
    num_exif to arguments for png_get_eXIf() and png_set_eXIf().
  * 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().
  * 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.
  * Updated contrib/libtests/pngunknown.c with eXIf chunk.
  * Initialized btoa[] in pngstest.c
  * Stop memory leak when returning from png_handle_eXIf() with an
    error
  * Replaced local eXIf_buf with info_ptr-eXIf_buf in png_handle_eXIf().
  * Update libpng.3 and libpng-manual.txt about eXIf functions.
  * Restored png_get_eXIf() and png_set_eXIf() to maintain API
    compatability.
  * Removed png_get_eXIf_1() and png_set_eXIf_1().
  * Check length of all chunks except IDAT against user limit to
    fix an OSS-fuzz issue (Fixes CVE-2017-12652)
  * Check length of IDAT against maximum possible IDAT size,
    accounting for height, rowbytes, interlacing and zlib/deflate
    overhead.
  * Restored png_get_eXIf_1() and png_set_eXIf_1(), because
    strlen(eXIf_buf) does not work (the eXIf chunk data can
    contain zeroes).
  * Revised symlink creation, no longer using deprecated cmake
    LOCATION feature
  * Fixed five-byte error in the calculation of IDAT maximum
    possible size.
  * Moved chunk-length check into a png_check_chunk_length()
    private function
  * 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.
  * Require cmake-3.0.2 in CMakeLists.txt
  * Fix "const" declaration info_ptr argument to png_get_eXIf_1()
    and the num_exif argument to png_get_eXIf_1()
  * Added "eXIf" to "chunks_to_ignore[]" in png_set_keep_unknown_chunks().
  * Added huge_IDAT.png and empty_ancillary_chunks.png to
    testpngs/crashers.
  * Make pngtest --strict, --relax, --xfail options imply -m
    (multiple).
  * Removed unused chunk_name parameter from png_check_chunk_length().
  * Relocated setting free_me for eXIf data, to stop an OSS-fuzz'
    leak.
  * Initialize profile_header[] in png_handle_iCCP() to fix
    OSS-fuzz issue.
  * Initialize png_ptr->row_buf[0] to 255 in png_read_row() to fix
    OSS-fuzz UMR.
  * Attempt to fix a UMR in png_set_text_2() to fix OSS-fuzz issue.
  * Increase minimum zlib stream from 9 to 14 in png_handle_iCCP(),
    to account for the minimum 'deflate' stream, and relocate the
    test to a point after the keyword has been read.
  * Check that the eXIf chunk has at least 2 bytes and begins with
    "II" or "MM".
  * Added a set of "huge_xxxx_chunk.png" files to
    contrib/testpngs/crashers, one for each known chunk type, with
    length = 2GB-1.
  * Check for 0 return from png_get_rowbytes() and added some
    (size_t) typecasts in contrib/pngminus/*.c to stop some Coverity
    issues (162705, 162706, and 162707).
  * Renamed chunks in contrib/testpngs/crashers to avoid having
    files whose names differ only in case; this causes problems with
    some platforms
  * Added contrib/oss-fuzz directory which contains files used by
    the oss-fuzz project
- cleanup with spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/570288
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=102
2018-01-29 06:59:18 +00:00
Yuchen Lin
096fdd65d9 Accepting request 514898 from graphics
- update to 1.6.31:
  * Guard the definition of _POSIX_SOURCE in pngpriv.h.
  * Revised pngpriv.h to work around failure to compile 
    arm/filter_neon.S.
  * Added "Requires: zlib" to libpng.pc.in.
  * Added special case for FreeBSD in arm/filter_neon.S.
  * Changed "int" to "png_size_t" in intel/filter_sse2.c to prevent
    possible integer overflow.
  * Added eXIf chunk support.
- remove upstreamed
  0001-libpng16-Revised-pngpriv.h-to-use-PNG_VERSION_INFO_O.patch

OBS-URL: https://build.opensuse.org/request/show/514898
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=36
2017-08-12 17:42:48 +00:00
4f461efd3c - update to 1.6.31:
* Guard the definition of _POSIX_SOURCE in pngpriv.h.
  * Revised pngpriv.h to work around failure to compile 
    arm/filter_neon.S.
  * Added "Requires: zlib" to libpng.pc.in.
  * Added special case for FreeBSD in arm/filter_neon.S.
  * Changed "int" to "png_size_t" in intel/filter_sse2.c to prevent
    possible integer overflow.
  * Added eXIf chunk support.
- remove upstreamed
  0001-libpng16-Revised-pngpriv.h-to-use-PNG_VERSION_INFO_O.patch

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=100
2017-08-07 09:56:16 +00:00
Dominique Leuenberger
80e8487821 Accepting request 511589 from graphics
1

OBS-URL: https://build.opensuse.org/request/show/511589
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=35
2017-07-30 09:25:32 +00:00
Ismail Dönmez
d230136457 Accepting request 511457 from home:StefanBruens:branches:graphics
OBS-URL: https://build.opensuse.org/request/show/511457
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=98
2017-07-20 09:32:06 +00:00
58b3c5b66a - Add 0001-libpng16-Revised-pngpriv.h-to-use-PNG_VERSION_INFO_O.patch
Fix build on ARM

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=97
2017-07-17 08:50:16 +00:00
1ffb7dbe30 Accepting request 509235 from home:Andreas_Schwab:Factory
- png-version-info-only.patch: fix missing PNG_VERSION_INFO_ONLY check

OBS-URL: https://build.opensuse.org/request/show/509235
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=96
2017-07-17 08:39:47 +00:00
Dominique Leuenberger
4023abfd2e Accepting request 507405 from graphics
- update to 1.6.30:
  Revised documentation of png_get_error_ptr() in the libpng manual.
  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). This
    is similar to the bug reported against pngquant in CVE-2016-5735.
  Check for integer overflow in contrib/visupng and contrib/tools/genpng.
  Do not double evaluate CMAKE_SYSTEM_PROCESSOR in CMakeLists.txt.
  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.
  Add a reference to the libpng.download site in README.

OBS-URL: https://build.opensuse.org/request/show/507405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=34
2017-07-04 09:55:09 +00:00
3063cf7ec4 - update to 1.6.30:
Revised documentation of png_get_error_ptr() in the libpng manual.
  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). This
    is similar to the bug reported against pngquant in CVE-2016-5735.
  Check for integer overflow in contrib/visupng and contrib/tools/genpng.
  Do not double evaluate CMAKE_SYSTEM_PROCESSOR in CMakeLists.txt.
  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.
  Add a reference to the libpng.download site in README.

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=94
2017-06-30 15:52:07 +00:00
Dominique Leuenberger
59b260a575 Accepting request 480726 from graphics
- update to 1.6.29:
  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.
  Added code for PowerPC VSX optimisation (Vadim Barkov).
  Avoid potential overflow of shift operations in png_do_expand() (Aaron Boxer).

OBS-URL: https://build.opensuse.org/request/show/480726
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=33
2017-03-21 21:44:49 +00:00
e223e90f15 - update to 1.6.29:
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.
  Added code for PowerPC VSX optimisation (Vadim Barkov).
  Avoid potential overflow of shift operations in png_do_expand() (Aaron Boxer).

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=92
2017-03-16 20:25:46 +00:00
Dominique Leuenberger
afd1c7eda7 Accepting request 448961 from graphics
- update to 1.6.28: fix build issues

- update to 1.6.27: fixes CVE-2016-10087

OBS-URL: https://build.opensuse.org/request/show/448961
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=32
2017-01-10 09:37:57 +00:00
ad752ef1e0 - update to 1.6.28: fix build issues
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=90
2017-01-06 08:12:51 +00:00
101773fe9a - update to 1.6.27: fixes CVE-2016-10087
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=89
2017-01-02 11:10:07 +00:00
Dominique Leuenberger
8d20c28ae4 Accepting request 436633 from graphics
- update to 1.6.26:
  Fixed handling zero length IDAT in pngfix (bug report by Agostino Sarubbo,
    bugfix by John Bowler).
  Do not issue a png_error() on read in png_set_pCAL() because
    png_handle_pCAL has allocated memory that libpng needs to free.
  Issue a png_benign_error instead of a png_error on ADLER32 mismatch
    while decoding compressed data chunks.
  Changed PNG_ZLIB_VERNUM to ZLIB_VERNUM in pngpriv.h, pngstruct.h, and
    pngrutil.c.
  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.
  Issue png_benign_error() on ADLER32 checksum mismatch instead of
    png_error().
  Updated the documentation about CRC and ADLER32 handling.
  Fixed offsets in contrib/intel/intel_sse.patch
  Changed integer constant 4294967294 to unsigned 4294967294U in pngconf.h
    to avoid a signed/unsigned compare in the preprocessor.
  Use zlib-1.2.8.1 inflateValidate() instead of inflateReset2() to
    optionally avoid ADLER32 evaluation.

OBS-URL: https://build.opensuse.org/request/show/436633
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=31
2016-10-23 10:49:58 +00:00
be9aa799a6 OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=87 2016-10-21 06:41:50 +00:00
3e860acfee - update to 1.6.26:
Fixed handling zero length IDAT in pngfix (bug report by Agostino Sarubbo,
    bugfix by John Bowler).
  Do not issue a png_error() on read in png_set_pCAL() because
    png_handle_pCAL has allocated memory that libpng needs to free.
  Issue a png_benign_error instead of a png_error on ADLER32 mismatch
    while decoding compressed data chunks.
  Changed PNG_ZLIB_VERNUM to ZLIB_VERNUM in pngpriv.h, pngstruct.h, and
    pngrutil.c.
  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.
  Issue png_benign_error() on ADLER32 checksum mismatch instead of
    png_error().
  Updated the documentation about CRC and ADLER32 handling.
  Fixed offsets in contrib/intel/intel_sse.patch
  Changed integer constant 4294967294 to unsigned 4294967294U in pngconf.h
    to avoid a signed/unsigned compare in the preprocessor.
  Use zlib-1.2.8.1 inflateValidate() instead of inflateReset2() to
    optionally avoid ADLER32 evaluation.

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=86
2016-10-20 06:18:51 +00:00
Dominique Leuenberger
282e4f3492 Accepting request 424160 from graphics
- update to 1.6.25:
  Reject oversized iCCP profile immediately.
  Conditionally compile png_inflate().
  Don't install pngcp; it conflicts with pngcp in the pngtools package.
  Added MIPS support (Mandar Sahastrabuddhe <

OBS-URL: https://build.opensuse.org/request/show/424160
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=30
2016-09-07 09:40:56 +00:00
48cdb19075 - update to 1.6.25:
Reject oversized iCCP profile immediately.
  Conditionally compile png_inflate().
  Don't install pngcp; it conflicts with pngcp in the pngtools package.
  Added MIPS support (Mandar Sahastrabuddhe <

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=84
2016-09-01 08:48:31 +00:00
Dominique Leuenberger
3c503bd315 Accepting request 416863 from graphics
- update to 1.6.24:
  Avoid potential overflow of the PNG_IMAGE_SIZE macro.
  Correct filter heuristic overflow handling.
  Use a more efficient absolute value calculation on SSE2.
  Added pngcp.
  etc. see ANNOUNCE

- Update to new upstream release 1.6.23
  * Fixes a potential memleak in png_set_tRNS.
  * Fixed the progressive reader to handle empty first IDAT
    chunk properly.
  * Added tests in pngvalid.c to check zero-length IDAT chunks
    in various positions.
  * Fixed the sequential reader to handle these more robustly.
  * Corrected progressive read input buffer in pngvalid.c.
  * Moved sse2 prototype from pngpriv.h to
    contrib/intel/intel_sse.patch.
  * Fixed undefined behavior in png_push_save_buffer().
    Do not call memcpy() with a null source, even if count is zero.
  * Fixed bad link to RFC2083 in png.5.

OBS-URL: https://build.opensuse.org/request/show/416863
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=29
2016-08-06 18:36:09 +00:00
6bc0cde88a - update to 1.6.24:
Avoid potential overflow of the PNG_IMAGE_SIZE macro.
  Correct filter heuristic overflow handling.
  Use a more efficient absolute value calculation on SSE2.
  Added pngcp.
  etc. see ANNOUNCE

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=82
2016-08-04 06:31:09 +00:00
a6a00192a4 Accepting request 416808 from home:susnux:branches:graphics
Update to 1.6.23
Some possible security fixes.

OBS-URL: https://build.opensuse.org/request/show/416808
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=81
2016-08-04 06:18:33 +00:00
Dominique Leuenberger
604e97a8bd Accepting request 398278 from graphics
- update to 1.6.22:
  Added a png_image_write_to_memory() API and a number of assist macros
    to allow an application that uses the simplified API write to bypass
    stdio and write directly to memory.
  Relaxed limit checks on gamma values in pngrtran.c. 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.
  Restored "& 0xff" in png_save_uint_16() and png_save_uint_32() that
    were accidentally removed from libpng-1.6.17.
  Changed PNG_INFO_cHNK and PNG_FREE_cHNK from 0xnnnn to 0xnnnnU in png.h
    (Robert C. Seacord).
  Added INTEL-SSE2 support (Mike Klein and Matt Sarett, Google, Inc.).
  SSE filter speed improvements for bpp=3:
    memcpy-free implementations of load3() / store3().
  Added PNG_FAST_FILTERS macro (defined as
    PNG_FILTER_NONE|PNG_FILTER_SUB|PNG_FILTER_UP).

OBS-URL: https://build.opensuse.org/request/show/398278
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=28
2016-05-29 01:06:45 +00:00
32b40ffb9f - update to 1.6.22:
Added a png_image_write_to_memory() API and a number of assist macros
    to allow an application that uses the simplified API write to bypass
    stdio and write directly to memory.
  Relaxed limit checks on gamma values in pngrtran.c. 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.
  Restored "& 0xff" in png_save_uint_16() and png_save_uint_32() that
    were accidentally removed from libpng-1.6.17.
  Changed PNG_INFO_cHNK and PNG_FREE_cHNK from 0xnnnn to 0xnnnnU in png.h
    (Robert C. Seacord).
  Added INTEL-SSE2 support (Mike Klein and Matt Sarett, Google, Inc.).
  SSE filter speed improvements for bpp=3:
    memcpy-free implementations of load3() / store3().
  Added PNG_FAST_FILTERS macro (defined as
    PNG_FILTER_NONE|PNG_FILTER_SUB|PNG_FILTER_UP).

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=79
2016-05-26 15:01:34 +00:00
Dominique Leuenberger
5375ffbbf0 Accepting request 354392 from graphics
1

OBS-URL: https://build.opensuse.org/request/show/354392
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=27
2016-01-23 00:16:00 +00:00
Ismail Dönmez
e08ba90d0f Accepting request 354391 from home:jengelh:branches:graphics
- Update to new upstream release 1.6.21

OBS-URL: https://build.opensuse.org/request/show/354391
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=77
2016-01-17 14:57:18 +00:00
Dominique Leuenberger
9e790ed05a Accepting request 347335 from graphics
- update to 1.6.20:
  Avoid potential pointer overflow/underflow in png_handle_sPLT() and
    png_handle_pCAL() (Bug report by John Regehr).
  Fixed incorrect implementation of png_set_PLTE() that uses png_ptr
    not info_ptr, that left png_set_PLTE() open to the CVE-2015-8126
    vulnerability.
  Backported tests from libpng-1.7.0beta69.
  Fixed an error in handling of bad zlib CMINFO field in pngfix, found by
    American Fuzzy Lop, reported by Brian Carpenter.  inflate() doesn't
    immediately fault a bad CMINFO field; instead a 'too far back' error
    happens later (at least some times).  pngfix failed to limit CMINFO to
    the allowed values but then assumed that window_bits was in range,
    triggering an assert. The bug is mostly harmless; the PNG file cannot
    be fixed.
  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,
    where CINFO is too large, to display 'correctly' if the rest of the
    data is valid.  This provides a workaround for zlib versions where the
    error arises (ones that support the API change to use the window size
    in the stream).

OBS-URL: https://build.opensuse.org/request/show/347335
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=26
2015-12-09 18:33:24 +00:00
5646b27ba7 - update to 1.6.20:
Avoid potential pointer overflow/underflow in png_handle_sPLT() and
    png_handle_pCAL() (Bug report by John Regehr).
  Fixed incorrect implementation of png_set_PLTE() that uses png_ptr
    not info_ptr, that left png_set_PLTE() open to the CVE-2015-8126
    vulnerability.
  Backported tests from libpng-1.7.0beta69.
  Fixed an error in handling of bad zlib CMINFO field in pngfix, found by
    American Fuzzy Lop, reported by Brian Carpenter.  inflate() doesn't
    immediately fault a bad CMINFO field; instead a 'too far back' error
    happens later (at least some times).  pngfix failed to limit CMINFO to
    the allowed values but then assumed that window_bits was in range,
    triggering an assert. The bug is mostly harmless; the PNG file cannot
    be fixed.
  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,
    where CINFO is too large, to display 'correctly' if the rest of the
    data is valid.  This provides a workaround for zlib versions where the
    error arises (ones that support the API change to use the window size
    in the stream).

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=75
2015-12-03 15:14:24 +00:00
Dominique Leuenberger
0e7cee7f13 Accepting request 344157 from graphics
- update to 1.6.19:
  Fixed potential leak of png_pixels in contrib/pngminus/pnm2png.c
  Fixed uninitialized variable in contrib/gregbook/rpng2-x.c
  Fixed the recently reported 1's complement security issue.
  Fixed png_save_int_32 when int is not 2's complement by replacing
    the value that is illegal in the PNG spec, in both signed and 
    unsigned values, with 0.
 etc., see ANNOUNCE and CHANGES for details
- removed: libpng-rgb_to_gray-checks.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/344157
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=25
2015-11-17 13:21:24 +00:00
35368c612d - update to 1.6.19:
Fixed potential leak of png_pixels in contrib/pngminus/pnm2png.c
  Fixed uninitialized variable in contrib/gregbook/rpng2-x.c
  Fixed the recently reported 1's complement security issue.
  Fixed png_save_int_32 when int is not 2's complement by replacing
    the value that is illegal in the PNG spec, in both signed and 
    unsigned values, with 0.
 etc., see ANNOUNCE and CHANGES for details
- removed: libpng-rgb_to_gray-checks.patch (upstreamed)

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=73
2015-11-13 07:46:48 +00:00
Dominique Leuenberger
3d5d585ed5 Accepting request 323168 from graphics
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/323168
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=24
2015-08-17 15:26:07 +00:00
2d78fea3f9 - drop unknown configure switch
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=71
2015-08-07 14:20:27 +00:00
Dominique Leuenberger
450dc1e3a2 Accepting request 293905 from graphics
- Fixed rgb_to_gray checks and added tRNS checks to pngvalid.c.
  + libpng-rgb_to_gray-checks.patch

- updated to 1.6.17:
  Corrected the width limit calculation in png_check_IHDR().
  Removed user limits from pngfix. Also pass NULL pointers to
    png_read_row to skip the unnecessary row de-interlace stuff.
  Implement previously untested cases of libpng transforms in pngvalid.c
  Fixed byte order in 2-byte filler, in png_do_read_filler().
  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.
  Merged some parts of libpng-1.6.17beta01 and libpng-1.7.0beta47.
  Added #ifndef __COVERITY__ where needed in png.c, pngrutil.c and
    pngset.c to avoid warnings about dead code.
  Do not build png_product2() when it is unused.
  Display user limits in the output from pngtest.
  Eliminated the 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.
  Added PNG_WRITE_CUSTOMIZE_COMPRESSION_SUPPORTED macro, on by default.
  Allow user to call png_get_IHDR() with NULL arguments (Reuben Hawkins).
  Moved png_set_filter() prototype into a PNG_WRITE_SUPPORTED block
    of png.h.
  Free the unknown_chunks structure even when it contains no data.
  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).

OBS-URL: https://build.opensuse.org/request/show/293905
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=23
2015-04-07 07:27:42 +00:00
2941154e3c - updated to 1.6.17:
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=69
2015-04-01 11:11:37 +00:00
eaa7188047 - Fixed rgb_to_gray checks and added tRNS checks to pngvalid.c.
+ libpng-rgb_to_gray-checks.patch

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=68
2015-04-01 11:08:39 +00:00
e5bea13bdb - updated to 1.6.27:
Corrected the width limit calculation in png_check_IHDR().
  Removed user limits from pngfix. Also pass NULL pointers to
    png_read_row to skip the unnecessary row de-interlace stuff.
  Implement previously untested cases of libpng transforms in pngvalid.c
  Fixed byte order in 2-byte filler, in png_do_read_filler().
  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.
  Merged some parts of libpng-1.6.17beta01 and libpng-1.7.0beta47.
  Added #ifndef __COVERITY__ where needed in png.c, pngrutil.c and
    pngset.c to avoid warnings about dead code.
  Do not build png_product2() when it is unused.
  Display user limits in the output from pngtest.
  Eliminated the 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.
  Added PNG_WRITE_CUSTOMIZE_COMPRESSION_SUPPORTED macro, on by default.
  Allow user to call png_get_IHDR() with NULL arguments (Reuben Hawkins).
  Moved png_set_filter() prototype into a PNG_WRITE_SUPPORTED block
    of png.h.
  Free the unknown_chunks structure even when it contains no data.
  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).

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=67
2015-03-30 07:13:45 +00:00
Dominique Leuenberger
f43a3f5d2a Accepting request 282344 from graphics
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/282344
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=22
2015-01-23 15:18:57 +00:00
356d4a7869 - build with PNG_SAFE_LIMITS_SUPPORTED [bnc#912076], [bnc#912929]
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=65
2015-01-13 16:59:41 +00:00
Dominique Leuenberger
c10b6a4b48 Accepting request 279946 from graphics
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/279946
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=21
2015-01-08 22:20:07 +00:00
3d6e3910bf - updated to 1.6.16:
* Restored a test on width that was removed from png.c at libpng-1.6.9
    (Bug report by Alex Eubanks).
  * Fixed an overflow in png_combine_row with very wide interlaced images.

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=63
2014-12-29 14:30:26 +00:00
Dominique Leuenberger
58e3b72ad5 Accepting request 262526 from graphics
- updated to 1.6.15:
  * Avoid out-of-bounds memory access in png_user_version_check().
  * Fixed incorrect handling of the iTXt compression.
  * Free all allocated memory in pngimage.
  * Fixed array size calculations to avoid warnings.
  etc. see ANNOUNCE

OBS-URL: https://build.opensuse.org/request/show/262526
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=20
2014-11-24 10:13:17 +00:00
58e3f7658d - updated to 1.6.15:
* Avoid out-of-bounds memory access in png_user_version_check().
  * Fixed incorrect handling of the iTXt compression.
  * Free all allocated memory in pngimage.
  * Fixed array size calculations to avoid warnings.
  etc. see ANNOUNCE

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=61
2014-11-20 20:12:18 +00:00
Stephan Kulow
89d1aad626 Accepting request 245710 from graphics
- updated to 1.6.13: a "cleanup" release that have no security
  fixes or new features.

OBS-URL: https://build.opensuse.org/request/show/245710
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=18
2014-08-28 08:01:53 +00:00
8bbae2fc89 - updated to 1.6.13: a "cleanup" release that have no security
fixes or new features.

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=59
2014-08-22 05:56:30 +00:00
Stephan Kulow
d28a770632 Accepting request 236983 from graphics
- updated to 1.6.12:
  * bugfixes, almost build-related only

- updated to 1.6.11:
  * fixed CVE-2014-0333 
  * other bugfixes
- removed libpng16-1.6.9-CVE-2014-0333.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/236983
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=17
2014-06-18 05:49:36 +00:00
2c87a7b9e0 - removed libpng16-1.6.9-CVE-2014-0333.patch (upstreamed)
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=57
2014-06-12 13:58:55 +00:00
d80e3bc45a - updated to 1.6.12:
* bugfixes, almost build-related only

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=56
2014-06-12 05:44:17 +00:00
4dca59897d - updated to 1.6.11:
* fixed CVE-2014-0333 
  * other bugfixes
- removed libpng16-1.6.6-CVE-2014-0333.patch (upstreamed)

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=55
2014-06-06 06:24:33 +00:00
Tomáš Chvátal
518465b433 Accepting request 224574 from graphics
- fixed CVE-2014-0333 [bnc#866298]
- added patches:
  * libpng16-1.6.6-CVE-2014-0333.patch

OBS-URL: https://build.opensuse.org/request/show/224574
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=16
2014-03-05 14:36:32 +00:00
8f70075f41 - fixed CVE-2014-0333 [bnc#866298]
- added patches:
  * libpng16-1.6.6-CVE-2014-0333.patch

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=53
2014-03-04 10:07:50 +00:00
Tomáš Chvátal
8efa07f222 Accepting request 221207 from graphics
- updated to 1.6.9:
  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
  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.
  Rebuilt configure scripts with automake-1.14.1 and autoconf-2.69
    in the tar distributions.
  Added checks for libpng 1.5 to pngvalid.c.  This supports the use of
    this version of pngvalid in libpng 1.5
  Merged with pngvalid.c from libpng-1.7 changes to create a single
    pngvalid.c
  Merged pngrio.c, pngtrans.c, pngwio.c, and pngerror.c with libpng-1.7.0
  Merged libpng-1.7.0 changes to make no-interlace configurations work
    with test programs.
  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
  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

OBS-URL: https://build.opensuse.org/request/show/221207
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=15
2014-02-09 12:17:51 +00:00
1adff63cda - updated to 1.6.9:
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
  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.
  Rebuilt configure scripts with automake-1.14.1 and autoconf-2.69
    in the tar distributions.
  Added checks for libpng 1.5 to pngvalid.c.  This supports the use of
    this version of pngvalid in libpng 1.5
  Merged with pngvalid.c from libpng-1.7 changes to create a single
    pngvalid.c
  Merged pngrio.c, pngtrans.c, pngwio.c, and pngerror.c with libpng-1.7.0
  Merged libpng-1.7.0 changes to make no-interlace configurations work
    with test programs.
  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
  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

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=51
2014-02-07 07:38:42 +00:00
Stephan Kulow
a29aae77f5 Accepting request 212321 from graphics
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/212321
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=14
2013-12-30 09:08:40 +00:00
2c0f5fd121 - updated to 1.6.8:
Changed #ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED in pngpread.c to
    #ifdef PNG_SET_UNKNOWN_CHUNKS_SUPPORTED to be consistent with
    what is in pngpriv.h.
  Moved prototype for png_handle_unknown() in pngpriv.h outside of
    the #ifdef PNG_SET_UNKNOWN_CHUNKS_SUPPORTED/#endif block.
  Enabled WRITE_INVERT and WRITE_PACK in contrib/pngminim/encoder.
  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().
  Handle zero-length PLTE chunk or NULL palette with png_error()
    instead of png_chunk_report(), which by default issues a warning
    rather than an error, leading to later reading from a NULL pointer
    (png_ptr->palette) in png_do_expand_palette(). This is CVE-2013-6954
    and VU#650142.

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=49
2013-12-20 07:19:05 +00:00
Stephan Kulow
6f3771416a Accepting request 209137 from graphics
- png_fix macro doesn't leave *.png.fixed (which happened for correct
  PNGs) [bnc#852862] (forwarded request 209136 from pgajdos)

OBS-URL: https://build.opensuse.org/request/show/209137
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=13
2013-12-02 14:08:28 +00:00
e8380fa090 Accepting request 209136 from home:pgajdos
- png_fix macro doesn't leave *.png.fixed (which happened for correct
  PNGs) [bnc#852862]

OBS-URL: https://build.opensuse.org/request/show/209136
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=47
2013-12-02 10:30:13 +00:00
Stephan Kulow
91c7e3daf5 Accepting request 206972 from graphics
- updated to 1.6.7:
  * Revised unknown chunk code to correct several bugs in the 
    NO_SAVE_/NO_WRITE combination
  * 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
  * Revised pngvalid to generate size images with as many filters as 
    it can manage, limited by the number of rows.
  * ARM improvements/fixes

OBS-URL: https://build.opensuse.org/request/show/206972
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=12
2013-11-15 12:26:14 +00:00
1b7e4e9fb9 - updated to 1.6.7:
* Revised unknown chunk code to correct several bugs in the 
    NO_SAVE_/NO_WRITE combination
  * 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
  * Revised pngvalid to generate size images with as many filters as 
    it can manage, limited by the number of rows.
  * ARM improvements/fixes

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=45
2013-11-15 08:08:26 +00:00
Stephan Kulow
412948805b Accepting request 200515 from graphics
- updated to 1.6.6:
  * fix arm build

OBS-URL: https://build.opensuse.org/request/show/200515
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=11
2013-09-26 17:35:54 +00:00
4fbe20120f - updated to 1.6.6:
* fix arm build

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=43
2013-09-25 08:09:16 +00:00
Tomáš Chvátal
3b4cf14ad4 Accepting request 198692 from graphics
- updated to 1.6.4:
  * Added information about png_set_options() to the manual.
  * Delay calling png_init_filter_functions() until a row with nonzero 
    filter is found.
  * Fixed inconsistent conditional compilation of 
    png_chunk_unknown_handling() prototype, definition, and usage.  
    Made it depend on PNG_HANDLE_AS_UNKNOWN_SUPPORTED everywhere.

OBS-URL: https://build.opensuse.org/request/show/198692
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=9
2013-09-13 12:43:29 +00:00
acbce60e57 - updated to 1.6.4:
* Added information about png_set_options() to the manual.
  * Delay calling png_init_filter_functions() until a row with nonzero 
    filter is found.
  * Fixed inconsistent conditional compilation of 
    png_chunk_unknown_handling() prototype, definition, and usage.  
    Made it depend on PNG_HANDLE_AS_UNKNOWN_SUPPORTED everywhere.

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=41
2013-09-12 13:30:38 +00:00
Stephan Kulow
ee19a4e88e - remove gpg-offline usage, libpng16 is too low in the build chain
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=38
2013-08-30 15:20:56 +00:00
Stephan Kulow
7b286b7b5c just for testing
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=37
2013-08-30 14:24:02 +00:00
Stephan Kulow
2789fcea8a Accepting request 196892 from graphics
- remove gpg-offline usage, libpng16 is too low in the build chain

OBS-URL: https://build.opensuse.org/request/show/196892
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=8
2013-08-30 14:11:44 +00:00
Stephan Kulow
37397dfd58 - remove gpg-offline usage, libpng16 is too low in the build chain
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=36
2013-08-30 14:11:27 +00:00
Tomáš Chvátal
638ed29677 Accepting request 186422 from graphics
- png-fix-too-far-back was actually renamed to pngfix. Adjusted rpm 
  macro names accordingly, %png_fix and %png_fix_dir.

- updated to 1.6.3:
  * Added png-fix-itxt and png-fix-too-far-back to the built programs and
      removed warnings from the source code and timepng that are revealed as
      a result.
  => new subpackage tools, created rpm macros

OBS-URL: https://build.opensuse.org/request/show/186422
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=7
2013-08-13 09:00:59 +00:00
f73866b052 - png-fix-too-far-back was actually renamed to pngfix. Adjusted rpm
macro names accordingly, %png_fix and %png_fix_dir.

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=33
2013-08-08 15:21:08 +00:00
5b397eb2af - updated to 1.6.3:
* Added png-fix-itxt and png-fix-too-far-back to the built programs and
      removed warnings from the source code and timepng that are revealed as
      a result.
  => new subpackage tools, created rpm macros

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=32
2013-08-06 08:57:14 +00:00
2c6d9e3de3 OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=31 2013-07-18 08:08:00 +00:00
Stephan Kulow
d14bcb763b Accepting request 180615 from graphics
- Build with LFS_CFLAGS in 32 bit archs otherwise calls such 
 as png_image_begin_read_from_file() or png_image_write_to_file()
 will fail to read/write huge images.
- Build with Full RELRO as this library is a possible consumer
  of malicuous images/files. (forwarded request 180468 from elvigia)

OBS-URL: https://build.opensuse.org/request/show/180615
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=6
2013-06-24 07:34:09 +00:00
Dr. Werner Fink
a1dab95854 Accepting request 180468 from home:elvigia:branches:graphics
- Build with LFS_CFLAGS in 32 bit archs otherwise calls such 
 as png_image_begin_read_from_file() or png_image_write_to_file()
 will fail to read/write huge images.
- Build with Full RELRO as this library is a possible consumer
  of malicuous images/files.

OBS-URL: https://build.opensuse.org/request/show/180468
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=29
2013-06-22 21:47:51 +00:00
Stephan Kulow
6af02f4796 Accepting request 173433 from graphics
- updated to 1.6.2:
  Updated documentation of 1.5.x to 1.6.x changes in iCCP chunk handling.
  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.
  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.
  Corrected a misplaced closing bracket in contrib/libtests/pngvalid.c
    (Flavio Medeiros).
  Corrected length written to uncompressed iTXt chunks (Samuli Suominen).
  Added contrib/tools/fixitxt.c, to repair the erroneous iTXt chunk length
    written by libpng-1.6.0 and 1.6.1.
  Disallow storing sRGB information when the sRGB is not supported.
  Merge pngtest.c with libpng-1.7.0

OBS-URL: https://build.opensuse.org/request/show/173433
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=5
2013-04-26 11:27:36 +00:00
5f57c77f76 - updated to 1.6.2:
Updated documentation of 1.5.x to 1.6.x changes in iCCP chunk handling.
  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.
  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.
  Corrected a misplaced closing bracket in contrib/libtests/pngvalid.c
    (Flavio Medeiros).
  Corrected length written to uncompressed iTXt chunks (Samuli Suominen).
  Added contrib/tools/fixitxt.c, to repair the erroneous iTXt chunk length
    written by libpng-1.6.0 and 1.6.1.
  Disallow storing sRGB information when the sRGB is not supported.
  Merge pngtest.c with libpng-1.7.0

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=27
2013-04-26 07:19:24 +00:00
Stephan Kulow
16784fd367 Accepting request 162341 from graphics
- conflict with libpng12-compat-devel-32bit and libpng15-compat-devel-32bit

- updated to 1.6.1:
  Made sRGB check numbers consistent.
  Use parentheses more consistently in "#if defined(MACRO)" tests.
  Reenabled code to allow zero length PLTE chunks for MNG.
  Fixed ALIGNED_MEMORY support.
  Avoid a possible memory leak in contrib/gregbook/readpng.c
  Better documentation of unknown handling API interactions.
  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.
  etc., see ANNOUNCE or CHANGES for details
- dropped upstreamed 
  0387-Reenable-code-to-allow-zero-length-PLTE-chunks-for-M.patch

OBS-URL: https://build.opensuse.org/request/show/162341
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=4
2013-04-05 05:34:57 +00:00
e5fa3a0c24 OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=25 2013-04-03 07:55:03 +00:00
36eb8d4222 - conflict with libpng12-compat-devel-32bit and libpng15-compat-devel-32bit
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=24
2013-04-02 13:36:34 +00:00
6c0fa4064a - updated to 1.6.1:
Made sRGB check numbers consistent.
  Use parentheses more consistently in "#if defined(MACRO)" tests.
  Reenabled code to allow zero length PLTE chunks for MNG.
  Fixed ALIGNED_MEMORY support.
  Avoid a possible memory leak in contrib/gregbook/readpng.c
  Better documentation of unknown handling API interactions.
  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.
  etc., see ANNOUNCE or CHANGES for details
- dropped upstreamed 
  0387-Reenable-code-to-allow-zero-length-PLTE-chunks-for-M.patch

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=23
2013-03-28 08:19:25 +00:00
Stephan Kulow
7233c26351 Accepting request 159789 from graphics
- allow zero length PLTE chunks
  (fixes GraphicsMagick testsuite) (forwarded request 159787 from pgajdos)

OBS-URL: https://build.opensuse.org/request/show/159789
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=3
2013-03-20 08:53:14 +00:00
b47f310c18 Accepting request 159787 from home:pgajdos:libpng16
- allow zero length PLTE chunks
  (fixes GraphicsMagick testsuite)

OBS-URL: https://build.opensuse.org/request/show/159787
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=21
2013-03-18 11:54:03 +00:00
Stephan Kulow
71f2a183b9 Accepting request 158541 from graphics
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/158541
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=2
2013-03-15 09:41:14 +00:00
Stephan Kulow
0c000f7a03 Accepting request 156851 from graphics
libpng 1.6.0

OBS-URL: https://build.opensuse.org/request/show/156851
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpng16?expand=0&rev=1
2013-03-11 09:18:23 +00:00
1ea63dd29f - remove clean section
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=18
2013-03-04 07:50:59 +00:00
86fba648a5 OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=17 2013-03-04 07:50:14 +00:00
6f57a42e3a - updated to 1.6.0
- changes from 1.5.x to 1.6.x:
  * new simplified api added:
    macros:
     PNG_FORMAT_*
     PNG_IMAGE_*
    structures:
     png_control
     png_image
    read functions
     png_image_begin_read_from_file()
     png_image_begin_read_from_stdio()
     png_image_begin_read_from_memory()
     png_image_finish_read()
     png_image_free()
    write functions
     png_image_write_to_file()
     png_image_write_to_stdio()
  * possibility to configure libpng to prefix all exported symbols
    (PNG_PREFIX macro)
  * no longer include string.h in png.h
  * deprecated api:
    png_info_init_3()
    png_convert_to_rfc1123() which has been replaced
      with png_convert_to_rfc1123_buffer()
    png_data_freer()
    png_malloc_default()
    png_free_default()
    png_reset_zstream()
  * removed api:

OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=16
2013-02-14 08:04:57 +00:00
5eba2ad7bb - updated to 1.6.0beta37
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=15
2013-01-14 09:53:02 +00:00
9ae76ed887 - updated to 1.6.0beta31
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=14
2012-11-20 12:47:12 +00:00
OBS User mrdocs
48993c25c5 Accepting request 139208 from home:jengelh:branches:graphics
- Add missing baselib requires for compat-devel-32bit

OBS-URL: https://build.opensuse.org/request/show/139208
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=13
2012-10-25 21:13:09 +00:00
a3f606ea43 - updated to 1.6.0beta29
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=12
2012-10-15 12:01:48 +00:00
8c5e18c218 - updated to 1.6.0beta26
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=11
2012-07-11 09:33:22 +00:00
04782455b3 - updated to 1.6.0beta24
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=10
2012-06-15 10:57:13 +00:00
038fca5a81 - updated to 1.6.0beta20
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=9
2012-03-29 13:16:43 +00:00
fa60345a15 OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=8 2012-03-14 11:29:56 +00:00
53280609b5 - updated to 1.6.0beta17
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=7
2012-03-14 11:29:43 +00:00
938be708ba OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=6 2012-02-20 10:09:35 +00:00
64cfea76e2 OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=5 2012-02-20 10:02:54 +00:00
3b0d1f4212 - updated to 1.6.0beta12
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=4
2012-02-20 09:57:32 +00:00
93ba65dce2 OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=3 2012-02-20 09:52:44 +00:00
2 changed files with 0 additions and 101 deletions

View File

@ -1,98 +0,0 @@
From ceed2a3cf6af420a0782e7f6147d5965b01b772a Mon Sep 17 00:00:00 2001
From: John Bowler <jbowler@acm.org>
Date: Thu, 30 May 2024 07:53:42 -0700
Subject: [PATCH] SECURITY: disable build of filter_neon.S on arm
This fixes the bug https://github.com/pnggroup/libpng/issues/505
"libpng does not support PAC/BTI on aarch64 targets" which arises
because the build mechanisms (both cmake and configure) assemble
arm/filter_neon.S even though it ends up completely empty. The empty
file effectively poisons the so that the PAC/BTI support gets disabled.
The fix is minimal; it simply removes arm/filter_neon.S from the list of
sources included in the 64-bit ARM builds build. Note that this was
already done in cmake for MSVC - it's not clear whether this change was
a partial fix for the same issue.
This version of the fix ONLY affects aarch64 (arm64) builds; 32-bit ARM
systems can still invoke the assembler if required and, indeed, there
should be no change whatsover to those builds.
The assembler code could not be used on 64-bit systems in any case so
in practice there is no material change to 64-bit builds either.
TESTING: pull the changes then type "autoreconf" if using configure (not
required for cmake).
TESTS: cmake has not been tested because cross-builds with cmake
currently fail to find the zlib installation from the cmake system root
path. The following has been tested with configure cross builds:
armv7-linux-gnueabi [no neon support]
armv7a-linux-gnueabi [no neon support]
armv7a-hardfloat-linux-gnueabi [neon support not enabled]
armv7a-hardfloat-linux-gnueabi -mfpu=neon [uses intrinics]
armv7a-hardfloat-linux-gnueabi -mfpu=neon
-DPNG_ARM_NEON_IMPLEMENTATION=2 [uses assembler]
aarch64-linux-gnu [uses intrinsics]
aarch64-linux-gnu -DPNG_ARM_NEON_OPT=0 [neon support disabled]
Signed-off-by: John Bowler <jbowler@acm.org>
---
CMakeLists.txt | 2 +-
Makefile.am | 6 ++++--
configure.ac | 10 ++++++++++
3 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 77e5398b6a..11bbe36d2a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -153,7 +153,7 @@ if(TARGET_ARCH MATCHES "^(ARM|arm|aarch)")
arm/arm_init.c
arm/filter_neon_intrinsics.c
arm/palette_neon_intrinsics.c)
- if(NOT MSVC)
+ if(NOT MSVC AND NOT TARGET_ARCH MATCHES "^(ARM64|arm64|aarch64)")
list(APPEND libpng_arm_sources arm/filter_neon.S)
endif()
if(PNG_ARM_NEON STREQUAL "on")
diff --git a/Makefile.am b/Makefile.am
index 1f06c703a1..5cc27a4c8f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -107,9 +107,11 @@ libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES = png.c pngerror.c\
png.h pngconf.h pngdebug.h pnginfo.h pngpriv.h pngstruct.h pngusr.dfa
if PNG_ARM_NEON
+if PNG_ARM_NEON_ASM
+libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES += arm/filter_neon.S
+endif
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES += arm/arm_init.c\
- arm/filter_neon.S arm/filter_neon_intrinsics.c \
- arm/palette_neon_intrinsics.c
+ arm/filter_neon_intrinsics.c arm/palette_neon_intrinsics.c
endif
if PNG_MIPS_MSA
diff --git a/configure.ac b/configure.ac
index 2c6b3333c6..e3c1536f0c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -425,6 +425,16 @@ AM_CONDITIONAL([PNG_ARM_NEON],
*) test "$enable_arm_neon" != '' ;;
esac])
+# Add the assembler implementation source file. This only works on 32-bit
+# ARM and causes problems even if empty on 64-bit ARM.
+AM_CONDITIONAL([PNG_ARM_NEON_ASM],
+ [test "$enable_arm_neon" != 'no' &&
+ case "$host_cpu" in
+ arm64*|aarch64*) false ;;
+ arm*) true ;;
+ *) test "$enable_arm_neon" != '' ;;
+ esac])
+
# MIPS MSA
# ========

BIN
libpng-1.6.43.tar.xz (Stored with Git LFS)

Binary file not shown.