summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/format_security.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/t1lib/t1lib-5.1.2/format_security.patch')
-rw-r--r--meta-oe/recipes-extended/t1lib/t1lib-5.1.2/format_security.patch43
1 files changed, 30 insertions, 13 deletions
diff --git a/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/format_security.patch b/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/format_security.patch
index 8b4ce400f..bc2476bfc 100644
--- a/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/format_security.patch
+++ b/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/format_security.patch
@@ -1,3 +1,8 @@
1From cea83003de3ffebde92becd1e599fe3b28f0a7c4 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 6 Mar 2017 23:13:36 -0800
4Subject: [PATCH] t1lib: Fix printf format string errors
5
1Fix printf formats to use format qualifiers 6Fix printf formats to use format qualifiers
2fixes 7fixes
3 8
@@ -6,20 +11,17 @@ error: format string is not a string literal (potentially insecure) [-Werror,-Wf
6Signed-off-by: Khem Raj <raj.khem@gmail.com> 11Signed-off-by: Khem Raj <raj.khem@gmail.com>
7Upstream-Status: Pending 12Upstream-Status: Pending
8 13
9--- a/lib/type1/objects.c 14---
10+++ b/lib/type1/objects.c 15 lib/t1lib/t1subset.c | 2 +-
11@@ -957,7 +957,7 @@ 16 lib/type1/objects.c | 2 +-
12 17 lib/type1/objects.h | 2 +-
13 sprintf(typemsg, "Wrong object type in %s; expected %s, found %s.\n", 18 3 files changed, 3 insertions(+), 3 deletions(-)
14 name, TypeFmt(expect), TypeFmt(obj->type)); 19
15- IfTrace0(TRUE,typemsg); 20diff --git a/lib/t1lib/t1subset.c b/lib/t1lib/t1subset.c
16+ IfTrace1(TRUE, "%s", typemsg); 21index da427b2..e76974f 100644
17
18 ObjectPostMortem(obj);
19
20--- a/lib/t1lib/t1subset.c 22--- a/lib/t1lib/t1subset.c
21+++ b/lib/t1lib/t1subset.c 23+++ b/lib/t1lib/t1subset.c
22@@ -759,7 +759,7 @@ 24@@ -759,7 +759,7 @@ char *T1_SubsetFont( int FontID,
23 tr_len); 25 tr_len);
24 T1_PrintLog( "T1_SubsetFont()", err_warn_msg_buf, 26 T1_PrintLog( "T1_SubsetFont()", err_warn_msg_buf,
25 T1LOG_DEBUG); 27 T1LOG_DEBUG);
@@ -28,9 +30,24 @@ Upstream-Status: Pending
28 } 30 }
29 31
30 /* compute size of output file */ 32 /* compute size of output file */
33diff --git a/lib/type1/objects.c b/lib/type1/objects.c
34index c413a0f..f828e6a 100644
35--- a/lib/type1/objects.c
36+++ b/lib/type1/objects.c
37@@ -957,7 +957,7 @@ struct xobject *TypeErr(name, obj, expect, ret) /* non-ANSI avoids overly strict
38
39 sprintf(typemsg, "Wrong object type in %s; expected %s, found %s.\n",
40 name, TypeFmt(expect), TypeFmt(obj->type));
41- IfTrace0(TRUE,typemsg);
42+ IfTrace1(TRUE, "%s", typemsg);
43
44 ObjectPostMortem(obj);
45
46diff --git a/lib/type1/objects.h b/lib/type1/objects.h
47index 13cbae7..3a1d337 100644
31--- a/lib/type1/objects.h 48--- a/lib/type1/objects.h
32+++ b/lib/type1/objects.h 49+++ b/lib/type1/objects.h
33@@ -214,7 +214,7 @@ 50@@ -214,7 +214,7 @@ struct xobject {
34 /*SHARED*/ 51 /*SHARED*/
35 /* NDW: personally, I want to see status and error messages! */ 52 /* NDW: personally, I want to see status and error messages! */
36 #define IfTrace0(condition,model) \ 53 #define IfTrace0(condition,model) \