Skip to content

check msg magic to avoid invalid memory allocate#24

Open
kungf wants to merge 1 commit intotiglabs:masterfrom
kungf:msg_check
Open

check msg magic to avoid invalid memory allocate#24
kungf wants to merge 1 commit intotiglabs:masterfrom
kungf:msg_check

Conversation

@kungf
Copy link
Copy Markdown

@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 wings.wyang@gmail.com

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 <wings.wyang@gmail.com>
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