Fix issues in CI

This commit is contained in:
Jarno Lamsa 2019-10-02 12:44:36 +03:00
parent 77a0e07f80
commit a1e5054d91
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ void mbedtls_platform_memset( void *ptr, int value, size_t num )
/* Randomize start offset. */ /* Randomize start offset. */
size_t start_offset = (size_t) mbedtls_platform_random_in_range( num ); size_t start_offset = (size_t) mbedtls_platform_random_in_range( num );
/* Randomize data */ /* Randomize data */
size_t data = (size_t) mbedtls_platform_random_in_range( 256 ); uint32_t data = mbedtls_platform_random_in_range( 256 );
/* Perform a pair of memset operations from random locations with /* Perform a pair of memset operations from random locations with
* random data */ * random data */
@ -101,7 +101,7 @@ void mbedtls_platform_memcpy( void *dst, const void *src, size_t num )
/* Randomize start offset. */ /* Randomize start offset. */
size_t start_offset = (size_t) mbedtls_platform_random_in_range( num ); size_t start_offset = (size_t) mbedtls_platform_random_in_range( num );
/* Randomize initial data to prevent leakage while copying */ /* Randomize initial data to prevent leakage while copying */
size_t data = (size_t) mbedtls_platform_random_in_range( 256 ); uint32_t data = mbedtls_platform_random_in_range( 256 );
memset( (void *) dst, data, num ); memset( (void *) dst, data, num );
memcpy( (void *) ( (unsigned char *) dst + start_offset ), memcpy( (void *) ( (unsigned char *) dst + start_offset ),