Merge pull request #4203 from paul-elliott-arm/memsan_fix_build

Fix memsan build with Clang 11
This commit is contained in:
paul-elliott-arm 2021-03-09 16:31:31 +00:00 committed by GitHub
commit 0135516d55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -0,0 +1,2 @@
Changes
* Fix memsan build false positive in x509_crt.c with clang 11

View file

@ -1629,6 +1629,8 @@ cleanup:
}
#endif /* MBEDTLS_THREADING_C */
memset( &sb, 0, sizeof( sb ) );
while( ( entry = readdir( dir ) ) != NULL )
{
snp_ret = mbedtls_snprintf( entry_name, sizeof entry_name,