mirror of
https://github.com/github/codeql.git
synced 2026-03-06 15:49:08 +01:00
1.3 KiB
1.3 KiB
Improvements to C# analysis
The following changes in version 1.23 affect C# analysis in all applications.
Changes to existing queries
| Query | Expected impact | Change |
|---|
Removal of old queries
Changes to code extraction
nameofexpressions are now extracted correctly when the name is a namespace.
Changes to QL libraries
- The new class
NamespaceAccessmodels accesses to namespaces, for example innameofexpressions. - The data-flow library now makes it easier to specify barriers/sanitizers
arising from guards by overriding the predicate
isBarrierGuard/isSanitizerGuardon data-flow and taint-tracking configurations respectively. - The data-flow library has been extended with a new feature to aid debugging.
Instead of specifying
isSink(Node n) { any() }on a configuration to explore the possible flow from a source, it is recommended to use the newConfiguration::hasPartialFlowpredicate, as this gives a more complete picture of the partial flow paths from a given source. The feature is disabled by default and can be enabled for individual configurations by overridingint explorationLimit().