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