mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 13:40:49 +02:00
fix F-3294: IntelRDseed64_r Stack Buffer Containing Entropy Cleared with Plain Assignment Instead of wc_ForceZero
This commit is contained in:
@@ -472,6 +472,7 @@ static WC_INLINE int IntelRDseed64_r(word64* rnd)
|
||||
WC_SANITIZE_ENABLE();
|
||||
buf = 0;
|
||||
}
|
||||
wc_ForceZero(&buf, 0, sizeof buf);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user