From: Nick Mathewson Date: Thu, 28 Sep 2017 12:35:24 +0000 (-0400) Subject: Note an unreachable (?) section in buffers.c X-Git-Tag: tor-0.3.2.2-alpha~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01d67a90711f084c6ec1971315f7486af2797faf;p=thirdparty%2Ftor.git Note an unreachable (?) section in buffers.c --- diff --git a/src/common/buffers.c b/src/common/buffers.c index 55a30092ee..bf10c55962 100644 --- a/src/common/buffers.c +++ b/src/common/buffers.c @@ -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)