From: Matthias Wachs Date: Fri, 2 Mar 2012 11:54:44 +0000 (+0000) Subject: - LRN's patch 2191 X-Git-Tag: initial-import-from-subversion-38251~14495 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=37673118e3a345079bd70ed5b806d77c67c179a3;p=oweals%2Fgnunet.git - LRN's patch 2191 --- diff --git a/src/namestore/namestore_common.c b/src/namestore/namestore_common.c index 7d1876eec..2e0a58c62 100644 --- a/src/namestore/namestore_common.c +++ b/src/namestore/namestore_common.c @@ -185,7 +185,7 @@ GNUNET_NAMESTORE_records_deserialize (size_t len, dest[i].flags = ntohl (rec.flags); off += sizeof (rec); - if (off + sizeof (dest[i].data_size) > len) + if (off + dest[i].data_size > len) return GNUNET_SYSERR; dest[i].data = &src[off]; off += dest[i].data_size;