summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-lib/libxfont/no-scalable-crash.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/xorg-lib/libxfont/no-scalable-crash.patch')
-rw-r--r--meta/recipes-graphics/xorg-lib/libxfont/no-scalable-crash.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libxfont/no-scalable-crash.patch b/meta/recipes-graphics/xorg-lib/libxfont/no-scalable-crash.patch
new file mode 100644
index 0000000000..90bded6fba
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxfont/no-scalable-crash.patch
@@ -0,0 +1,22 @@
1--- /tmp/fontdir.c 2006-08-01 16:17:22.000000000 +0200
2+++ libXfont-1.2.0/src/fontfile/fontdir.c 2006-08-01 16:20:37.248306000 +0200
3@@ -695,6 +695,11 @@
4 */
5 if (isscale)
6 {
7+ /* If the fontname says it is scalable, make sure that the
8+ * renderer supports OpenScalable and GetInfoScalable.
9+ */
10+ if (renderer->OpenScalable && renderer->GetInfoScalable)
11+ {
12 if (vals.values_supplied & SIZE_SPECIFY_MASK)
13 {
14 bzero((char *)&zeroVals, sizeof(zeroVals));
15@@ -794,6 +799,7 @@
16 bitmap->name.name);
17 }
18 }
19+ }
20 }
21 return TRUE;
22 }