mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-08 15:39:22 +01:00
Test that xxx_free() functions accept NULL parameter
This commit is contained in:
parent
236ea16c01
commit
a994b2379f
3 changed files with 3 additions and 0 deletions
|
|
@ -139,6 +139,7 @@ void chachapoly_bad_params()
|
|||
memset( mac, 0x00, sizeof( mac ) );
|
||||
|
||||
TEST_INVALID_PARAM( mbedtls_chachapoly_init( NULL ) );
|
||||
TEST_VALID_PARAM( mbedtls_chachapoly_free( NULL ) );
|
||||
|
||||
/* setkey */
|
||||
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_POLY1305_BAD_INPUT_DATA,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue