From 0c73253249a87f8718628571a96d3e1ca28ec76e Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 23 Sep 2014 13:45:11 -0700 Subject: [PATCH] lcov exclusions --- src/libsodium/crypto_hash/sha256/cp/hash_sha256.c | 2 ++ src/libsodium/crypto_hash/sha512/cp/hash_sha512.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/libsodium/crypto_hash/sha256/cp/hash_sha256.c b/src/libsodium/crypto_hash/sha256/cp/hash_sha256.c index 721bbe92..738794ac 100644 --- a/src/libsodium/crypto_hash/sha256/cp/hash_sha256.c +++ b/src/libsodium/crypto_hash/sha256/cp/hash_sha256.c @@ -245,9 +245,11 @@ crypto_hash_sha256_update(crypto_hash_sha256_state *state, bitlen[1] = ((uint32_t)inlen) << 3; bitlen[0] = (uint32_t)(inlen >> 29); + /* LCOV_EXCL_START */ if ((state->count[1] += bitlen[1]) < bitlen[1]) { state->count[0]++; } + /* LCOV_EXCL_STOP */ state->count[0] += bitlen[0]; if (inlen < 64 - r) { diff --git a/src/libsodium/crypto_hash/sha512/cp/hash_sha512.c b/src/libsodium/crypto_hash/sha512/cp/hash_sha512.c index a7407709..e85be74b 100644 --- a/src/libsodium/crypto_hash/sha512/cp/hash_sha512.c +++ b/src/libsodium/crypto_hash/sha512/cp/hash_sha512.c @@ -272,9 +272,11 @@ crypto_hash_sha512_update(crypto_hash_sha512_state *state, bitlen[1] = ((uint64_t)inlen) << 3; bitlen[0] = ((uint64_t)inlen) >> 61; + /* LCOV_EXCL_START */ if ((state->count[1] += bitlen[1]) < bitlen[1]) { state->count[0]++; } + /* LCOV_EXCL_STOP */ state->count[0] += bitlen[0]; if (inlen < 128 - r) {