aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_allocation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-06 14:13:38 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-06 14:13:38 +0000
commit8852f5f8ff3d521897175ddeb711d6b77e03fa8a (patch)
tree3b8d72cbf4bfb5c2aef091e111aecff61063f5f6 /src/util/common_allocation.c
parente22f7eb50d960e9b67cbf782afb9fb833362072c (diff)
downloadgnunet-8852f5f8ff3d521897175ddeb711d6b77e03fa8a.tar.gz
gnunet-8852f5f8ff3d521897175ddeb711d6b77e03fa8a.zip
Fixing #1976 by allowing allocations between INT_MAX and SIZE_MAX and at the same time limiting BF size for datastore to 2 GB. Also fixing infinite loop when creating BFs of sizes between 2-4 GB
Diffstat (limited to 'src/util/common_allocation.c')
-rw-r--r--src/util/common_allocation.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c
index fd5e993e2..5e1f75eb7 100644
--- a/src/util/common_allocation.c
+++ b/src/util/common_allocation.c
@@ -136,7 +136,6 @@ GNUNET_xmalloc_unchecked_ (size_t size, const char *filename, int linenumber)
136 return NULL; 136 return NULL;
137#endif 137#endif
138 138
139 GNUNET_assert_at (size < INT_MAX, filename, linenumber);
140 result = malloc (size); 139 result = malloc (size);
141 if (result == NULL) 140 if (result == NULL)
142 return NULL; 141 return NULL;