Coverage exclusions
This commit is contained in:
parent
33d6908f9b
commit
cd51ff29e9
@ -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];
|
||||
|
@ -184,8 +184,10 @@ sodium_misuse(void)
|
||||
handler();
|
||||
}
|
||||
}
|
||||
/* LCOV_EXCL_START */
|
||||
abort();
|
||||
}
|
||||
/* LCOV_EXCL_STOP */
|
||||
|
||||
int
|
||||
sodium_set_misuse_handler(void (*handler)(void))
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user