From 70a2cd72c1358fb0ee1650036b5d8d3fe56e9f88 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: May 07 2015 20:44:03 +0000 Subject: Fix an overrun gathering arguments Fix an overrun in the array that we use when preparing to marshal the list of properties we're sending to the daemon, if every single available option is specified. Spotted by static analysis. --- diff --git a/src/getcert.c b/src/getcert.c index 053fa4a..ef334cf 100644 --- a/src/getcert.c +++ b/src/getcert.c @@ -1380,8 +1380,8 @@ add_basic_request(enum cm_tdbus_type bus, char *id, { DBusMessage *req, *rep; int i; - struct cm_tdbusm_dict param[24]; - const struct cm_tdbusm_dict *params[25]; + struct cm_tdbusm_dict param[25]; + const struct cm_tdbusm_dict *params[26]; dbus_bool_t b; const char *capath; char *p;