mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-12 20:05:34 +00:00
Initialise buffer before use
Commit initialises buf before it is used. Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
ac72f9c213
commit
7c4a486081
|
@ -16,6 +16,7 @@ void mbedtls_md_process( )
|
||||||
unsigned char buf[150];
|
unsigned char buf[150];
|
||||||
|
|
||||||
mbedtls_md_init( &ctx );
|
mbedtls_md_init( &ctx );
|
||||||
|
memset( buf, 0, sizeof( buf ) );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Very minimal testing of mbedtls_md_process, just make sure the various
|
* Very minimal testing of mbedtls_md_process, just make sure the various
|
||||||
|
|
Loading…
Reference in a new issue