Skip to content

Fix iolist inspect#715

Merged
filmor merged 1 commit intomasterfrom
binary-inspect
Dec 1, 2025
Merged

Fix iolist inspect#715
filmor merged 1 commit intomasterfrom
binary-inspect

Conversation

@filmor
Copy link
Member

@filmor filmor commented Dec 1, 2025

In Binary::io_list, we incorrectly attach the original term to the Binary object. This leads to subsequent calls failing or doing unexpected things.

Now, instead, we create a new Term for the ErlNifBinary and put it in Binary. Sadly, our test for this was also wrong :/. I fixed it and added additional tests.

@rusterlium rusterlium deleted a comment from Copilot AI Dec 1, 2025
@filmor filmor linked an issue Dec 1, 2025 that may be closed by this pull request
@filmor filmor marked this pull request as ready for review December 1, 2025 11:55
@filmor filmor merged commit 0ff9ab1 into master Dec 1, 2025
144 of 256 checks passed
@filmor filmor deleted the binary-inspect branch December 2, 2025 11:31
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.

Binary::from_iolist unsound through Binary::make_subbinary

2 participants