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

AddressSet.unify: fix reduction bug #2502

Merged
merged 1 commit into from
Jun 6, 2020
Merged

AddressSet.unify: fix reduction bug #2502

merged 1 commit into from
Jun 6, 2020

Conversation

terpstra
Copy link
Contributor

@terpstra terpstra commented Jun 5, 2020

If AddressSet.unify is ever passed a Seq with a duplicated AddressSet, it
will incorrectly widen that AddressSet. This can happen even if you called
.distinct before calling AddressSet.unify, because unification can merge two
AddressSets into a new AddressSet which collides with a pre-existing
overlap/duplicate.

Type of change: bug report
Impact: no functional change
Development Phase: implementation

Release Notes
Fixed a very bad bug introduced in 63becef on May 11.

If AddressSet.unify is ever passed a Seq with a duplicated AddressSet, it
will incorrectly widen that AddressSet.  This can happen even if you called
.distinct before calling AddressSet.unify, because unification can merge two
AddressSets into a new AddressSet which collides with a pre-existing
overlap/duplicate.
@terpstra terpstra requested a review from aswaterman June 5, 2020 06:13
Copy link
Member

@aswaterman aswaterman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed this fixes the case I ran into. Thanks!

@terpstra terpstra merged commit 49644db into master Jun 6, 2020
@terpstra terpstra deleted the fix-unify branch June 6, 2020 00:49
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.

2 participants