SHA256
8
0
forked from pool/libwmf
Files
libwmf/libwmf-0.2.8.4-fix.patch
Marcus Meissner 990727bba6 Accepting request 891512 from home:dirkmueller:Factory
- update to 0.2.12:
  * upstream changed to fork from Fedora: https://github.com/caolanm/libwmf
  * fix abi
  * merge in fixes for libgd CVE-2019-6978
  * release with coverity, clang and shellcheck fixes
  * Seeing as wvware.sourceforge.net seems to be dead, but libwmf is still in
    use and has had a bunch of security bugs reported against, and I've a
    history with libwmf, I'll call this libwmf 0.2.9 and merge in my (Red Hat)
    fixes.
- drop libwmf-0.2.8.4-ia64.patch, libwmf-0.2.8.4-config.patch: obsolete
- drop libwmf-0.2.8.4-overflow-CVE-2006-3376.patch: upstream via
  b9cc022c8d
- drop libwmf-0.2.8.4-CVE-2015-0848.patch: part of
  879d6bffa6
- drop libwmf-0.2.8.4-badrle.patch: part of 
  879d6bffa6
- drop libwmf-0.2.8.4-CVE-2015-4696.patch: upstream via
  f47cbdf968
- drop libwmf-0.2.8.4-CVE-2015-4695.patch: upstream via 
  b5ae5d1f3b
- drop reproducible.patch: differently done upstream
- drop use-pkg-config-for-freetype.patch: obsolete

OBS-URL: https://build.opensuse.org/request/show/891512
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libwmf?expand=0&rev=52
2021-05-11 11:27:51 +00:00

42 lines
1.0 KiB
Diff

Index: src/api.c
===================================================================
--- src/api.c.orig
+++ src/api.c
@@ -156,6 +156,12 @@ wmf_error_t wmf_lite_create (wmfAPI** AP
}
API->write_data = 0;
+
+ API->user_data = 0;
+ API->store.attrlist = 0;
+ API->store.count = 0;
+ API->store.max = 0;
+
API->MetaHeader.pmh = &(API->PlaceableMetaHeader);
API->MetaHeader.wmfheader = &(API->Head);
Index: src/extra/gd/gd.c
===================================================================
--- src/extra/gd/gd.c.orig
+++ src/extra/gd/gd.c
@@ -810,6 +810,7 @@ gdImageTileApply (gdImagePtr im, int x,
}
else
{
+ p = gdImageGetPixel (im->tile, srcx, srcy);
/* Allow for transparency */
if (p != gdImageGetTransparent (im->tile))
{
Index: src/extra/gd/gd.h
===================================================================
--- src/extra/gd/gd.h.orig
+++ src/extra/gd/gd.h
@@ -22,6 +22,7 @@ extern "C" {
/* stdio is needed for file I/O. */
#include <stdio.h>
+#include <string.h>
#include <gd_io.h>
#include <gd_clip.h>