You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation, a DWORD stores 32-bits. However, a size_t can potentially store more than 32-bits.
For example, if someone wants to generate more than 4 GB of random data on a 64-bit system, then s_read_wincsp might silently not generate the correct amount of random data.
The text was updated successfully, but these errors were encountered:
The
s_read_wincsp
function has asize_t
argumentn
to specify the number of random bytes to generate.libtommath/s_mp_rand_platform.c
Line 33 in 8355b88
This argument blindly gets converted into a
DWORD
libtommath/s_mp_rand_platform.c
Line 46 in 8355b88
According to the documentation, a
DWORD
stores 32-bits. However, asize_t
can potentially store more than 32-bits.For example, if someone wants to generate more than 4 GB of random data on a 64-bit system, then
s_read_wincsp
might silently not generate the correct amount of random data.The text was updated successfully, but these errors were encountered: