-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more sanity checks on a new connection (#508)
* 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.
- Loading branch information
1 parent
929132f
commit 32502e4
Showing
2 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters