Coverage exclusion
This commit is contained in:
parent
b34b89ab37
commit
90bd94e4e4
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user