File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
go/ql/test/library-tests/semmle/go/dataflow Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- | file://:0:0:0:0 | [summary param] 1 in append | file://:0:0:0:0 | [summary] to write: ReturnValue.ArrayElement in append |
2
- | file://:0:0:0:0 | [summary] read: Argument[0].ArrayElement in append | file://:0:0:0:0 | [summary] to write: ReturnValue.ArrayElement in append |
3
1
| file://:0:0:0:0 | function Encode | url.go:51:14:51:21 | selection of Encode |
4
2
| file://:0:0:0:0 | function EscapedPath | url.go:28:14:28:26 | selection of EscapedPath |
5
3
| file://:0:0:0:0 | function Get | url.go:52:14:52:18 | selection of Get |
Original file line number Diff line number Diff line change 1
1
import go
2
2
3
3
from DataFlow:: Node nd , DataFlow:: Node succ
4
- where DataFlow:: localFlowStep ( nd , succ )
4
+ where
5
+ DataFlow:: localFlowStep ( nd , succ ) and
6
+ ( exists ( nd .getFile ( ) ) or exists ( succ .getFile ( ) ) )
5
7
select nd , succ
Original file line number Diff line number Diff line change 1
- | file://:0:0:0:0 | [summary param] 1 in append | file://:0:0:0:0 | [summary] to write: ReturnValue.ArrayElement in append |
2
- | file://:0:0:0:0 | [summary] read: Argument[0].ArrayElement in append | file://:0:0:0:0 | [summary] to write: ReturnValue.ArrayElement in append |
3
1
| main.go:3:6:3:11 | function source | main.go:23:31:23:36 | source |
4
2
| main.go:3:6:3:11 | function source | main.go:31:31:31:36 | source |
5
3
| main.go:3:6:3:11 | function source | main.go:40:30:40:35 | source |
Original file line number Diff line number Diff line change 1
1
import go
2
2
3
3
from DataFlow:: Node nd , DataFlow:: Node succ
4
- where DataFlow:: localFlowStep ( nd , succ )
4
+ where
5
+ DataFlow:: localFlowStep ( nd , succ ) and
6
+ ( exists ( nd .getFile ( ) ) or exists ( succ .getFile ( ) ) )
5
7
select nd , succ
You can’t perform that action at this time.
0 commit comments