-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly handle malformed gossip envelopes (#1037)
If a malformed envelope is read from the stream, an error is propagated synchronously up the stack. However, the envelope is unmarshaled into a nil message which is also propagated further up the stack asynchronously. Under very rare circumstances, the error is picked up later than the message, and a nil pointer panic occurs. This patch fixes this by returning early in case of an error. Change-Id: Ia17767ec2483d83d5fa4e7e22514c539232108a8 Signed-off-by: yacovm <[email protected]>
- Loading branch information
Showing
3 changed files
with
276 additions
and
3 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.