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

Commit 07fdd3d

Browse files
committed
Fix TaintStep.expected: fix io.Pipe logic, remove rune/byte read/write
1 parent c4a493f commit 07fdd3d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
| io.go:32:19:32:23 | &... | io.go:31:7:31:10 | definition of buf1 |
2222
| io.go:32:20:32:23 | buf1 | io.go:32:19:32:23 | &... |
2323
| io.go:34:16:34:21 | reader | io.go:32:3:32:4 | definition of w2 |
24-
| io.go:38:3:38:3 | definition of r | io.go:38:3:38:19 | ... := ...[1] |
24+
| io.go:38:6:38:6 | definition of w | io.go:38:3:38:19 | ... := ...[0] |
2525
| io.go:38:11:38:19 | call to Pipe | io.go:38:3:38:19 | ... := ...[0] |
2626
| io.go:38:11:38:19 | call to Pipe | io.go:38:3:38:19 | ... := ...[1] |
2727
| io.go:39:17:39:31 | "some string\\n" | io.go:38:6:38:6 | definition of w |
@@ -35,10 +35,8 @@
3535
| io.go:60:19:60:21 | buf | io.go:60:18:60:21 | &... |
3636
| io.go:61:21:61:26 | "test" | io.go:60:3:60:3 | definition of w |
3737
| io.go:65:31:65:43 | "some string" | io.go:65:13:65:44 | call to NewReader |
38-
| io.go:66:11:66:16 | reader | io.go:66:3:66:27 | ... := ...[0] |
3938
| io.go:66:11:66:27 | call to ReadByte | io.go:66:3:66:27 | ... := ...[0] |
4039
| io.go:66:11:66:27 | call to ReadByte | io.go:66:3:66:27 | ... := ...[1] |
41-
| io.go:68:21:68:21 | t | io.go:67:7:67:13 | definition of bwriter |
4240
| io.go:72:31:72:43 | "some string" | io.go:72:13:72:44 | call to NewReader |
4341
| io.go:74:3:74:8 | reader | io.go:73:3:73:5 | definition of buf |
4442
| io.go:77:31:77:43 | "some string" | io.go:77:13:77:44 | call to NewReader |
@@ -63,7 +61,6 @@
6361
| io.go:104:28:104:28 | r | io.go:104:8:104:36 | call to NewSectionReader |
6462
| io.go:105:22:105:22 | s | io.go:105:11:105:19 | selection of Stdout |
6563
| io.go:108:26:108:38 | "some string" | io.go:108:8:108:39 | call to NewReader |
66-
| io.go:109:16:109:16 | r | io.go:109:3:109:27 | ... := ...[0] |
6764
| io.go:109:16:109:27 | call to ReadRune | io.go:109:3:109:27 | ... := ...[0] |
6865
| io.go:109:16:109:27 | call to ReadRune | io.go:109:3:109:27 | ... := ...[1] |
6966
| io.go:109:16:109:27 | call to ReadRune | io.go:109:3:109:27 | ... := ...[2] |

0 commit comments

Comments
 (0)