forked from pool/libgcrypt
c25b02784b
- FIPS changes (from Fedora): - replaced libgcrypt-1.5.0-etc_gcrypt_rngseed-symlink.diff by libgcrypt-1.6.1-fips-cfgrandom.patch - libgcrypt-fixed-sizet.patch: fixed an int type for -flto - libgcrypt-1.6.1-use-fipscheck.patch: use the fipscheck binary - libgcrypt-1.6.1-fips-cavs.patch: add CAVS tests OBS-URL: https://build.opensuse.org/request/show/227791 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libgcrypt?expand=0&rev=46
14 lines
520 B
Diff
14 lines
520 B
Diff
Index: libgcrypt-1.6.1/random/rndlinux.c
|
|
===================================================================
|
|
--- libgcrypt-1.6.1.orig/random/rndlinux.c
|
|
+++ libgcrypt-1.6.1/random/rndlinux.c
|
|
@@ -261,7 +261,7 @@ _gcry_rndlinux_gather_random (void (*add
|
|
|
|
do
|
|
{
|
|
- int nbytes = length < sizeof(buffer)? length : sizeof(buffer);
|
|
+ size_t nbytes = length < sizeof(buffer)? length : sizeof(buffer);
|
|
n = read(fd, buffer, nbytes );
|
|
if( n >= 0 && n > nbytes )
|
|
{
|