diff --git a/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c b/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c index 72968ffe..13eda805 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c +++ b/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c @@ -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]; diff --git a/src/libsodium/sodium/core.c b/src/libsodium/sodium/core.c index 8e49b467..8c500e80 100644 --- a/src/libsodium/sodium/core.c +++ b/src/libsodium/sodium/core.c @@ -184,8 +184,10 @@ sodium_misuse(void) handler(); } } +/* LCOV_EXCL_START */ abort(); } +/* LCOV_EXCL_STOP */ int sodium_set_misuse_handler(void (*handler)(void)) diff --git a/src/libsodium/sodium/utils.c b/src/libsodium/sodium/utils.c index c29ccbd3..662b54a7 100644 --- a/src/libsodium/sodium/utils.c +++ b/src/libsodium/sodium/utils.c @@ -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)