Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 9293bcd

Browse files
gagliardettosmowton
authored andcommitted
Fix ql/test/library-tests/semmle/go/frameworks/TaintSteps/TaintStep.expected: calls to strings.NewReader are a step now.
1 parent 3075294 commit 9293bcd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

ql/test/library-tests/semmle/go/frameworks/TaintSteps/TaintStep.expected

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,19 @@
55
| crypto.go:11:18:11:57 | call to Open | crypto.go:11:2:11:57 | ... := ...[0] |
66
| crypto.go:11:18:11:57 | call to Open | crypto.go:11:2:11:57 | ... := ...[1] |
77
| crypto.go:11:42:11:51 | ciphertext | crypto.go:11:2:11:57 | ... := ...[0] |
8+
| io.go:13:31:13:43 | "some string" | io.go:13:13:13:44 | call to NewReader |
89
| io.go:15:3:15:3 | definition of w | io.go:15:23:15:27 | &... |
910
| io.go:15:3:15:3 | definition of w | io.go:15:30:15:34 | &... |
1011
| io.go:15:23:15:27 | &... | io.go:14:7:14:10 | definition of buf1 |
1112
| io.go:15:24:15:27 | buf1 | io.go:15:23:15:27 | &... |
1213
| io.go:15:30:15:34 | &... | io.go:14:13:14:16 | definition of buf2 |
1314
| io.go:15:31:15:34 | buf2 | io.go:15:30:15:34 | &... |
1415
| io.go:17:14:17:19 | reader | io.go:15:3:15:3 | definition of w |
16+
| io.go:21:31:21:43 | "some string" | io.go:21:13:21:44 | call to NewReader |
1517
| io.go:24:19:24:23 | &... | io.go:22:7:22:10 | definition of buf1 |
1618
| io.go:24:20:24:23 | buf1 | io.go:24:19:24:23 | &... |
1719
| io.go:26:21:26:26 | reader | io.go:24:3:24:4 | definition of w2 |
20+
| io.go:30:31:30:43 | "some string" | io.go:30:13:30:44 | call to NewReader |
1821
| io.go:32:19:32:23 | &... | io.go:31:7:31:10 | definition of buf1 |
1922
| io.go:32:20:32:23 | buf1 | io.go:32:19:32:23 | &... |
2023
| io.go:34:16:34:21 | reader | io.go:32:3:32:4 | definition of w2 |
@@ -24,34 +27,47 @@
2427
| io.go:39:17:39:31 | "some string\\n" | io.go:38:6:38:6 | definition of w |
2528
| io.go:42:16:42:16 | r | io.go:41:3:41:5 | definition of buf |
2629
| io.go:43:13:43:15 | buf | io.go:43:13:43:24 | call to String |
30+
| io.go:47:31:47:43 | "some string" | io.go:47:13:47:44 | call to NewReader |
2731
| io.go:49:18:49:23 | reader | io.go:48:3:48:5 | definition of buf |
32+
| io.go:53:31:53:43 | "some string" | io.go:53:13:53:44 | call to NewReader |
2833
| io.go:55:15:55:20 | reader | io.go:54:3:54:5 | definition of buf |
2934
| io.go:60:18:60:21 | &... | io.go:59:7:59:9 | definition of buf |
3035
| io.go:60:19:60:21 | buf | io.go:60:18:60:21 | &... |
3136
| io.go:61:21:61:26 | "test" | io.go:60:3:60:3 | definition of w |
37+
| io.go:65:31:65:43 | "some string" | io.go:65:13:65:44 | call to NewReader |
3238
| io.go:66:11:66:16 | reader | io.go:66:3:66:27 | ... := ...[0] |
3339
| io.go:66:11:66:27 | call to ReadByte | io.go:66:3:66:27 | ... := ...[0] |
3440
| io.go:66:11:66:27 | call to ReadByte | io.go:66:3:66:27 | ... := ...[1] |
3541
| io.go:68:21:68:21 | t | io.go:67:7:67:13 | definition of bwriter |
42+
| io.go:72:31:72:43 | "some string" | io.go:72:13:72:44 | call to NewReader |
3643
| io.go:74:3:74:8 | reader | io.go:73:3:73:5 | definition of buf |
44+
| io.go:77:31:77:43 | "some string" | io.go:77:13:77:44 | call to NewReader |
3745
| io.go:79:3:79:8 | reader | io.go:78:3:78:5 | definition of buf |
46+
| io.go:83:31:83:43 | "some string" | io.go:83:13:83:44 | call to NewReader |
3847
| io.go:84:24:84:29 | reader | io.go:84:9:84:33 | call to LimitReader |
3948
| io.go:85:22:85:23 | lr | io.go:85:11:85:19 | selection of Stdout |
49+
| io.go:89:27:89:36 | "reader1 " | io.go:89:9:89:37 | call to NewReader |
50+
| io.go:90:27:90:36 | "reader2 " | io.go:90:9:90:37 | call to NewReader |
51+
| io.go:91:27:91:35 | "reader3" | io.go:91:9:91:36 | call to NewReader |
4052
| io.go:92:23:92:24 | r1 | io.go:92:8:92:33 | call to MultiReader |
4153
| io.go:92:27:92:28 | r2 | io.go:92:8:92:33 | call to MultiReader |
4254
| io.go:92:31:92:32 | r3 | io.go:92:8:92:33 | call to MultiReader |
4355
| io.go:93:22:93:22 | r | io.go:93:11:93:19 | selection of Stdout |
56+
| io.go:96:26:96:38 | "some string" | io.go:96:8:96:39 | call to NewReader |
4457
| io.go:98:23:98:23 | r | io.go:98:10:98:30 | call to TeeReader |
4558
| io.go:98:23:98:23 | r | io.go:98:26:98:29 | &... |
4659
| io.go:98:26:98:29 | &... | io.go:97:7:97:9 | definition of buf |
4760
| io.go:98:27:98:29 | buf | io.go:98:26:98:29 | &... |
4861
| io.go:100:22:100:24 | tee | io.go:100:11:100:19 | selection of Stdout |
62+
| io.go:103:26:103:38 | "some string" | io.go:103:8:103:39 | call to NewReader |
4963
| io.go:104:28:104:28 | r | io.go:104:8:104:36 | call to NewSectionReader |
5064
| io.go:105:22:105:22 | s | io.go:105:11:105:19 | selection of Stdout |
65+
| io.go:108:26:108:38 | "some string" | io.go:108:8:108:39 | call to NewReader |
5166
| io.go:109:16:109:16 | r | io.go:109:3:109:27 | ... := ...[0] |
5267
| io.go:109:16:109:27 | call to ReadRune | io.go:109:3:109:27 | ... := ...[0] |
5368
| io.go:109:16:109:27 | call to ReadRune | io.go:109:3:109:27 | ... := ...[1] |
5469
| io.go:109:16:109:27 | call to ReadRune | io.go:109:3:109:27 | ... := ...[2] |
70+
| io.go:113:26:113:38 | "some string" | io.go:113:8:113:39 | call to NewReader |
5571
| io.go:114:3:114:3 | r | io.go:114:13:114:21 | selection of Stdout |
5672
| main.go:11:12:11:26 | call to Marshal | main.go:11:2:11:26 | ... := ...[0] |
5773
| main.go:11:12:11:26 | call to Marshal | main.go:11:2:11:26 | ... := ...[1] |

0 commit comments

Comments
 (0)