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

check msg magic to avoid invalid memory allocate #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kungf
Copy link

@kungf kungf commented Aug 2, 2021

Now raft uses data[0:4] as the message size, but data[0:4] can be
any value, if we not check the messages whether they are sended by
raft itself, the memory may be very big.

Signed-off-by: kungf [email protected]

Now raft uses data[0:4] as the message size, but data[0:4] can be
any value, if we not check the messages whether they are sended by
raft itself, the memory may be very big.

Signed-off-by: kungf <[email protected]>
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