diff options
author | Roger Dingledine <arma@torproject.org> | 2008-02-20 00:11:52 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-02-20 00:11:52 +0000 |
commit | 56a7c9238e30555cc536d5cf13664660a8b5bc82 (patch) | |
tree | 3762f9f035bc7a33042bc8c6716a15443282c041 /src/or/rendcommon.c | |
parent | e0beb6cc5ec69631645e82db67174c431f4c7563 (diff) | |
download | tor-56a7c9238e30555cc536d5cf13664660a8b5bc82.tar.gz tor-56a7c9238e30555cc536d5cf13664660a8b5bc82.zip |
be more clear about a possible integer underflow problem. this
should probably be fixed better somehow.
svn:r13604
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |