mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-24 12:36:01 -07:00
More misuse tests
This commit is contained in:
parent
3d6cd63b2a
commit
99fe9eb67f
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user