diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-28 08:35:24 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-28 08:35:24 -0400 |
commit | 01d67a90711f084c6ec1971315f7486af2797faf (patch) | |
tree | ece52fee091ca86efc5ff53d1e2e6f2c222a0595 /src/common | |
parent | f21102c06974a8db9d31819a8caf7f34f267a863 (diff) | |
download | tor-01d67a90711f084c6ec1971315f7486af2797faf.tar.gz tor-01d67a90711f084c6ec1971315f7486af2797faf.zip |
Note an unreachable (?) section in buffers.c
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/buffers.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |