-
Notifications
You must be signed in to change notification settings - Fork 3k
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
beam_ssa_type: Fix bugs relating to subtraction in type inference #7489
beam_ssa_type: Fix bugs relating to subtraction in type inference #7489
Conversation
CT Test Results 2 files 296 suites 12m 13s ⏱️ Results for commit 3379f7c. ♻️ 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 |
erlfuzz found two crashes that only reproduce with this PR: f(_V0) when is_boolean(_V0), is_binary(_V0), _V0 andalso _V0 ->
ok. causes the following error:
And f(_V0) ->
try
_V0 = ok
catch
_ ->
<<
0
|| _V0 := _ <- ok,
(try ok of
_ when _V0, (_V0 andalso _V0) orelse trunc(ok) ->
ok
catch
_ ->
ok
end)
>>
end. causes the following error:
I don't know whether these two crashes are symptoms of a single bug or separate issues. |
Ah, I had hope it was something new since it needs the PR to trigger. But I guess it might have just revealed a pre-existing bug :-/. |
7c7bcd2
to
5610c3e
Compare
I take that back, it was a bug in this PR. Thanks! :D |
5610c3e
to
492cca7
Compare
Thanks for the fix. I checked and it solved all the crashing testcases found by erlfuzz. |
492cca7
to
3379f7c
Compare
Fixes #7488