mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-11 09:40:38 +00:00
Merge branch 'development' into development-restricted
This commit is contained in:
commit
26342e54f5
@ -153,7 +153,7 @@ Bugfix
|
|||||||
fragile yet non-exploitable code-paths.
|
fragile yet non-exploitable code-paths.
|
||||||
* Fix crash when calling mbedtls_ssl_cache_free() twice. Found by
|
* Fix crash when calling mbedtls_ssl_cache_free() twice. Found by
|
||||||
MilenkoMitrovic, #1104
|
MilenkoMitrovic, #1104
|
||||||
* Fix mbedtls_timing_alarm(0) on Unix.
|
* Fix mbedtls_timing_alarm(0) on Unix and MinGW.
|
||||||
* Fix use of uninitialized memory in mbedtls_timing_get_timer when reset=1.
|
* Fix use of uninitialized memory in mbedtls_timing_get_timer when reset=1.
|
||||||
* Fix possible memory leaks in mbedtls_gcm_self_test().
|
* Fix possible memory leaks in mbedtls_gcm_self_test().
|
||||||
* Added missing return code checks in mbedtls_aes_self_test().
|
* Added missing return code checks in mbedtls_aes_self_test().
|
||||||
|
@ -278,6 +278,14 @@ void mbedtls_set_alarm( int seconds )
|
|||||||
{
|
{
|
||||||
DWORD ThreadId;
|
DWORD ThreadId;
|
||||||
|
|
||||||
|
if( seconds == 0 )
|
||||||
|
{
|
||||||
|
/* No need to create a thread for this simple case.
|
||||||
|
* Also, this shorcut is more reliable at least on MinGW32 */
|
||||||
|
mbedtls_timing_alarmed = 1;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
mbedtls_timing_alarmed = 0;
|
mbedtls_timing_alarmed = 0;
|
||||||
alarmMs = seconds * 1000;
|
alarmMs = seconds * 1000;
|
||||||
CloseHandle( CreateThread( NULL, 0, TimerProc, NULL, 0, &ThreadId ) );
|
CloseHandle( CreateThread( NULL, 0, TimerProc, NULL, 0, &ThreadId ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user