[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Note an unreachable (?) section in buffers.c



commit 01d67a90711f084c6ec1971315f7486af2797faf
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Thu Sep 28 08:35:24 2017 -0400

    Note an unreachable (?) section in buffers.c
---
 src/common/buffers.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/common/buffers.c b/src/common/buffers.c
index 55a30092e..bf10c5596 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)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits