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

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