mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Note an unreachable (?) section in buffers.c
This commit is contained in:
@@ -1055,11 +1055,13 @@ buf_assert_ok(buf_t *buf)
|
||||
tor_assert(ch->data >= &ch->mem[0]);
|
||||
tor_assert(ch->data <= &ch->mem[0]+ch->memlen);
|
||||
if (ch->data == &ch->mem[0]+ch->memlen) {
|
||||
/* LCOV_EXCL_START */
|
||||
static int warned = 0;
|
||||
if (! warned) {
|
||||
log_warn(LD_BUG, "Invariant violation in buf.c related to #15083");
|
||||
warned = 1;
|
||||
}
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
tor_assert(ch->data+ch->datalen <= &ch->mem[0] + ch->memlen);
|
||||
if (!ch->next)
|
||||
|
||||
Reference in New Issue
Block a user