mirror of
https://git.freebsd.org/ports.git
synced 2025-07-13 15:29:15 -04:00
- Resolve backlog of CVEs PR: 201513 Reported by: Sevan Janiyan Submitted by: Jason Unovitch (maintainer) Security: CVE-2004-0941 [1] Security: CVE-2007-0455 [1] Security: CVE-2007-2756 [1] Security: CVE-2007-3472 [1] Security: CVE-2007-3473 [1] Security: CVE-2007-3477 [1] Security: CVE-2009-3546 [1] Security: CVE-2015-4695 [2] Security: CVE-2015-4696 [3] Security: CVE-2015-0848 [4] Security: CVE-2015-4588 [4] Security: ca139c7f-2a8c-11e5-a4a5-002590263bf5 Obtained From: CentOS libwmf RPM git [1] Obtained From: Debian Bug 784205 [2] Obtained From: Debian Bug 784192 [3] Obtained From: Red Hat Bug 1227243 [4] MFH: 2015Q3
17 lines
518 B
Text
17 lines
518 B
Text
--- src/extra/gd/gd_png.c 2004-11-11 14:02:37.407589824 -0500
|
|
+++ src/extra/gd/gd_png.c 2004-11-11 14:04:29.672522960 -0500
|
|
@@ -188,6 +188,14 @@
|
|
|
|
png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
|
|
&interlace_type, NULL, NULL);
|
|
+ if (overflow2(sizeof (int), width))
|
|
+ {
|
|
+ return NULL;
|
|
+ }
|
|
+ if (overflow2(sizeof (int) * width, height))
|
|
+ {
|
|
+ return NULL;
|
|
+ }
|
|
if ((color_type == PNG_COLOR_TYPE_RGB) ||
|
|
(color_type == PNG_COLOR_TYPE_RGB_ALPHA))
|
|
{
|