Explain why some abort() calls are still around

This commit is contained in:
Frank Denis 2017-07-16 20:09:19 +02:00
parent 74703c63a6
commit c3b24c1d22
2 changed files with 2 additions and 2 deletions

View File

@ -354,7 +354,7 @@ randombytes_salsa20_random_stir(void)
#endif
if (crypto_generichash(stream.key, sizeof stream.key, k0, sizeof_k0,
hsigma, sizeof hsigma) != 0) {
abort(); /* LCOV_EXCL_LINE */
abort(); /* really abort -- it should never happen */ /* LCOV_EXCL_LINE */
}
COMPILER_ASSERT(sizeof stream.key <= sizeof m0);
randombytes_salsa20_random_rekey(m0);

View File

@ -481,7 +481,7 @@ _out_of_bounds(void)
# elif defined(SIGKILL)
raise(SIGKILL);
# endif
abort();
abort(); /* not something we want any higher-level API to catch */
} /* LCOV_EXCL_LINE */
static inline size_t