[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: Check for invalid path_leng
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: Check for invalid path_length |
Date: |
Fri, 22 Dec 2017 21:55:05 +0100 |
This is an automated email from the git hooks/post-receive script.
david-barksdale pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 517cf93fb Check for invalid path_length
517cf93fb is described below
commit 517cf93fbd1c97a9909c6643601c8592553966bd
Author: David Barksdale <address@hidden>
AuthorDate: Fri Dec 22 14:54:30 2017 -0600
Check for invalid path_length
---
src/cadet/gnunet-service-cadet_core.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/cadet/gnunet-service-cadet_core.c
b/src/cadet/gnunet-service-cadet_core.c
index ae03b4f35..a67bbf445 100644
--- a/src/cadet/gnunet-service-cadet_core.c
+++ b/src/cadet/gnunet-service-cadet_core.c
@@ -771,6 +771,12 @@ handle_connection_create (void *cls,
options = (enum GNUNET_CADET_ChannelOption) ntohl (msg->options);
path_length = size / sizeof (struct GNUNET_PeerIdentity);
+ if (0 == path_length)
+ {
+ /* bogus request */
+ GNUNET_break_op (0);
+ return;
+ }
/* Initiator is at offset 0. */
for (off=1;off<path_length;off++)
if (0 == memcmp (&my_full_id,
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: Check for invalid path_length,
gnunet <=