freebsd-ports/x11-fonts/fontconfig/files/patch-src__fccompat.c
Koop Mast 61bf7e6b3f Update fontconfig to 2.12.1.
Add license lines
Add option to select the preferred hinting configuration
Add CPE info [1]

PR:		211570
Submitted by:	lightside@gmx.com, rakuco@ [1]
MFH:		2016Q3
Security:	44989c29-67d1-11e6-8b1d-c86000169601, CVE-2016-5384
2016-08-21 19:13:32 +00:00

17 lines
519 B
C

There is an undiagnosed ARMv6 core dump in this code
as discovered in FreeBSD Bug 183536 when using clang.
Removing this code from ARM builds resolves it.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=183536
--- src/fccompat.c.orig 2016-07-11 02:41:06 UTC
+++ src/fccompat.c
@@ -191,7 +191,7 @@ FcRandom(void)
#else
random_r (&fcrandbuf, &result);
#endif
-#elif HAVE_RANDOM
+#elif HAVE_RANDOM && !defined(__arm__)
static char statebuf[256];
char *state;
static FcBool initialized = FcFalse;