File tree 2 files changed +5
-2
lines changed
lib/semmle/code/csharp/security/dataflow/flowsinks
test/library-tests/standalone/externalLocationSink
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 {
27
27
*/
28
28
class LogMessageSink extends ExternalLocationSink {
29
29
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
32
33
this .getExpr ( ) =
33
34
any ( ExtensionMethodCall call |
34
35
call .getTarget ( ) .( ExtensionMethod ) .getExtendedType ( ) instanceof LoggerType
Original file line number Diff line number Diff line change 1
1
#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" |
2
4
compilationErrors
3
5
| standalone.cs:16:12:16:18 | CS0104: 'ILogger' is an ambiguous reference between 'A.ILogger' and 'B.ILogger' |
4
6
methodCalls
You can’t perform that action at this time.
0 commit comments