Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37569338
en ru br
ALT Linux repos
5.0: 2.0.35-alt2
4.1: 2.0.35-alt1.M41.1
4.0: 2.0.35-alt1
+updates:2.0.35-alt1
3.0: 2.0.33-alt2

Group :: Graphics
RPM: gd2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: gd-2.0.33-mdk-png_get_IHDR.patch
Download


--- gd-2.0.33/gd_png.c.orig	2004-10-28 22:09:52 +0400
+++ gd-2.0.33/gd_png.c	2004-11-12 16:31:49 +0300
@@ -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))
     {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin