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

[release/7.0] Ports fixes for not crashing/haning on recursive arrays #3231

Closed

Conversation

vitek-karas
Copy link
Member

This is a port of the trimmer/analyzer changes from dotnet/runtime#82818.

The main changes is to disallow array values in arrays - if we find an array element which is itself an array we replace it with unknown value.

This stops all kinds of weird recursion behavior in the analysis and fixes cases where the tool would either crash with stack overflow or hang (exponential explosion of states).

Adds the related tests as well.

This is a port of the trimmer/analyzer changes from dotnet/runtime#82818.

The main changes is to disallow array values in arrays - if we find an array element which is itself an array we replace it with unknown value.

This stops all kinds of weird recursion behavior in the analysis and fixes cases where the tool would either crash with stack overflow or hang (exponential explosion of states).

Adds the related tests as well.
@vitek-karas
Copy link
Member Author

This fixes the problem reported in dotnet/runtime#93076.

@vitek-karas
Copy link
Member Author

Replaced by a combined PR #3234.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants