C#: nint/System.IntPtr and nuint/System.UIntPtr are indistinguishable by the extractor.

This commit is contained in:
Michael Nebel
2022-12-07 13:15:43 +01:00
parent 51f11f19cc
commit 2d9975d73f
3 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import csharp
import semmle.code.csharp.commons.QualifiedName
from LocalVariable v1, LocalVariable v2, Type t, string qualifier, string name
where
v1.getFile().getStem() = "NativeInt" and
v2.getFile().getStem() = "NativeInt" and
t = v1.getType() and
t = v2.getType() and
t.hasQualifiedName(qualifier, name) and
v1 != v2
select v1, v2, getQualifiedName(qualifier, name)