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.