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 issue 5554 soundness #5874

Merged
merged 7 commits into from
Nov 8, 2024
Merged

Fix issue 5554 soundness #5874

merged 7 commits into from
Nov 8, 2024

Conversation

olivier-aws
Copy link
Contributor

Description

This PR updates the Dafny CS runtime to use BigIntegers instead of int32 when retrieving the number of elements in a multiset. As this number may be over INT_MAX, this change avoids potential overflows. This is similar to what is done in the Java runtime.

How has this been tested?

A test was added: Source/IntegrationTests/TestFiles/LitTests/LitTest/git-issues/git-issue-5554.dfy

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@olivier-aws olivier-aws linked an issue Nov 7, 2024 that may be closed by this pull request
@olivier-aws olivier-aws enabled auto-merge (squash) November 8, 2024 14:43
@olivier-aws olivier-aws merged commit 7415591 into master Nov 8, 2024
22 checks passed
@olivier-aws olivier-aws deleted the fix-issue-5554-soundness branch November 8, 2024 15:59
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.

C# backend: Multiset size overflow
2 participants