mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
- Update to 2.0.2
- Make sure no bundled libraries are used - Update WWW
This commit is contained in:
parent
7cf9cad3a2
commit
4bef766040
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=461778
@ -1,8 +1,7 @@
|
||||
# $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}
|
||||
@ -31,4 +30,7 @@ TIFF_CONFIGURE_ENABLE= tif
|
||||
WEBP_LIB_DEPENDS= libwebp.so:graphics/webp
|
||||
WEBP_CONFIGURE_ENABLE= webp
|
||||
|
||||
post-extract:
|
||||
@${RM} -rf ${WRKSRC}/external
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -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
|
||||
|
@ -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);
|
@ -15,4 +15,4 @@ 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/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user