Skip to content

Commit 1405052

Browse files
committed
Update test expectations
1 parent 1a7927d commit 1405052

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

go/ql/test/library-tests/semmle/go/frameworks/XNetHtml/ReflectedXss.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ edges
1313
| file://:0:0:0:0 | parameter -1 of TagAttr | file://:0:0:0:0 | [summary] to write: return (return[1]) in TagAttr |
1414
| file://:0:0:0:0 | parameter -1 of Text | file://:0:0:0:0 | [summary] to write: return (return[0]) in Text |
1515
| file://:0:0:0:0 | parameter -1 of Token | file://:0:0:0:0 | [summary] to write: return (return[0]) in Token |
16-
| test.go:10:2:10:42 | ... := ...[0] | test.go:14:42:14:53 | selection of Value |
16+
| test.go:11:2:11:42 | ... := ...[0] | test.go:14:42:14:53 | selection of Value |
1717
| test.go:14:22:14:54 | call to UnescapeString | test.go:14:15:14:55 | type conversion |
1818
| test.go:14:42:14:53 | selection of Value | file://:0:0:0:0 | parameter 0 of UnescapeString |
1919
| test.go:14:42:14:53 | selection of Value | test.go:14:22:14:54 | call to UnescapeString |
@@ -113,7 +113,7 @@ nodes
113113
| file://:0:0:0:0 | parameter -1 of TagAttr | semmle.label | parameter -1 of TagAttr |
114114
| file://:0:0:0:0 | parameter -1 of Text | semmle.label | parameter -1 of Text |
115115
| file://:0:0:0:0 | parameter -1 of Token | semmle.label | parameter -1 of Token |
116-
| test.go:10:2:10:42 | ... := ...[0] | semmle.label | ... := ...[0] |
116+
| test.go:11:2:11:42 | ... := ...[0] | semmle.label | ... := ...[0] |
117117
| test.go:14:15:14:55 | type conversion | semmle.label | type conversion |
118118
| test.go:14:22:14:54 | call to UnescapeString | semmle.label | call to UnescapeString |
119119
| test.go:14:42:14:53 | selection of Value | semmle.label | selection of Value |
@@ -183,7 +183,7 @@ subpaths
183183
| test.go:47:32:47:43 | selection of Body | file://:0:0:0:0 | parameter 0 of Parse | file://:0:0:0:0 | [summary] to write: return (return[0]) in Parse | test.go:47:2:47:44 | ... := ...[0] |
184184
| test.go:48:26:48:37 | taintedNode2 | file://:0:0:0:0 | parameter 0 of InsertBefore | file://:0:0:0:0 | [summary] to write: argument -1 in InsertBefore | test.go:46:6:46:15 | definition of cleanNode2 |
185185
#select
186-
| test.go:14:15:14:55 | type conversion | test.go:10:2:10:42 | ... := ...[0] | test.go:14:15:14:55 | type conversion | Cross-site scripting vulnerability due to $@. | test.go:10:2:10:42 | ... := ...[0] | user-provided value | test.go:0:0:0:0 | test.go | |
186+
| test.go:14:15:14:55 | type conversion | test.go:11:2:11:42 | ... := ...[0] | test.go:14:15:14:55 | type conversion | Cross-site scripting vulnerability due to $@. | test.go:11:2:11:42 | ... := ...[0] | user-provided value | test.go:0:0:0:0 | test.go | |
187187
| test.go:17:15:17:31 | type conversion | test.go:16:24:16:35 | selection of Body | test.go:17:15:17:31 | type conversion | Cross-site scripting vulnerability due to $@. | test.go:16:24:16:35 | selection of Body | user-provided value | test.go:0:0:0:0 | test.go | |
188188
| test.go:20:15:20:32 | type conversion | test.go:19:36:19:47 | selection of Body | test.go:20:15:20:32 | type conversion | Cross-site scripting vulnerability due to $@. | test.go:19:36:19:47 | selection of Body | user-provided value | test.go:0:0:0:0 | test.go | |
189189
| test.go:23:15:23:35 | type conversion | test.go:22:33:22:44 | selection of Body | test.go:23:15:23:35 | type conversion | Cross-site scripting vulnerability due to $@. | test.go:22:33:22:44 | selection of Body | user-provided value | test.go:0:0:0:0 | test.go | |
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
edges
2+
| file://:0:0:0:0 | parameter 0 of EscapeString | file://:0:0:0:0 | [summary] to write: return (return[0]) in EscapeString |
3+
| test.go:55:2:55:42 | ... := ...[0] | test.go:56:29:56:40 | selection of Value |
4+
| test.go:56:29:56:40 | selection of Value | file://:0:0:0:0 | parameter 0 of EscapeString |
5+
| test.go:56:29:56:40 | selection of Value | test.go:56:11:56:41 | call to EscapeString |
6+
nodes
7+
| file://:0:0:0:0 | [summary] to write: return (return[0]) in EscapeString | semmle.label | [summary] to write: return (return[0]) in EscapeString |
8+
| file://:0:0:0:0 | parameter 0 of EscapeString | semmle.label | parameter 0 of EscapeString |
9+
| test.go:55:2:55:42 | ... := ...[0] | semmle.label | ... := ...[0] |
10+
| test.go:56:11:56:41 | call to EscapeString | semmle.label | call to EscapeString |
11+
| test.go:56:29:56:40 | selection of Value | semmle.label | selection of Value |
12+
subpaths
13+
| test.go:56:29:56:40 | selection of Value | file://:0:0:0:0 | parameter 0 of EscapeString | file://:0:0:0:0 | [summary] to write: return (return[0]) in EscapeString | test.go:56:11:56:41 | call to EscapeString |
14+
#select
15+
| test.go:56:11:56:41 | call to EscapeString | test.go:55:2:55:42 | ... := ...[0] | test.go:56:11:56:41 | call to EscapeString | This query depends on a $@. | test.go:55:2:55:42 | ... := ...[0] | user-provided value |

0 commit comments

Comments
 (0)