Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

[DAM analyzer] Track null values - #2604

Merged
vitek-karas merged 1 commit into
dotnet:feature/damAnalyzerfrom
sbomer:trackNullValues
Feb 15, 2022
Merged

vitek-karas merged 1 commit into
dotnet:feature/damAnalyzerfrom
sbomer:trackNullValues

Conversation

@sbomer

@sbomer sbomer commented Feb 12, 2022 •

Copy link
Copy Markdown
Member

This tracks null values and adjusts the handling of null values in a
few intrinsics which either take structs that can never be null, or
don't return when the input is null.

MethodBodyScanner needed a small adjustment to correctly deal with the
case where an intrinsic returns TopValue.

Fixes #2528

This tracks null values and adjusts the handling of null values in a
few intrinsics which either take structs that can never be null, or
don't return when the input is null.

MethodBodyScanner needed a small adjustment to correctly deal with the
case where an intrinsic returns TopValue.
@sbomer
sbomer requested a review from marek-safar as a code owner February 12, 2022 01:40
@sbomer sbomer self-assigned this Feb 12, 2022

@vitek-karas vitek-karas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot for the fix.

@vitek-karas
vitek-karas merged commit bd2cc03 into dotnet:feature/damAnalyzer Feb 15, 2022
@jtschuster jtschuster linked an issue Feb 16, 2022 that may be closed by this pull request
@sbomer
sbomer deleted the trackNullValues branch February 22, 2022 18:12
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
This tracks null values and adjusts the handling of null values in a
few intrinsics which either take structs that can never be null, or
don't return when the input is null.

MethodBodyScanner needed a small adjustment to correctly deal with the
case where an intrinsic returns TopValue.

Commit migrated from dotnet/linker@bd2cc03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Analyzer doesn't track null values

2 participants