Skip to content

Several fuzz-found bugfixes. #246

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

Merged

Conversation

TheBlueMatt
Copy link
Collaborator

366e796 fixed the same crash for
Errs that come up during handshake, but was incomplete and should
have just dropped the node_id being different based on
inbound/outbound. This patch does so and actually fixes the issue.

Found by fuzzer.

@TheBlueMatt TheBlueMatt force-pushed the 2018-11-fuzz-crash-redux branch from 1e43c55 to 8cbb3f7 Compare November 9, 2018 02:37
366e796 fixed the same crash for
Errs that come up during handshake, but was incomplete and should
have just dropped the node_id being different based on
inbound/outbound. This patch does so and actually fixes the issue.

Found by fuzzer.
This fixes a bug in 78232f2 found
by fuzzer - if the channel isn't yet fully established we will call
get_channel_update(), get an Err result, and then unwrap() it. If
this actually happens it means someone on the network is making up
short_channel_ids and trying to route over them, but that shouldn't
result in us crashing
@TheBlueMatt TheBlueMatt force-pushed the 2018-11-fuzz-crash-redux branch from 8cbb3f7 to 3a066cc Compare November 20, 2018 20:53
@TheBlueMatt TheBlueMatt changed the title Fix pre-noise peer disconnect panic on non-Err disconnect Several fuzz-found bugfixes. Nov 20, 2018
@TheBlueMatt
Copy link
Collaborator Author

Added another bugfix commit found by fuzzer and one to make fuzzing a bit more performant.

@TheBlueMatt TheBlueMatt added this to the 0.0.7 milestone Nov 20, 2018
@TheBlueMatt TheBlueMatt merged commit 241b0cb into lightningdevkit:master Nov 21, 2018
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