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

Bugs and leaks #36

Merged
merged 8 commits into from
May 20, 2024
Merged

Bugs and leaks #36

merged 8 commits into from
May 20, 2024

Conversation

hamishcoleman
Copy link
Contributor

The speck_init() function will always allocate its own buffer, so dont
allocate one as that leads to memory leaks.

In some configuations, the speck_init will not use the standard malloc()
and this may cause issues when trying to use free() on the returned ctx.

This issue definitely occurs with the Windows builds and lead to the
supernode aborting with "exception code 0xc0000374 (Heap Corruption)"

(Ref n42n#30)
It is simply a different name for speck_context_t, so use that name
everywhere
@hamishcoleman hamishcoleman self-assigned this May 20, 2024
@hamishcoleman hamishcoleman merged commit 67078b1 into n42n:main May 20, 2024
31 checks passed
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