1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

graphics/optipng: Update to 0.7.7

PR:		224960
Submitted by:	Vidar Karlsen <vidar@karlsen.tech>
Approved by:	timeout expired, tcberner (mentor, implicit)
This commit is contained in:
Yuri Victorovich 2018-02-12 10:02:02 +00:00
parent 6fe0de9ba8
commit bcabb44f17
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=461572
3 changed files with 9 additions and 9 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= optipng
PORTVERSION= 0.7.6
PORTVERSION= 0.7.7
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/OptiPNG/${PORTNAME}-${PORTVERSION}

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1486685228
SHA256 (optipng-0.7.6.tar.gz) = 4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80
SIZE (optipng-0.7.6.tar.gz) = 2202237
TIMESTAMP = 1515280833
SHA256 (optipng-0.7.7.tar.gz) = 4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452
SIZE (optipng-0.7.7.tar.gz) = 2329555

View File

@ -1,11 +1,11 @@
--- src/pngxtern/pngxmem.c.orig 2015-04-22 09:07:30 UTC
--- src/pngxtern/pngxmem.c.orig 2018-01-06 23:22:33 UTC
+++ src/pngxtern/pngxmem.c
@@ -34,7 +34,7 @@ pngx_malloc_rows_extended(png_structp pn
png_error(png_ptr, "Missing IHDR");
@@ -35,7 +35,7 @@ pngx_malloc_rows_extended(png_structp pn
row_size = png_get_rowbytes(png_ptr, info_ptr);
/* libpng sets row_size to 0 when the width is too large to process. */
- if (row_size == 0 || height > (pngx_alloc_size_t)(-1) / sizeof(png_bytep))
+ if (row_size == 0 || height > (pngx_alloc_size_t)(-1U) / sizeof(png_bytep))
if (row_size == 0 ||
- (pngx_alloc_size_t)height > (pngx_alloc_size_t)(-1) / sizeof(png_bytep))
+ (pngx_alloc_size_t)height > (pngx_alloc_size_t)(-1U) / sizeof(png_bytep))
png_error(png_ptr, "Can't handle exceedingly large image dimensions");
if (row_size < min_row_size)
row_size = min_row_size;