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

Analyzer doesn't track null values #2528

Closed

Description

@vitek-karas

Linker tracks null values in data flow which allows special handling in intrinsics in several ways. One such way is that calling reflection on a null type will always throw. So for example:

Type type = null;
type.GetMethod("Foo");

This code will not warn in any way and it will not cause marking of any additional items either - linker effectively ignores it.

Activity

  1. self-assigned this
    on Feb 12, 2022
  2. linked a pull request that will close this issue[DAM analyzer] Track null values #2604on Feb 16, 2022
  3. jtschuster commented on Feb 16, 2022

    @jtschuster
    Member

    Closing now that #2604 is merged

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions