View | Details | Raw Unified | Return to bug 224960
Collapse All | Expand All

(-)graphics/optipng/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	optipng
4
PORTNAME=	optipng
5
PORTVERSION=	0.7.6
5
PORTVERSION=	0.7.7
6
CATEGORIES=	graphics
6
CATEGORIES=	graphics
7
MASTER_SITES=	SF/${PORTNAME}/OptiPNG/${PORTNAME}-${PORTVERSION}
7
MASTER_SITES=	SF/${PORTNAME}/OptiPNG/${PORTNAME}-${PORTVERSION}
8
8
(-)graphics/optipng/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1486685228
1
TIMESTAMP = 1515280833
2
SHA256 (optipng-0.7.6.tar.gz) = 4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80
2
SHA256 (optipng-0.7.7.tar.gz) = 4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452
3
SIZE (optipng-0.7.6.tar.gz) = 2202237
3
SIZE (optipng-0.7.7.tar.gz) = 2329555
(-)graphics/optipng/files/patch-src_pngxtern_pngxmem.c (-5 / +5 lines)
Lines 1-11 Link Here
1
--- src/pngxtern/pngxmem.c.orig	2015-04-22 09:07:30 UTC
1
--- src/pngxtern/pngxmem.c.orig	2018-01-06 23:22:33 UTC
2
+++ src/pngxtern/pngxmem.c
2
+++ src/pngxtern/pngxmem.c
3
@@ -34,7 +34,7 @@ pngx_malloc_rows_extended(png_structp pn
3
@@ -35,7 +35,7 @@ pngx_malloc_rows_extended(png_structp pn
4
       png_error(png_ptr, "Missing IHDR");
5
    row_size = png_get_rowbytes(png_ptr, info_ptr);
4
    row_size = png_get_rowbytes(png_ptr, info_ptr);
6
    /* libpng sets row_size to 0 when the width is too large to process. */
5
    /* libpng sets row_size to 0 when the width is too large to process. */
7
-   if (row_size == 0 || height > (pngx_alloc_size_t)(-1) / sizeof(png_bytep))
6
    if (row_size == 0 ||
8
+   if (row_size == 0 || height > (pngx_alloc_size_t)(-1U) / sizeof(png_bytep))
7
-       (pngx_alloc_size_t)height > (pngx_alloc_size_t)(-1) / sizeof(png_bytep))
8
+       (pngx_alloc_size_t)height > (pngx_alloc_size_t)(-1U) / sizeof(png_bytep))
9
       png_error(png_ptr, "Can't handle exceedingly large image dimensions");
9
       png_error(png_ptr, "Can't handle exceedingly large image dimensions");
10
    if (row_size < min_row_size)
10
    if (row_size < min_row_size)
11
       row_size = min_row_size;
11
       row_size = min_row_size;

Return to bug 224960