ports/graphics/libwmf/files/patch-src_extra_gd_gd__png.c
Kurt Jaeger 3a67c00d08 graphics/libwmf: update 0.2.8.4 -> 0.2.12
- Switch to active fork (removes the need to patch for mutliple CVEs)
  This is what Alpine Linux, Arch Linux, Debian and Fedora uses.
- Add patch to use pkg-config (pkgconfig) to detect freetype(2)

References:
https://github.com/caolanm/libwmf (no proper release notes available)
https://github.com/archlinux/svntogit-packages/blob/packages/libwmf/trunk/libwmf-freetype.patch

PR:		252114
Submitted by:	daniel.engberg.lists@pyret.net
2021-01-01 16:38:52 +00:00

11 lines
457 B
C

--- src/extra/gd/gd_png.c.orig 2019-02-01 17:51:32 UTC
+++ src/extra/gd/gd_png.c
@@ -138,7 +138,7 @@ gdImageCreateFromPngCtx (gdIOCtx * infile)
/* first do a quick check that the file really is a PNG image; could
* have used slightly more general png_sig_cmp() function instead */
gdGetBuf (sig, 8, infile);
- if (!png_check_sig (sig, 8))
+ if (png_sig_cmp (sig, 0, 8))
return NULL; /* bad signature */
#ifndef PNG_SETJMP_NOT_SUPPORTED