Coverage exclusions

This commit is contained in:
Frank Denis 2017-07-24 22:19:50 +02:00
parent 33d6908f9b
commit cd51ff29e9
3 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,7 @@ crypto_scalarmult_curve25519(unsigned char *q, const unsigned char *n,
unsigned char d = 0;
if (implementation->mult(q, n, p) != 0) {
return -1;
return -1; /* LCOV_EXCL_LINE */
}
for (i = 0; i < crypto_scalarmult_curve25519_BYTES; i++) {
d |= q[i];

View File

@ -184,8 +184,10 @@ sodium_misuse(void)
handler();
}
}
/* LCOV_EXCL_START */
abort();
}
/* LCOV_EXCL_STOP */
int
sodium_set_misuse_handler(void (*handler)(void))

View File

@ -63,6 +63,7 @@
static size_t page_size;
static unsigned char canary[CANARY_SIZE];
/* LCOV_EXCL_START */
#ifdef HAVE_WEAK_SYMBOLS
__attribute__((weak)) void
_sodium_dummy_symbol_to_prevent_memzero_lto(void *const pnt,
@ -72,6 +73,7 @@ _sodium_dummy_symbol_to_prevent_memzero_lto(void *const pnt,
(void) len; /* LCOV_EXCL_LINE */
}
#endif
/* LCOV_EXCL_STOP */
void
sodium_memzero(void *const pnt, const size_t len)