Skip to content

Commit 9ed8ca2

Browse files
egregius313michaelnebel
authored andcommitted
Fix test and model
1 parent 1f04229 commit 9ed8ca2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

csharp/ql/lib/ext/Dapper.model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,4 @@ extensions:
108108
pack: codeql/csharp-all
109109
extensible: summaryModel
110110
data:
111-
- ["Dapper", "SqlMapper", False, "AsList<T>", "(System.Collections.Generic.IEnumerable<T>)", "", "Argument[0].WithElement", "ReturnValue", "taint", "manual"]
111+
- ["Dapper", "SqlMapper", False, "AsList<T>", "(System.Collections.Generic.IEnumerable<T>)", "", "Argument[0].Element", "ReturnValue.Element", "taint", "manual"]

csharp/ql/test/library-tests/dataflow/flowsources/stored/database/dapper/UseDapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static void Bad04(string connectionString, string query)
4141
using (var connection = new SqlConnection(connectionString))
4242
{
4343
var results = connection.Query<object>(query).AsList();
44-
Sink(results); // $ hasTaintFlow=line:43
44+
Sink(results[0]); // $ hasTaintFlow=line:43
4545
}
4646
}
4747

0 commit comments

Comments
 (0)