mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-10-24 13:32:59 +03:00
tests: Add mbedtls_test_ prefix to zero_alloc()
Add mbedtls_test_ prefix to zero_alloc() test helper
function.
Command to change *.function files:
find . -name "*.function" -exec awk -i inplace \
'{sub(/zero_alloc/,"mbedtls_test_&")}1' {} \;
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
@@ -100,7 +100,7 @@ void mbedtls_test_hexify( unsigned char *obuf,
|
||||
}
|
||||
}
|
||||
|
||||
unsigned char *zero_alloc( size_t len )
|
||||
unsigned char *mbedtls_test_zero_alloc( size_t len )
|
||||
{
|
||||
void *p;
|
||||
size_t actual_len = ( len != 0 ) ? len : 1;
|
||||
@@ -120,7 +120,7 @@ unsigned char *unhexify_alloc( const char *ibuf, size_t *olen )
|
||||
*olen = strlen( ibuf ) / 2;
|
||||
|
||||
if( *olen == 0 )
|
||||
return( zero_alloc( *olen ) );
|
||||
return( mbedtls_test_zero_alloc( *olen ) );
|
||||
|
||||
obuf = mbedtls_calloc( 1, *olen );
|
||||
TEST_HELPER_ASSERT( obuf != NULL );
|
||||
|
||||
Reference in New Issue
Block a user