]> git.pld-linux.org Git - packages/libwmf.git/blame - libwmf-segv.patch
- updated to 0.2.8.4
[packages/libwmf.git] / libwmf-segv.patch
CommitLineData
90d8e733
JB
1diff -Nur libwmf-0.2.6.orig/src/font.c libwmf-0.2.6/src/font.c
2--- libwmf-0.2.6.orig/src/font.c Wed Jun 12 20:22:02 2002
3+++ libwmf-0.2.6/src/font.c Sun Jul 7 19:09:15 2002
4@@ -512,6 +512,9 @@
75d7a789
JB
5
6 FT_Set_Transform (face,0,0);
7
8+ if (!face)
9+ return 0;
90d8e733 10+
75d7a789
JB
11 use_kerning = FT_HAS_KERNING (face);
12
13 previous = 0;
90d8e733 14@@ -559,6 +562,9 @@
75d7a789
JB
15
16 FT_Set_Transform (face,0,0);
17
18+ if (!face)
19+ return 0;
20+
21 use_kerning = FT_HAS_KERNING (face);
22
23 previous = 0;
90d8e733
JB
24diff -Nur libwmf-0.2.6.orig/src/ipa/x/font.h libwmf-0.2.6/src/ipa/x/font.h
25--- libwmf-0.2.6.orig/src/ipa/x/font.h Tue Oct 16 10:11:46 2001
26+++ libwmf-0.2.6/src/ipa/x/font.h Sun Jul 7 19:07:39 2002
27@@ -122,6 +122,9 @@
28
29 FT_Load_Char (face,draw_text->str[0],FT_LOAD_RENDER);
30
31+ if (!face)
32+ return;
33+
34 pt.x += face->glyph->bitmap_left;
35 pt.y -= face->glyph->bitmap_top;
36
37diff -Nur libwmf-0.2.6.orig/src/ipa/xgd/font.h libwmf-0.2.6/src/ipa/xgd/font.h
38--- libwmf-0.2.6.orig/src/ipa/xgd/font.h Sun Oct 28 15:07:21 2001
39+++ libwmf-0.2.6/src/ipa/xgd/font.h Sun Jul 7 19:07:17 2002
75d7a789
JB
40@@ -119,6 +119,9 @@
41
42 FT_Load_Char (face,draw_text->str[0],FT_LOAD_RENDER);
43
44+ if (!face)
45+ return;
46+
47 pt.x += face->glyph->bitmap_left;
48 pt.y -= face->glyph->bitmap_top;
49
This page took 0.057279 seconds and 4 git commands to generate.