Test sodium_pad() with a NULL pointer
This commit is contained in:
parent
f61a121b81
commit
fd4478288e
@ -294,6 +294,8 @@ main(void)
|
||||
|
||||
assert(sodium_pad(&bin_padded_len, bin_padded, bin_len,
|
||||
blocksize, bin_padded_maxlen - 1U) == -1);
|
||||
assert(sodium_pad(NULL, bin_padded, bin_len,
|
||||
blocksize, bin_padded_maxlen + 1U) == 0);
|
||||
assert(sodium_pad(&bin_padded_len, bin_padded, bin_len,
|
||||
blocksize, bin_padded_maxlen + 1U) == 0);
|
||||
assert(sodium_pad(&bin_padded_len, bin_padded, bin_len,
|
||||
|
Loading…
Reference in New Issue
Block a user