mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
C#: nint/System.IntPtr and nuint/System.UIntPtr are indistinguishable by the extractor.
This commit is contained in:
12
csharp/ql/test/library-tests/csharp11/nativeInt.ql
Normal file
12
csharp/ql/test/library-tests/csharp11/nativeInt.ql
Normal 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)
|
||||
Reference in New Issue
Block a user