Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37718755
en ru br
ALT Linux repos
S:0.2.8.4-alt13
5.0: 0.2.8.4-alt6
4.1: 0.2.8.4-alt3
4.0: 0.2.8.4-alt3
3.0: 0.2.8.3-alt2

Group :: Text tools
RPM: libwmf

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: libwmf-0.2.8.3-CAN-2004-0990.patch
Download


--- libwmf-0.2.8.3/src/extra/gd/gd_png.c.can-2004-0990	2001-05-19 07:09:34.000000000 -0600
+++ libwmf-0.2.8.3/src/extra/gd/gd_png.c	2006-06-29 06:08:34.961119463 -0600
@@ -181,6 +181,14 @@ gdImageCreateFromPngCtx (gdIOCtx * infil
 
   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