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

zstd: Fix copy of dict binary to environment #9447

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

garazdawi
Copy link
Contributor

If we don't make a copy of the binary before referencing it in the dict and it is a heap binary, the binary will be released upon the next GC and the dict will segfault.

@garazdawi garazdawi added team:VM Assigned to OTP team VM fix testing currently being tested, tag is used by OTP internal CI labels Feb 17, 2025
@garazdawi garazdawi added this to the OTP-28.0 milestone Feb 17, 2025
@garazdawi garazdawi requested a review from sverker February 17, 2025 08:50
@garazdawi garazdawi self-assigned this Feb 17, 2025
Copy link
Contributor

github-actions bot commented Feb 17, 2025

CT Test Results

    4 files    227 suites   1h 53m 42s ⏱️
3 662 tests 3 569 ✅  93 💤 0 ❌
4 756 runs  4 640 ✅ 116 💤 0 ❌

Results for commit bd4dfcc.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

sverker
sverker previously approved these changes Feb 17, 2025
If we don't make a copy of the binary before referencing it in
the dict and it is a heap binary, the binary will be released
upon the next GC and the dict will segfault.
@garazdawi garazdawi merged commit de3754c into erlang:master Feb 20, 2025
27 checks passed
@garazdawi garazdawi deleted the lukas/erts/fix-zstd-dict-env branch February 20, 2025 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants