Blame SOURCES/0010-Increase-the-size-of-string-variables-passed-to-ssca.patch

4ff70e
From 526febe57f9c05e3ca8a08e4016c5b36b8195406 Mon Sep 17 00:00:00 2001
4ff70e
From: Tomas Popela <tpopela@redhat.com>
4ff70e
Date: Mon, 23 Jul 2018 11:43:51 +0200
4ff70e
Subject: [PATCH 10/17] Increase the size of string variables passed to sscanf
4ff70e
4ff70e
yelp-3.28.1/libyelp/yelp-man-parser.c:549: error[invalidScanfFormatWidth]: Width 10 given in format string (no. 2) is larger than destination buffer 'name[10]', use %9s to prevent overflowing it.
4ff70e
4ff70e
yelp-3.28.1/libyelp/yelp-man-parser.c:926: error[invalidScanfFormatWidth]: Width 16 given in format string (no. 1) is larger than destination buffer 'name[16]', use %15s to prevent overflowing it.
4ff70e
---
4ff70e
 libyelp/yelp-man-parser.c | 4 ++--
4ff70e
 1 file changed, 2 insertions(+), 2 deletions(-)
4ff70e
4ff70e
diff --git a/libyelp/yelp-man-parser.c b/libyelp/yelp-man-parser.c
4ff70e
index 00e66e00..f8eb69f6 100644
4ff70e
--- a/libyelp/yelp-man-parser.c
4ff70e
+++ b/libyelp/yelp-man-parser.c
4ff70e
@@ -545,7 +545,7 @@ parse_prologue_line (YelpManParser *parser, GError **error)
4ff70e
 static gboolean
4ff70e
 parse_xf (YelpManParser *parser, GError **error)
4ff70e
 {
4ff70e
-    gchar name[10];
4ff70e
+    gchar name[11];
4ff70e
     guint k;
4ff70e
 
4ff70e
     if (SSCANF ("x f%*s %u %10s", 2, &k, name)) {
4ff70e
@@ -920,7 +920,7 @@ append_nbsps (YelpManParser *parser, guint k)
4ff70e
 static gboolean
4ff70e
 parse_C (YelpManParser *parser, GError **error)
4ff70e
 {
4ff70e
-    gchar name[16];
4ff70e
+    gchar name[17];
4ff70e
     gunichar code = 0;
4ff70e
     guint k;
4ff70e
     gint len;
4ff70e
-- 
4ff70e
2.19.1
4ff70e