]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Note an unreachable (?) section in buffers.c
authorNick Mathewson <nickm@torproject.org>
Thu, 28 Sep 2017 12:35:24 +0000 (08:35 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 28 Sep 2017 12:35:24 +0000 (08:35 -0400)
src/common/buffers.c

index 55a30092ee74f265486c38e4e050a55995c69854..bf10c55962656d4e5b70e2442c83ef7e523534d3 100644 (file)
@@ -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)