summaryrefslogtreecommitdiff
path: root/user/libgd/CVE-2016-7568.patch
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2020-03-29 03:26:16 -0500
committerMax Rees <maxcrees@me.com>2020-04-05 12:22:26 +0000
commit7f8d4d642ad643f553e0fe74c0d48d59c81d178c (patch)
tree8a9062070516fe4e6b36e700133b50d0788bc531 /user/libgd/CVE-2016-7568.patch
parent6b46644d45aa93ed99163a89a4b401b6b23daa77 (diff)
downloadpackages-7f8d4d642ad643f553e0fe74c0d48d59c81d178c.tar.gz
packages-7f8d4d642ad643f553e0fe74c0d48d59c81d178c.tar.bz2
packages-7f8d4d642ad643f553e0fe74c0d48d59c81d178c.tar.xz
packages-7f8d4d642ad643f553e0fe74c0d48d59c81d178c.zip
user/libgd: [CVE] bump to 2.3.0
Diffstat (limited to 'user/libgd/CVE-2016-7568.patch')
-rw-r--r--user/libgd/CVE-2016-7568.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/user/libgd/CVE-2016-7568.patch b/user/libgd/CVE-2016-7568.patch
deleted file mode 100644
index 56156411e..000000000
--- a/user/libgd/CVE-2016-7568.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 2806adfdc27a94d333199345394d7c302952b95f Mon Sep 17 00:00:00 2001
-From: trylab <trylab@users.noreply.github.com>
-Date: Tue, 6 Sep 2016 18:35:32 +0800
-Subject: [PATCH] Fix integer overflow in gdImageWebpCtx
-
-Integer overflow can be happened in expression gdImageSX(im) * 4 *
-gdImageSY(im). It could lead to heap buffer overflow in the following
-code. This issue has been reported to the PHP Bug Tracking System. The
-proof-of-concept file will be supplied some days later. This issue was
-discovered by Ke Liu of Tencent's Xuanwu LAB.
----
- src/gd_webp.c | 8 ++++++++
- 1 file changed, 8 insertions(+)
-
-diff --git a/src/gd_webp.c b/src/gd_webp.c
-index 8eb4dee..9886399 100644
---- a/src/gd_webp.c
-+++ b/src/gd_webp.c
-@@ -199,6 +199,14 @@ BGD_DECLARE(void) gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quality)
- quality = 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;