File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
lib/semmle/code/csharp/security/dataflow/flowsinks
test/library-tests/standalone/externalLocationSink Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,9 @@ private class ExternalModelSink extends ExternalLocationSink {
2727 */
2828class LogMessageSink extends ExternalLocationSink {
2929 LogMessageSink ( ) {
30- this .getExpr ( ) = any ( LoggerType i ) .getAMethod ( ) .getACall ( ) .getAnArgument ( )
31- or
30+ this .getExpr ( ) = any ( LoggerType i ) .getAMethod ( ) .getACall ( ) .getAnArgument ( ) or
31+ this .getExpr ( ) =
32+ any ( MethodCall call | call .getQualifier ( ) .getType ( ) instanceof LoggerType ) .getAnArgument ( ) or
3233 this .getExpr ( ) =
3334 any ( ExtensionMethodCall call |
3435 call .getTarget ( ) .( ExtensionMethod ) .getExtendedType ( ) instanceof LoggerType
Original file line number Diff line number Diff line change 11#select
2+ | standalone.cs:20:20:20:20 | access to parameter s | standalone.cs:20:20:20:20 | access to parameter s |
3+ | standalone.cs:25:28:25:32 | "abc" | standalone.cs:25:28:25:32 | "abc" |
24compilationErrors
35| standalone.cs:16:12:16:18 | CS0104: 'ILogger' is an ambiguous reference between 'A.ILogger' and 'B.ILogger' |
46methodCalls
You can’t perform that action at this time.
0 commit comments