Index: head/graphics/sdl2_image/files/patch-IMG__xcf.c =================================================================== --- head/graphics/sdl2_image/files/patch-IMG__xcf.c (revision 461777) +++ head/graphics/sdl2_image/files/patch-IMG__xcf.c (nonexistent) @@ -1,27 +0,0 @@ -Fixed security vulnerability in XCF image loader (thanks Yves!) -https://hg.libsdl.org/SDL_image/rev/318484db0705 - ---- IMG_xcf.c.orig 2016-01-03 05:52:28 UTC -+++ IMG_xcf.c -@@ -251,6 +251,7 @@ static Uint32 Swap32 (Uint32 v) { - } - - static void xcf_read_property (SDL_RWops * src, xcf_prop * prop) { -+ Uint32 len; - prop->id = SDL_ReadBE32 (src); - prop->length = SDL_ReadBE32 (src); - -@@ -274,7 +275,12 @@ static void xcf_read_property (SDL_RWops * src, xcf_pr - break; - case PROP_COMPRESSION: - case PROP_COLOR: -- SDL_RWread (src, &prop->data, prop->length, 1); -+ if (prop->length > sizeof(prop->data)) { -+ len = sizeof(prop->data); -+ } else { -+ len = prop->length; -+ } -+ SDL_RWread(src, &prop->data, len, 1); - break; - case PROP_VISIBLE: - prop->data.visible = SDL_ReadBE32 (src); Property changes on: head/graphics/sdl2_image/files/patch-IMG__xcf.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/graphics/sdl2_image/Makefile =================================================================== --- head/graphics/sdl2_image/Makefile (revision 461777) +++ head/graphics/sdl2_image/Makefile (revision 461778) @@ -1,34 +1,36 @@ # $FreeBSD$ PORTNAME= sdl2_image -PORTVERSION= 2.0.1 -PORTREVISION= 2 +PORTVERSION= 2.0.2 CATEGORIES= graphics MASTER_SITES= http://www.libsdl.org/projects/SDL_image/release/ DISTNAME= SDL2_image-${PORTVERSION} MAINTAINER= amdmi3@FreeBSD.org COMMENT= Simple library to load images of various formats as SDL surfaces LICENSE= ZLIB LICENSE_FILE= ${WRKSRC}/COPYING.txt USES= pkgconfig:build pathfix gmake libtool localbase USE_SDL= sdl2 GNU_CONFIGURE= yes INSTALL_TARGET= install-strip USE_LDCONFIG= yes OPTIONS_DEFINE= JPEG PNG TIFF WEBP OPTIONS_DEFAULT=JPEG PNG TIFF WEBP JPEG_USES= jpeg JPEG_CONFIGURE_ENABLE= jpg PNG_LIB_DEPENDS= libpng.so:graphics/png PNG_CONFIGURE_ENABLE= png TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff TIFF_CONFIGURE_ENABLE= tif WEBP_LIB_DEPENDS= libwebp.so:graphics/webp WEBP_CONFIGURE_ENABLE= webp + +post-extract: + @${RM} -rf ${WRKSRC}/external .include Index: head/graphics/sdl2_image/distinfo =================================================================== --- head/graphics/sdl2_image/distinfo (revision 461777) +++ head/graphics/sdl2_image/distinfo (revision 461778) @@ -1,2 +1,3 @@ -SHA256 (SDL2_image-2.0.1.tar.gz) = 3a3eafbceea5125c04be585373bfd8b3a18f259bd7eae3efc4e6d8e60e0d7f64 -SIZE (SDL2_image-2.0.1.tar.gz) = 7797848 +TIMESTAMP = 1518452051 +SHA256 (SDL2_image-2.0.2.tar.gz) = 72df075aef91fc4585098ea7e0b072d416ec7599aa10473719fbe51e9b8f6ce8 +SIZE (SDL2_image-2.0.2.tar.gz) = 8680980 Index: head/graphics/sdl2_image/pkg-descr =================================================================== --- head/graphics/sdl2_image/pkg-descr (revision 461777) +++ head/graphics/sdl2_image/pkg-descr (revision 461778) @@ -1,18 +1,18 @@ This is a simple library to load images of various formats as SDL surfaces. This library supports BMP, PPM, PCX, GIF, JPEG, PNG, TGA, and TIFF formats. API: #include "SDL_image.h" SDL_Surface *IMG_Load(const char *file); or SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc); or SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc, char *type); where type is a string specifying the format (i.e. "PNG" or "pcx"). Note that IMG_Load_RW cannot load TGA images. An example program 'showimage' is included, with source in showimage.c -WWW: http://www.libsdl.org/projects/SDL_image/ +WWW: https://www.libsdl.org/projects/SDL_image/ Index: head/graphics/sdl2_image/pkg-plist =================================================================== --- head/graphics/sdl2_image/pkg-plist (revision 461777) +++ head/graphics/sdl2_image/pkg-plist (revision 461778) @@ -1,6 +1,6 @@ include/SDL2/SDL_image.h lib/libSDL2_image-2.0.so.0 -lib/libSDL2_image-2.0.so.0.0.1 +lib/libSDL2_image-2.0.so.0.2.0 lib/libSDL2_image.a lib/libSDL2_image.so libdata/pkgconfig/SDL2_image.pc