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