[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 20/28: fix out-of-bounds case in parser
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 20/28: fix out-of-bounds case in parser |
Date: |
Fri, 10 Mar 2017 18:19:04 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
commit 71d41835b8353d7d080c2de50b0303ed6861ffba
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Mar 10 18:00:53 2017 +0100
fix out-of-bounds case in parser
---
src/testbed/testbed_api_topology.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/testbed/testbed_api_topology.c
b/src/testbed/testbed_api_topology.c
index a21a7cf53..544f127a9 100644
--- a/src/testbed/testbed_api_topology.c
+++ b/src/testbed/testbed_api_topology.c
@@ -1147,9 +1147,11 @@ gen_topo_from_file (struct TopologyContext *tc,
other_peer_id);
while (('\n' != data[offset]) && ('|' != data[offset]) && (offset < fs))
offset++;
- if ('\n' == data[offset])
+ if ( (offset < fs) &&
+ ('\n' == data[offset]) )
state = PEER_INDEX;
- else if ('|' == data[offset])
+ else if ( (offset < fs) &&
+ ('|' == data[offset]) )
{
state = OTHER_PEER_INDEX;
offset++;
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] branch master updated (1fee963ef -> 9fc7ff92a), gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 01/28: fix use of uninitialized (shadow-issue) expiration, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 08/28: fix memory leak, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 03/28: make sure 'err' is initialized on all error paths, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 06/28: properly handle error on empty queue, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 04/28: handle case 'diff' is NULL - fixes NPE, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 02/28: make compiler happy, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 05/28: fix comment, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 07/28: fix memory leak, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 10/28: fix memory leak, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 20/28: fix out-of-bounds case in parser,
gnunet <=
- [GNUnet-SVN] [gnunet] 15/28: add assertion to make static analysis happy, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 16/28: disambiguate enum type of value, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 09/28: fix memory leak, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 17/28: add assertion to make static analysis happy, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 12/28: fix ICMP IPv4/IPv6 type conversion logic, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 22/28: check return value from dup2, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 14/28: fix double-free, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 11/28: fix double-free, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 18/28: fix integer overflow test to actually work, gnunet, 2017/03/10
- [GNUnet-SVN] [gnunet] 21/28: remove redundant condition in assertion, gnunet, 2017/03/10