Fix test and model

This commit is contained in:
Ed Minnix
2024-03-17 22:54:19 -04:00
committed by Michael Nebel
parent 1f04229def
commit 9ed8ca27a1
2 changed files with 2 additions and 2 deletions

View File

@@ -108,4 +108,4 @@ extensions:
pack: codeql/csharp-all
extensible: summaryModel
data:
- ["Dapper", "SqlMapper", False, "AsList<T>", "(System.Collections.Generic.IEnumerable<T>)", "", "Argument[0].WithElement", "ReturnValue", "taint", "manual"]
- ["Dapper", "SqlMapper", False, "AsList<T>", "(System.Collections.Generic.IEnumerable<T>)", "", "Argument[0].Element", "ReturnValue.Element", "taint", "manual"]

View File

@@ -41,7 +41,7 @@ namespace Test
using (var connection = new SqlConnection(connectionString))
{
var results = connection.Query<object>(query).AsList();
Sink(results); // $ hasTaintFlow=line:43
Sink(results[0]); // $ hasTaintFlow=line:43
}
}