[or-cvs] r13604: be more clear about a possible integer underflow problem. th (tor/trunk/src/or)
arma at seul.org
arma at seul.org
Wed Feb 20 00:11:52 UTC 2008
Author: arma
Date: 2008-02-19 19:11:52 -0500 (Tue, 19 Feb 2008)
New Revision: 13604
Modified:
tor/trunk/src/or/rendcommon.c
Log:
be more clear about a possible integer underflow problem. this
should probably be fixed better somehow.
Modified: tor/trunk/src/or/rendcommon.c
===================================================================
--- tor/trunk/src/or/rendcommon.c 2008-02-19 23:59:16 UTC (rev 13603)
+++ tor/trunk/src/or/rendcommon.c 2008-02-20 00:11:52 UTC (rev 13604)
@@ -510,6 +510,7 @@
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;
}
More information about the tor-commits
mailing list