mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
Use TEST_CALLOC_NONNULL
Check that input/output copying works for zero-length NULL input buffers. Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
parent
b4e3f36918
commit
23f1122838
@ -33,8 +33,8 @@ void copy_input(int src_len, int dst_len, psa_status_t exp_status)
|
||||
uint8_t *dst_buffer = NULL;
|
||||
psa_status_t status;
|
||||
|
||||
TEST_CALLOC_NONNULL(src_buffer, src_len);
|
||||
TEST_CALLOC_NONNULL(dst_buffer, dst_len);
|
||||
TEST_CALLOC(src_buffer, src_len);
|
||||
TEST_CALLOC(dst_buffer, dst_len);
|
||||
|
||||
fill_buffer_pattern(src_buffer, src_len);
|
||||
|
||||
@ -59,8 +59,8 @@ void copy_output(int src_len, int dst_len, psa_status_t exp_status)
|
||||
uint8_t *dst_buffer = NULL;
|
||||
psa_status_t status;
|
||||
|
||||
TEST_CALLOC_NONNULL(src_buffer, src_len);
|
||||
TEST_CALLOC_NONNULL(dst_buffer, dst_len);
|
||||
TEST_CALLOC(src_buffer, src_len);
|
||||
TEST_CALLOC(dst_buffer, dst_len);
|
||||
|
||||
fill_buffer_pattern(src_buffer, src_len);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user