summaryrefslogtreecommitdiff
path: root/patches/source/libwmf/libwmf-0.2.8.4-CVE-2017-6362.patch
blob: 2ad180d978e8945394db7d1abf94af4f59977dae (plain)
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
32
--- libwmf-0.2.8.4/src/extra/gd/gd_png.c
+++ libwmf-0.2.8.4/src/extra/gd/gd_png.c
@@ -435,17 +435,6 @@
   out->free (out);
 }
 
-void *
-gdImagePngPtr (gdImagePtr im, int *size)
-{
-  void *rv;
-  gdIOCtx *out = gdNewDynamicCtx (2048, NULL);
-  gdImagePngCtx (im, out);
-  rv = gdDPExtractData (out, size);
-  out->free (out);
-  return rv;
-}
-
 /* This routine is based in part on code from Dale Lutz (Safe Software Inc.)
  *  and in part on demo code from Chapter 15 of "PNG: The Definitive Guide"
  *  (http://www.cdrom.com/pub/png/pngbook.html).
--- libwmf-0.2.8.4/src/extra/gd/gd.h
+++ libwmf-0.2.8.4/src/extra/gd/gd.h
@@ -373,9 +373,6 @@
 void gdImageGd2(gdImagePtr im, FILE *out, int cs, int fmt);
 
 /* Best to free this memory with gdFree(), not free() */
-void* gdImagePngPtr(gdImagePtr im, int *size);
-
-/* Best to free this memory with gdFree(), not free() */
 void* gdImageGdPtr(gdImagePtr im, int *size);
 
 /* Best to free this memory with gdFree(), not free() */