[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11955 - gnunet/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11955 - gnunet/src/fs |
Date: |
Fri, 25 Jun 2010 19:09:22 +0200 |
Author: grothoff
Date: 2010-06-25 19:09:22 +0200 (Fri, 25 Jun 2010)
New Revision: 11955
Modified:
gnunet/src/fs/fs_uri.c
Log:
check
Modified: gnunet/src/fs/fs_uri.c
===================================================================
--- gnunet/src/fs/fs_uri.c 2010-06-25 16:56:33 UTC (rev 11954)
+++ gnunet/src/fs/fs_uri.c 2010-06-25 17:09:22 UTC (rev 11955)
@@ -1091,8 +1091,13 @@
switch (ret->type)
{
case ksk:
+ if (ret->data.ksk.keywordCount >= GNUNET_MAX_MALLOC_CHECKED / sizeof
(char*))
+ {
+ GNUNET_break (0);
+ return NULL;
+ }
if (ret->data.ksk.keywordCount > 0)
- {
+ {
ret->data.ksk.keywords
= GNUNET_malloc (ret->data.ksk.keywordCount * sizeof (char *));
for (i = 0; i < ret->data.ksk.keywordCount; i++)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11955 - gnunet/src/fs,
gnunet <=