Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7010ca8

Browse files
committed
C#: Fix whitespace in test.
1 parent edba241 commit 7010ca8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

csharp/ql/test/query-tests/Security Features/CWE-134/UncontrolledFormatString.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void ProcessRequest(HttpContext ctx)
2727

2828
void OnButtonClicked()
2929
{
30-
// BAD: Uncontrolled format string.
31-
String.Format(box1.Text, "Do not do this");
30+
// BAD: Uncontrolled format string.
31+
String.Format(box1.Text, "Do not do this");
3232
}
3333
}

csharp/ql/test/query-tests/Security Features/CWE-134/UncontrolledFormatString.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ nodes
88
| UncontrolledFormatString.cs:17:46:17:49 | access to local variable path |
99
| UncontrolledFormatString.cs:20:23:20:38 | "Do not do this" |
1010
| UncontrolledFormatString.cs:23:46:23:61 | "Do not do this" |
11-
| UncontrolledFormatString.cs:31:20:31:28 | access to property Text |
11+
| UncontrolledFormatString.cs:31:23:31:31 | access to property Text |
1212
| UncontrolledFormatStringBad.cs:9:25:9:47 | access to property QueryString |
1313
| UncontrolledFormatStringBad.cs:12:39:12:44 | access to local variable format |
1414
#select
1515
| UncontrolledFormatString.cs:14:23:14:26 | access to local variable path | UncontrolledFormatString.cs:11:23:11:45 | access to property QueryString | UncontrolledFormatString.cs:14:23:14:26 | access to local variable path | $@ flows to here and is used as a format string. | UncontrolledFormatString.cs:11:23:11:45 | access to property QueryString | access to property QueryString |
1616
| UncontrolledFormatString.cs:17:46:17:49 | access to local variable path | UncontrolledFormatString.cs:11:23:11:45 | access to property QueryString | UncontrolledFormatString.cs:17:46:17:49 | access to local variable path | $@ flows to here and is used as a format string. | UncontrolledFormatString.cs:11:23:11:45 | access to property QueryString | access to property QueryString |
17-
| UncontrolledFormatString.cs:31:20:31:28 | access to property Text | UncontrolledFormatString.cs:31:20:31:28 | access to property Text | UncontrolledFormatString.cs:31:20:31:28 | access to property Text | $@ flows to here and is used as a format string. | UncontrolledFormatString.cs:31:20:31:28 | access to property Text | access to property Text |
17+
| UncontrolledFormatString.cs:31:23:31:31 | access to property Text | UncontrolledFormatString.cs:31:23:31:31 | access to property Text | UncontrolledFormatString.cs:31:23:31:31 | access to property Text | $@ flows to here and is used as a format string. | UncontrolledFormatString.cs:31:23:31:31 | access to property Text | access to property Text |
1818
| UncontrolledFormatStringBad.cs:12:39:12:44 | access to local variable format | UncontrolledFormatStringBad.cs:9:25:9:47 | access to property QueryString | UncontrolledFormatStringBad.cs:12:39:12:44 | access to local variable format | $@ flows to here and is used as a format string. | UncontrolledFormatStringBad.cs:9:25:9:47 | access to property QueryString | access to property QueryString |

0 commit comments

Comments
 (0)