Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37725404
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.4-CVE-2007-3472.patch
Download


--- libwmf-0.2.8.4/src/extra/gd/gd.c
+++ libwmf-0.2.8.4/src/extra/gd/gd.c
@@ -106,6 +106,18 @@
   gdImagePtr im;
   unsigned long cpa_size;
 
+  if (overflow2(sx, sy)) {
+    return NULL;
+  }
+
+  if (overflow2(sizeof (int *), sy)) {
+    return NULL;
+  }
+
+  if (overflow2(sizeof(int), sx)) {
+    return NULL;
+  }
+
   im = (gdImage *) gdMalloc (sizeof (gdImage));
   if (im == 0) return 0;
   memset (im, 0, sizeof (gdImage));
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin