Blame SOURCES/0007-getcert-fix-a-potential-out-of-bounds.patch

1495bf
From ef0f3c32888165c1a39b078f23ce7e1fc57fec66 Mon Sep 17 00:00:00 2001
1495bf
From: Nalin Dahyabhai <nalin@redhat.com>
1495bf
Date: Wed, 15 Jun 2016 15:56:38 -0400
1495bf
Subject: [PATCH] getcert: fix a potential out-of-bounds
1495bf
1495bf
In getcert, fix a potential out-of-bounds write while gathering
1495bf
parameters to send to the daemon as part of an "add_request" API
1495bf
request, present since 20a6536febf0815d0b3d301133820a46fdd6ef21.
1495bf
---
1495bf
 src/getcert.c | 8 ++++----
1495bf
 1 file changed, 4 insertions(+), 4 deletions(-)
1495bf
1495bf
diff --git a/src/getcert.c b/src/getcert.c
1495bf
index cfa36fb1a7ea16c9c9bacc8f40360efa594b7830..c84273a9bfc8730422f18ade87ce174fbbc44634 100644
1495bf
--- a/src/getcert.c
1495bf
+++ b/src/getcert.c
1495bf
@@ -1499,8 +1499,8 @@ add_basic_request(enum cm_tdbus_type bus, char *id,
1495bf
 {
1495bf
 	DBusMessage *req, *rep;
1495bf
 	int i;
1495bf
-	struct cm_tdbusm_dict param[25];
1495bf
-	const struct cm_tdbusm_dict *params[26];
1495bf
+	struct cm_tdbusm_dict param[26];
1495bf
+	const struct cm_tdbusm_dict *params[27];
1495bf
 	dbus_bool_t b;
1495bf
 	const char *capath;
1495bf
 	char *p;
1495bf
@@ -1738,8 +1738,8 @@ set_tracking(const char *argv0, const char *category,
1495bf
 	enum cm_tdbus_type bus = CM_DBUS_DEFAULT_BUS;
1495bf
 	DBusMessage *req, *rep;
1495bf
 	const char *request, *capath;
1495bf
-	struct cm_tdbusm_dict param[25];
1495bf
-	const struct cm_tdbusm_dict *params[26];
1495bf
+	struct cm_tdbusm_dict param[26];
1495bf
+	const struct cm_tdbusm_dict *params[27];
1495bf
 	char *nss_scheme, *dbdir = NULL, *token = NULL, *nickname = NULL;
1495bf
 	char **anchor_dbs = NULL, **anchor_files = NULL;
1495bf
 	char *id = NULL, *new_id = NULL, *new_request;
1495bf
-- 
1495bf
2.9.0
1495bf