mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
be more clear about a possible integer underflow problem. this
should probably be fixed better somehow. svn:r13604
This commit is contained in:
parent
e0beb6cc5e
commit
56a7c9238e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user