[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-52
From: |
Daniele Forsi |
Subject: |
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-529-g296e07d |
Date: |
Thu, 22 Aug 2013 12:46:05 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".
The branch, master has been updated
via 296e07de57a07c1a739e04b69cd8a783e390a45d (commit)
from 49c4d11a1dc9ae896ca9acc97e6674372f4e8ba1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=296e07de57a07c1a739e04b69cd8a783e390a45d
commit 296e07de57a07c1a739e04b69cd8a783e390a45d
Author: Daniele Forsi <address@hidden>
Date: Thu Aug 22 14:38:30 2013 +0200
Fix memory allocation bug in cfgreader.c
Bug reported by Mike Barnard Kwatampora <mike.barnardq at gmail dot com> and
fixed by Guido Falsi <madpilot at FreeBSD dot org>.
See http://lists.nongnu.org/archive/html/gnokii-users/2013-08/msg00008.html
diff --git a/common/cfgreader.c b/common/cfgreader.c
index 7359081..89af7ba 100644
--- a/common/cfgreader.c
+++ b/common/cfgreader.c
@@ -1000,7 +1000,7 @@ static bool cfg_get_log_target(gn_log_target *t, const
char *opt)
#define CHECK_SIZE() if (*retval >= size) { \
void *aux; \
size *= 2; \
- aux = realloc(config_file_locations, size); \
+ aux = realloc(config_file_locations, size * sizeof(char *)); \
if (aux) \
config_file_locations = aux; \
else {\
@@ -1116,7 +1116,7 @@ static char **get_locations(int *retval)
if (i >= xcd_size) {
void *aux;
xcd_size *= 2;
- aux = realloc(xdg_config_dir, xcd_size);
+ aux = realloc(xdg_config_dir, xcd_size * sizeof(char
*));
if (aux)
xdg_config_dir = aux;
else {
-----------------------------------------------------------------------
Summary of changes:
common/cfgreader.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
libgnokii and core programs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-529-g296e07d,
Daniele Forsi <=