mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-27 02:04:21 +01:00
Fix memsan build with clang 11
Memsan build was reporting a false positive use of uninitialised memory in x509_crt.c on a struct filled by an _stat function call. According to the man pages, the element reported has to be filled in by the call, so to be safe, and keep memsan happy, zero the struct first. Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
477a463684
commit
fb91a48616
2
ChangeLog.d/fix_memsan_build_clang11.txt
Normal file
2
ChangeLog.d/fix_memsan_build_clang11.txt
Normal file
@ -0,0 +1,2 @@
|
||||
Changes
|
||||
* Fix memsan build false positive in x509_crt.c with clang 11
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user