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 unsafe code generation for binary matching #8622

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

bjorng
Copy link
Contributor

@bjorng bjorng commented Jun 27, 2024

The common sub expression (CSE) optimization could cause a call to a guard BIF to be inserted into the middle of a sequence of binary syntax matching instructions, which in turn could cause unsafe bs_match (BEAM) instructions to be emitted.

Resolves #8617

The common sub expression (CSE) optimization could cause a call to a
guard BIF to be inserted into the middle of a sequence of binary
syntax matching instructions, which in turn could cause unsafe
`bs_match` (BEAM) instructions to be emitted.

Resolves erlang#8617
@bjorng bjorng added team:VM Assigned to OTP team VM fix labels Jun 27, 2024
@bjorng bjorng self-assigned this Jun 27, 2024
Copy link
Contributor

github-actions bot commented Jun 27, 2024

CT Test Results

    2 files    324 suites   10m 57s ⏱️
  817 tests   815 ✅ 2 💤 0 ❌
5 420 runs  5 418 ✅ 2 💤 0 ❌

Results for commit 60f8f9e.

♻️ 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

@bjorng bjorng added the testing currently being tested, tag is used by OTP internal CI label Jun 27, 2024
@bjorng bjorng merged commit e74dd94 into erlang:master Jun 28, 2024
17 checks passed
@bjorng bjorng deleted the bjorn/compiler/fix-bs-match/GH-8617 branch June 28, 2024 11:28
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.

[erlc] internal consistency check failed
1 participant