[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-38
From: |
Daniele Forsi |
Subject: |
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-38-gaa1ac80 |
Date: |
Sun, 25 Jul 2010 16:34:51 +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 aa1ac8009501f04ecafc10b8d20937046e30fbd3 (commit)
from 6b5918663e3bcd9fa82565cced537e2a95071923 (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=aa1ac8009501f04ecafc10b8d20937046e30fbd3
commit aa1ac8009501f04ecafc10b8d20937046e30fbd3
Author: Daniele Forsi <address@hidden>
Date: Sun Jul 25 18:28:51 2010 +0200
Don't segfault later in at_sms_get_generic() if the SMS was deleted
diff --git a/common/phones/fake.c b/common/phones/fake.c
index 7252f24..53de835 100644
--- a/common/phones/fake.c
+++ b/common/phones/fake.c
@@ -168,7 +168,7 @@ static gn_error at_sms_get_generic(gn_data *data, struct
gn_statemachine *state,
static gn_error at_sms_get_static(gn_data *data, struct gn_statemachine
*state, int position)
{
- if (position > sizeof(sms_inbox)/sizeof(char *))
+ if (position > sizeof(sms_inbox)/sizeof(char *) || sms_inbox[position -
1] == NULL)
return GN_ERR_EMPTYLOCATION;
return at_sms_get_generic(data, state, sms_inbox[position - 1]);
-----------------------------------------------------------------------
Summary of changes:
common/phones/fake.c | 2 +-
1 files changed, 1 insertions(+), 1 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-38-gaa1ac80,
Daniele Forsi <=