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

#15 SPDB-720: fault_injection_fs: avoid division by zero in DropRandomUns… #17

Conversation

Yuval-Ariel
Copy link
Contributor

…yncedData()

When there's no data in the buffer, there's nothing to drop anyway, and
providing 0 to the rand->Uniform() function results in a division by zero
error (SIGFPE), so just check and do nothing in that case.

@Yuval-Ariel Yuval-Ariel changed the title SPDB-720: fault_injection_fs: avoid division by zero in DropRandomUns… #15 SPDB-720: fault_injection_fs: avoid division by zero in DropRandomUns… Jun 20, 2022
…yncedData()

When there's no data in the buffer, there's nothing to drop anyway, and
providing 0 to the rand->Uniform() function results in a division by zero
error (SIGFPE), so just check and do nothing in that case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fault_injection_fs: avoid division by zero in DropRandomUnsyncedData()
2 participants