Skip to content

Commit 39aaa38

Browse files
committed
C#: Update EntityFramework test
1 parent 355c4f7 commit 39aaa38

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

csharp/ql/test/library-tests/frameworks/EntityFramework/Dataflow.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
| EntityFrameworkCore.cs:50:18:50:28 | access to local variable taintSource | EntityFrameworkCore.cs:47:31:47:39 | "tainted" |
44
| EntityFrameworkCore.cs:51:18:51:46 | (...) ... | EntityFrameworkCore.cs:47:31:47:39 | "tainted" |
55
| EntityFrameworkCore.cs:52:18:52:42 | (...) ... | EntityFrameworkCore.cs:47:31:47:39 | "tainted" |
6+
| EntityFrameworkCore.cs:53:18:53:66 | (...) ... | EntityFrameworkCore.cs:47:31:47:39 | "tainted" |
67
| EntityFrameworkCore.cs:60:18:60:24 | access to property Name | EntityFrameworkCore.cs:47:31:47:39 | "tainted" |
78
| EntityFrameworkCore.cs:61:18:61:34 | access to property Name | EntityFrameworkCore.cs:47:31:47:39 | "tainted" |

csharp/ql/test/library-tests/frameworks/EntityFramework/EntityFrameworkCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void TestDataFlow()
5050
Sink(taintSource); // Tainted
5151
Sink(new RawSqlString(taintSource)); // Tainted
5252
Sink((RawSqlString)taintSource); // Tainted
53-
Sink((RawSqlString)(FormattableString)$"{taintSource}"); // Not tainted
53+
Sink((RawSqlString)(FormattableString)$"{taintSource}"); // Tainted
5454

5555
// Tainted via database, even though technically there were no reads or writes to the database in this particular case.
5656
var p1 = new Person { Name = taintSource };

0 commit comments

Comments
 (0)