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

fix(gossip): Fix invalid free #153

Merged
merged 1 commit into from
Jun 4, 2024
Merged

fix(gossip): Fix invalid free #153

merged 1 commit into from
Jun 4, 2024

Conversation

InKryption
Copy link
Contributor

This involves passing the "message allocator" as a more general "table allocator" at the initialization site of gossip service, to allow the gossip table to properly free the data with the right allocator.

Merging this should be high priority, because currently there is a panic in a currently very reachable set of codepaths, which only manifested when testing on mainnet.

@InKryption InKryption requested a review from 0xNineteen June 3, 2024 23:57
@InKryption
Copy link
Contributor Author

Closes #152.

src/gossip/service.zig Outdated Show resolved Hide resolved
src/cmd/cmd.zig Outdated Show resolved Hide resolved
This involves passing the "message allocator" as a more general
"table allocator" at the initialisation site of gossip service,
to allow the gossip table to properly free the data with the right
allocator.
@InKryption InKryption force-pushed the ink/fix-invalid-free branch from 3aeb705 to 830ab90 Compare June 4, 2024 15:00
@InKryption InKryption requested a review from 0xNineteen June 4, 2024 15:00
@InKryption InKryption merged commit a5d1f34 into main Jun 4, 2024
2 checks passed
@InKryption InKryption deleted the ink/fix-invalid-free branch June 4, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants