mirror of
				https://github.com/Mbed-TLS/mbedtls.git
				synced 2025-10-30 10:45:34 +03: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:
		| @@ -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); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user