graphics/giflib: sync with upstream

Taken from: HardenedBSD
This commit is contained in:
Franco Fichtner 2018-11-02 21:00:17 +01:00
parent e5547ff88f
commit 4fd9ffce1f
2 changed files with 0 additions and 28 deletions

View file

@ -35,11 +35,7 @@ CONFIGURE_ENV+= have_xmlto=no
.endif
.if ${OPSYS} == FreeBSD
. if ${OSVERSION} >= 1100072
EXTRA_PATCHES= ${FILESDIR}/extra-patch-unbundle-reallocarray
. else
EXTRA_PATCHES= ${FILESDIR}/extra-patch-hide-reallocarray
. endif
.elif ${OPSYS} == DragonFly
EXTRA_PATCHES= ${FILESDIR}/extra-patch-hide-reallocarray-dfly
.endif

View file

@ -1,24 +0,0 @@
--- lib/dgif_lib.c.orig 2016-04-02 15:34:00 UTC
+++ lib/dgif_lib.c
@@ -41,6 +41,9 @@ static int DGifDecompressInput(GifFileTy
static int DGifBufferedInput(GifFileType *GifFile, GifByteType *Buf,
GifByteType *NextByte);
+extern void *
+reallocarray(void *optr, size_t nmemb, size_t size) __hidden;
+
/******************************************************************************
Open a new GIF file for read, given by its name.
Returns dynamically allocated GifFileType pointer which serves as the GIF
--- lib/gifalloc.c.orig 2015-07-13 04:05:46 UTC
+++ lib/gifalloc.c
@@ -12,6 +12,9 @@
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
+extern void *
+reallocarray(void *optr, size_t nmemb, size_t size) __hidden;
+
/******************************************************************************
Miscellaneous utility functions
******************************************************************************/