Skip to content

Correctly free null pointers#263

Merged
apoelstra merged 2 commits intoBlockstreamResearch:masterfrom
uncomputable:2025-01-free-null
Jan 29, 2025
Merged

Correctly free null pointers#263
apoelstra merged 2 commits intoBlockstreamResearch:masterfrom
uncomputable:2025-01-free-null

Conversation

@uncomputable
Copy link
Collaborator

Fixes #262

Explain the safety of rust_alloc, rust_calloc and rust_free.
Upgrade one addition to saturating_add to ensure safety.
Copy link
Collaborator

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 7cf1a90; successfully ran local tests; thanks! These are great improvements to the docs

@apoelstra apoelstra merged commit ca0c0eb into BlockstreamResearch:master Jan 29, 2025
16 checks passed
@uncomputable uncomputable deleted the 2025-01-free-null branch March 20, 2025 13:52
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.

rust_free does not handle NULL the way free does

2 participants