mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
C#: Update expected outputs.
This commit is contained in:
@@ -27,7 +27,6 @@ alwaysNonNull
|
||||
| System.Text.Encoder System.Text.ASCIIEncoding.GetEncoder() |
|
||||
| System.Text.Encoder System.Text.Encoding.GetEncoder() |
|
||||
| System.Text.Encoder System.Text.EncodingNLS.GetEncoder() |
|
||||
| System.Text.Encoder System.Text.OSEncoding.GetEncoder() |
|
||||
| System.Text.Encoder System.Text.UTF7Encoding.GetEncoder() |
|
||||
| System.Text.Encoder System.Text.UTF8Encoding.GetEncoder() |
|
||||
| System.Text.Encoder System.Text.UTF32Encoding.GetEncoder() |
|
||||
|
||||
@@ -2,7 +2,7 @@ import cil
|
||||
import semmle.code.cil.CallableReturns
|
||||
|
||||
predicate relevantMethod(CIL::Method m) {
|
||||
m.getName() = "GetEncoder"
|
||||
m.getName() = "GetEncoder" and not m.getDeclaringType().getName() = "OSEncoding"
|
||||
or
|
||||
m.getName() = "get_Item"
|
||||
or
|
||||
|
||||
@@ -31,11 +31,11 @@
|
||||
| C:/dev/projects/Sandbox/PortablePdb/Class1.cs:10:4:10:19 | 24: br.s 25: |
|
||||
| C:/dev/projects/Sandbox/PortablePdb/Class1.cs:11:3:11:4 | 25: ldloc.3 |
|
||||
| C:/dev/projects/Sandbox/PortablePdb/Class1.cs:11:3:11:4 | 26: ret |
|
||||
| EmbeddedPdb, Version=1.0.0.0, Culture=neutral | 0: ldarg.0 |
|
||||
| EmbeddedPdb, Version=1.0.0.0, Culture=neutral | 1: call System.Object..ctor |
|
||||
| EmbeddedPdb, Version=1.0.0.0, Culture=neutral | 2: nop |
|
||||
| EmbeddedPdb, Version=1.0.0.0, Culture=neutral | 3: ret |
|
||||
| PortablePdb, Version=1.0.0.0, Culture=neutral | 0: ldarg.0 |
|
||||
| PortablePdb, Version=1.0.0.0, Culture=neutral | 1: call System.Object..ctor |
|
||||
| PortablePdb, Version=1.0.0.0, Culture=neutral | 2: nop |
|
||||
| PortablePdb, Version=1.0.0.0, Culture=neutral | 3: ret |
|
||||
| EmbeddedPdb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | 0: ldarg.0 |
|
||||
| EmbeddedPdb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | 1: call System.Object..ctor |
|
||||
| EmbeddedPdb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | 2: nop |
|
||||
| EmbeddedPdb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | 3: ret |
|
||||
| PortablePdb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | 0: ldarg.0 |
|
||||
| PortablePdb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | 1: call System.Object..ctor |
|
||||
| PortablePdb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | 2: nop |
|
||||
| PortablePdb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | 3: ret |
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
| System.Int32 EmbeddedPdb.Class1.Method() | C:/dev/projects/Sandbox/EmbeddedPdb/Class1.cs:6:3:6:4 | true |
|
||||
| System.Int32 EmbeddedPdb.Class1.Method() | EmbeddedPdb, Version=1.0.0.0, Culture=neutral | false |
|
||||
| System.Int32 EmbeddedPdb.Class1.Method() | EmbeddedPdb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | false |
|
||||
| System.Int32 PortablePdb.Class1.Factorial(System.Int32) | C:/dev/projects/Sandbox/PortablePdb/Class1.cs:6:3:6:4 | true |
|
||||
| System.Int32 PortablePdb.Class1.Factorial(System.Int32) | PortablePdb, Version=1.0.0.0, Culture=neutral | false |
|
||||
| System.Int32 PortablePdb.Class1.Factorial(System.Int32) | PortablePdb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | false |
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
| EmbeddedPdb.dll:0:0:0:0 | EmbeddedPdb, Version=1.0.0.0, Culture=neutral |
|
||||
| PdbOnly.dll:0:0:0:0 | PdbOnly, Version=1.0.0.0, Culture=neutral |
|
||||
| EmbeddedPdb.dll:0:0:0:0 | EmbeddedPdb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null |
|
||||
| PdbOnly.dll:0:0:0:0 | PdbOnly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null |
|
||||
|
||||
Reference in New Issue
Block a user