More misuse tests

This commit is contained in:
Frank Denis 2017-12-03 16:39:05 +01:00
parent 3d6cd63b2a
commit 99fe9eb67f

View File

@ -6,12 +6,34 @@
# include <signal.h>
static void
sigabrt_handler_13(int sig)
sigabrt_handler_15(int sig)
{
(void) sig;
exit(0);
}
static void
sigabrt_handler_14(int sig)
{
(void) sig;
signal(SIGABRT, sigabrt_handler_15);
assert(crypto_box_curve25519xchacha20poly1305_easy
(NULL, NULL, crypto_stream_xchacha20_MESSAGEBYTES_MAX - 1,
NULL, NULL, NULL) == -1);
exit(1);
}
static void
sigabrt_handler_13(int sig)
{
(void) sig;
signal(SIGABRT, sigabrt_handler_14);
assert(crypto_box_curve25519xchacha20poly1305_easy_afternm
(NULL, NULL, crypto_stream_xchacha20_MESSAGEBYTES_MAX - 1,
NULL, NULL) == -1);
exit(1);
}
static void
sigabrt_handler_12(int sig)
{