Bug 29638 - stdlib: arc4random fallback is never used
Summary: stdlib: arc4random fallback is never used
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.36
: P2 normal
Target Milestone: 2.37
Assignee: Adhemerval Zanella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-29 19:13 UTC by Adhemerval Zanella
Modified: 2022-09-30 18:26 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adhemerval Zanella 2022-09-29 19:13:53 UTC
If getrandom syscall returns -1/ENOSYS the fallback is never used due an erroneous type used for __getrandom_nocancel and on arc4random (it should be ssize_t on both cases).
Comment 1 Adhemerval Zanella 2022-09-30 18:26:46 UTC
Fixed on 2.37.