Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix assertion failure in SimpleRandomizer::getRandomBytes #823

Merged
merged 1 commit into from
Jan 7, 2017

Conversation

tatsuhiro-t
Copy link
Collaborator

errno might not be initialized to 0, and we may get both rv == -1 and
errno != ENOSYS. This leads to assertion failure. Since
getrandom_linux always returns -1 on failure, checking errno is
useless in this function.

See #336 (comment)

errno might not be initialized to 0, and we may get both rv == -1 and
errno != ENOSYS.  This leads to assertion failure.  Since
getrandom_linux always returns -1 on failure, checking errno is
useless in this function.
@tatsuhiro-t tatsuhiro-t added the bug label Jan 6, 2017
@tatsuhiro-t tatsuhiro-t added this to the v1.31.0 milestone Jan 6, 2017
@tatsuhiro-t tatsuhiro-t merged commit 6abf238 into master Jan 7, 2017
@tatsuhiro-t tatsuhiro-t deleted the fix-getrandom-assertion-failure branch January 7, 2017 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant