Coverage exclusion

This commit is contained in:
Frank Denis 2017-07-29 22:31:13 +02:00
parent b34b89ab37
commit 90bd94e4e4
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ crypto_secretbox_detached(unsigned char *c, unsigned char *mac,
if (((uintptr_t) c > (uintptr_t) m && if (((uintptr_t) c > (uintptr_t) m &&
(uintptr_t) c - (uintptr_t) m < mlen) || (uintptr_t) c - (uintptr_t) m < mlen) ||
((uintptr_t) m > (uintptr_t) c && ((uintptr_t) m > (uintptr_t) c &&
(uintptr_t) m - (uintptr_t) c < mlen)) { (uintptr_t) m - (uintptr_t) c < mlen)) { /* LCOV_EXCL_LINE */
memmove(c, m, mlen); memmove(c, m, mlen);
m = c; m = c;
} }
@ -104,7 +104,7 @@ crypto_secretbox_open_detached(unsigned char *m, const unsigned char *c,
if (((uintptr_t) c >= (uintptr_t) m && if (((uintptr_t) c >= (uintptr_t) m &&
(uintptr_t) c - (uintptr_t) m < clen) || (uintptr_t) c - (uintptr_t) m < clen) ||
((uintptr_t) m >= (uintptr_t) c && ((uintptr_t) m >= (uintptr_t) c &&
(uintptr_t) m - (uintptr_t) c < clen)) { (uintptr_t) m - (uintptr_t) c < clen)) { /* LCOV_EXCL_LINE */
memmove(m, c, clen); memmove(m, c, clen);
c = m; c = m;
} }

View File

@ -34,7 +34,7 @@ crypto_secretbox_xchacha20poly1305_detached(unsigned char *c,
if (((uintptr_t) c > (uintptr_t) m && if (((uintptr_t) c > (uintptr_t) m &&
(uintptr_t) c - (uintptr_t) m < mlen) || (uintptr_t) c - (uintptr_t) m < mlen) ||
((uintptr_t) m > (uintptr_t) c && ((uintptr_t) m > (uintptr_t) c &&
(uintptr_t) m - (uintptr_t) c < mlen)) { (uintptr_t) m - (uintptr_t) c < mlen)) { /* LCOV_EXCL_LINE */
memmove(c, m, mlen); memmove(c, m, mlen);
m = c; m = c;
} }
@ -111,7 +111,7 @@ crypto_secretbox_xchacha20poly1305_open_detached(unsigned char *m,
if (((uintptr_t) c >= (uintptr_t) m && if (((uintptr_t) c >= (uintptr_t) m &&
(uintptr_t) c - (uintptr_t) m < clen) || (uintptr_t) c - (uintptr_t) m < clen) ||
((uintptr_t) m >= (uintptr_t) c && ((uintptr_t) m >= (uintptr_t) c &&
(uintptr_t) m - (uintptr_t) c < clen)) { (uintptr_t) m - (uintptr_t) c < clen)) { /* LCOV_EXCL_LINE */
memmove(m, c, clen); memmove(m, c, clen);
c = m; c = m;
} }