diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-28 09:25:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-28 09:25:17 -0400 |
commit | a64d79ca4c5699be161a54d94e0e6c0f7d06db7c (patch) | |
tree | 5d0fa776b824fe9bd30014e92259c7d0805b3e34 /src/common/util_format.c | |
parent | 9727a9248a474909c0ad53be9d55cd39b69d0611 (diff) | |
download | tor-a64d79ca4c5699be161a54d94e0e6c0f7d06db7c.tar.gz tor-a64d79ca4c5699be161a54d94e0e6c0f7d06db7c.zip |
Move around some LCOV_EXCLs in src/common
Apparently, my compiler now generates coverage markers for
label-only lines, so we need to exclude those too if they are meant
to be unreachable.
Diffstat (limited to 'src/common/util_format.c')
-rw-r--r-- | src/common/util_format.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/util_format.c b/src/common/util_format.c index 1f7b8b03aa..e51757a4e8 100644 --- a/src/common/util_format.c +++ b/src/common/util_format.c @@ -266,10 +266,13 @@ base64_encode(char *dest, size_t destlen, const char *src, size_t srclen, ENCODE_N(3); ENCODE_PAD(); break; + // LCOV_EXCL_START -- we can't reach this point, because we enforce + // 0 <= ncov_idx < 3 in the loop above. default: /* Something went catastrophically wrong. */ - tor_fragile_assert(); // LCOV_EXCL_LINE + tor_fragile_assert(); return -1; + // LCOV_EXCL_STOP } #undef ENCODE_N |