[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: fix #5467
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: fix #5467 |
Date: |
Fri, 02 Nov 2018 15:53:36 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new c25fa6aba fix #5467
c25fa6aba is described below
commit c25fa6abad5893c052b05e2fd23d6fd8fee1a0cf
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Nov 2 15:53:34 2018 +0100
fix #5467
---
src/util/container_multihashmap32.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/util/container_multihashmap32.c
b/src/util/container_multihashmap32.c
index 016dbabcc..72940489e 100644
--- a/src/util/container_multihashmap32.c
+++ b/src/util/container_multihashmap32.c
@@ -265,11 +265,15 @@ GNUNET_CONTAINER_multihashmap32_iterate (struct
GNUNET_CONTAINER_MultiHashMap32
if (GNUNET_OK != it (it_cls,
e->key,
e->value))
+ {
+ GNUNET_assert (--map->next_cache_off < NEXT_CACHE_SIZE);
return GNUNET_SYSERR;
+ }
}
count++;
}
}
+ GNUNET_assert (--map->next_cache_off < NEXT_CACHE_SIZE);
return count;
}
@@ -567,9 +571,13 @@ GNUNET_CONTAINER_multihashmap32_get_multiple (struct
GNUNET_CONTAINER_MultiHashM
(GNUNET_OK != it (it_cls,
key,
e->value)) )
- return GNUNET_SYSERR;
+ {
+ GNUNET_assert (--map->next_cache_off < NEXT_CACHE_SIZE);
+ return GNUNET_SYSERR;
+ }
count++;
}
+ GNUNET_assert (--map->next_cache_off < NEXT_CACHE_SIZE);
return count;
}
--
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: fix #5467,
gnunet <=