mirror of
https://github.com/github/codeql.git
synced 2026-03-27 09:48:16 +01:00
1.6 KiB
1.6 KiB
Improvements to C# analysis
The following changes in version 1.25 affect C# analysis in all applications.
New queries
| Query | Tags | Purpose |
|---|
Changes to existing queries
| Query | Expected impact | Change |
|---|
Removal of old queries
Changes to code extraction
Changes to libraries
- The class
UnboundGenerichas been refined to only be those declarations that actually have type parameters. This means that non-generic nested types inside construced types, such asA<int>.B, no longer are considered unbound generics. (Such nested types do, however, still have relevant.getSourceDeclaration()s, for exampleA<>.B.) - The data-flow library has been improved, which affects most security queries by potentially
adding more results. Flow through methods now takes nested field reads/writes into account.
For example, the library is able to track flow from
"taint"toSink()via the methodGetF2F1()inclass C1 { string F1; } class C2 { C1 F2; string GetF2F1() => F2.F1; // Nested field read void M() { F2 = new C1() { F1 = "taint" }; Sink(GetF2F1()); // NEW: "taint" reaches here } }