From 56a7c9238e30555cc536d5cf13664660a8b5bc82 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 20 Feb 2008 00:11:52 +0000 Subject: [PATCH] be more clear about a possible integer underflow problem. this should probably be fixed better somehow. svn:r13604 --- src/or/rendcommon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index 5f7d6cc004..26454d24bd 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -510,6 +510,7 @@ rend_encode_service_descriptor(rend_service_descriptor_t *desc, base16_encode(ipoint+1, HEX_DIGEST_LEN+1, intro->extend_info->identity_digest, DIGEST_LEN); + tor_assert(buflen >= cp-*str_out); /* XXX021 This assert is a kludge. */ strlcpy(cp, ipoint, buflen-(cp-*str_out)); cp += strlen(ipoint)+1; } -- 2.11.4.GIT