diff options
Diffstat (limited to 'graphics/gd/patches/patch-src_gd__webp.c')
-rw-r--r-- | graphics/gd/patches/patch-src_gd__webp.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/graphics/gd/patches/patch-src_gd__webp.c b/graphics/gd/patches/patch-src_gd__webp.c deleted file mode 100644 index de9f9bd80de..00000000000 --- a/graphics/gd/patches/patch-src_gd__webp.c +++ /dev/null @@ -1,21 +0,0 @@ -$NetBSD: patch-src_gd__webp.c,v 1.1 2016/10/05 03:10:31 taca Exp $ - -Fix for CVE-2016-7568. - ---- src/gd_webp.c.orig 2016-07-21 08:06:42.000000000 +0000 -+++ src/gd_webp.c -@@ -126,6 +126,14 @@ void gdImageWebpCtx (gdImagePtr im, gdIO - quantization = 80; - } - -+ if (overflow2(gdImageSX(im), 4)) { -+ return; -+ } -+ -+ if (overflow2(gdImageSX(im) * 4, gdImageSY(im))) { -+ return; -+ } -+ - argb = (uint8_t *)gdMalloc(gdImageSX(im) * 4 * gdImageSY(im)); - if (!argb) { - return; |