Package: libgd2 / 2.0.36~rc1~dfsg-5+deb6u1

0001_fix_leak_in_gdImageCopyResized.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: Brent Bottles
Subject: Fix leak in gdImageCopyResized
Origin: upstream, http://cvs.php.net/viewvc.cgi/gd/libgd/src/gd.c?r1=1.49.2.24&r2=1.49.2.25
Bug: http://bugs.libgd.org/145
Last-Update: 20091105
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 'GD                                                                         NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 GD 2.0.36 (2007-11-xx)
+145, Fixed keak in gdImageCopyResized (Patch by Brent Bottles)
  81, Fixed gdImageCopy with true color image, the transparent color was ignored
      (Pierre, Mark Fisher)
  88, Fixed support of PNG grayscale image with alpha channel (Pierre)
--- a/gd.c
+++ b/gd.c
@@ -1,4 +1,4 @@
-/* $Id: gd.c,v 1.49.2.24 2007/11/20 13:42:11 pajoye Exp $ */
+/* $Id: gd.c,v 1.49.2.25 2008/02/01 01:52:25 pajoye Exp $ */
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -2486,6 +2486,7 @@
 
   sty = (int *) gdMalloc (sizeof (int) * srcH);
 	if (!sty) {
+		gdFree(stx);
 		return;
 	}