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

Add more sanity checks on a new connection #508

Merged
merged 1 commit into from
May 15, 2024
Merged

Conversation

greensky00
Copy link
Contributor

  • If there is an incoming random message, where CRC_ON_ENTIRE_MESSAGE flag is randomly set, NuRaft tries to read the entire message for CRC check. That requires allocating a memory blob with the given size (also a random number) which most likely causes problem.

  • Added more sanity checks before the memory allocation.

* If there is an incoming random message, where `CRC_ON_ENTIRE_MESSAGE`
flag is randomly set, NuRaft tries to read the entire message for CRC
check. That requires allocating a memory blob with the given size
(also a random number) which most likely causes problem.

* Added more sanity checks before the memory allocation.
@greensky00 greensky00 merged commit 32502e4 into eBay:master May 15, 2024
1 check passed
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.

1 participant