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 crash when matching out empty binaries #6838

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

bjorng
Copy link
Contributor

@bjorng bjorng commented Feb 10, 2023

Code matching out empty binaries such as in the following example:

start() ->
    [0 || <<V1:0/bits, V1:0/bitstring, V2:0/bytes, V2:0/bits>> <= <<>>].

could crash the runtime system. (This bug is not present in OTP 25 or earlier.)

Thanks to Robin Morisset for noticing this bug.

Code matching out empty binaries such as in the following example:

    start() ->
        [0 || <<V1:0/bits, V1:0/bitstring, V2:0/bytes, V2:0/bits>> <= <<>>].

could crash the runtime system. (This bug is not present in OTP 25 or
earlier.)

Thanks to Robin Morisset for noticing this bug.
@bjorng bjorng added team:VM Assigned to OTP team VM fix testing currently being tested, tag is used by OTP internal CI labels Feb 10, 2023
@bjorng bjorng self-assigned this Feb 10, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 10, 2023

CT Test Results

       3 files     133 suites   48m 23s ⏱️
1 542 tests 1 489 ✔️ 51 💤 2
1 957 runs  1 883 ✔️ 70 💤 4

For more details on these failures, see this check.

Results for commit 86ff212.

♻️ 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 requested a review from jhogberg February 10, 2023 04:49
@bjorng bjorng merged commit 7e178ac into erlang:master Feb 10, 2023
@bjorng bjorng deleted the bjorn/jit/fix-zero-bs-match branch February 10, 2023 11:47
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.

1 participant