]> git.ipfire.org Git - thirdparty/glibc.git/commit
stdlib: Fix __getrandom_nocancel type and arc4random usage (BZ #29638)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 29 Sep 2022 19:15:20 +0000 (16:15 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 30 Sep 2022 18:24:49 +0000 (15:24 -0300)
commit13db9ee2cb3b77e25f852be7d6952882e1be6f00
tree7248da21444c714b89322a372cd0c7ec0247c0fb
parent8b10727a9af3e2aa4b27dff0116bb8d3c9afce3d
stdlib: Fix __getrandom_nocancel type and arc4random usage (BZ #29638)

Using an unsigned type prevents the fallback to be used if kernel
does not support getrandom syscall.

Checked on x86_64-linux-gnu.

Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
stdlib/arc4random.c
sysdeps/unix/sysv/linux/not-cancel.h