Skip to content

Commit 6d585f9

Browse files
owen-mcCopilot
andcommitted
Go: Remove post-update nodes for read-only dereferences
Stop creating post-update nodes merely because a value is dereferenced. The read-chain propagation added in the preceding commit retains the nodes needed for writes and calls, including the explicit double-dereference write covered by the first commit's regression test. This prevents a callee's local pointer reassignment from spuriously flowing back to its caller through a read-only dereference. Remove the SPURIOUS expectations and update the affected node and path snapshots separately from the propagation change. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6faf7b1 commit 6d585f9

9 files changed

Lines changed: 4 additions & 70 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
category: minorAnalysis
33
---
4-
* Improved `DataFlow::PostUpdateNode` generation so post-update nodes propagate along the full chain of field reads, index reads, pointer dereferences, and channel receives when a nested value may be mutated.
4+
* Improved `DataFlow::PostUpdateNode` generation so post-update nodes propagate along the full chain of field reads, index reads, pointer dereferences, and channel receives when a nested value may be mutated, and are no longer generated on read-only pointer dereferences.

‎go/ql/lib/semmle/go/dataflow/internal/DataFlowNodes.qll‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -868,10 +868,7 @@ module Public {
868868
private predicate insnDirectlyHasPostUpdateNode(IR::Instruction insn) {
869869
exists(Expr e | insn = IR::evalExprInstruction(e.stripParens()) |
870870
e instanceof AddressExpr or
871-
e = any(AddressExpr ae).getOperand() or
872-
e = any(StarExpr ae).getBase() or
873-
e = any(DerefExpr ae).getOperand() or
874-
e = any(IR::EvalImplicitDerefInstruction eidi).getOperand()
871+
e = any(AddressExpr ae).getOperand()
875872
)
876873
or
877874
(

‎go/ql/test/example-tests/snippets/typeinfo.expected‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
| main.go:18:12:18:14 | SSA param(req) |
66
| main.go:18:12:18:14 | req |
77
| main.go:20:5:20:7 | req |
8-
| main.go:20:5:20:7 | req [postupdate] |

‎go/ql/test/library-tests/semmle/go/dataflow/PostUpdateNodes/flows.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ func calleeReadsOnly(p *inner) {
9393
func testNoBackflowFromReadOnlyDeref() {
9494
clean := &inner{val: "safe"}
9595
calleeReadsOnly(clean)
96-
sink(clean) // $ SPURIOUS: hasTaintFlow="clean"
97-
sink(clean.val) // $ SPURIOUS: hasTaintFlow="selection of val"
96+
sink(clean)
97+
sink(clean.val)
9898
}
9999

100100
func testWriteThroughExplicitDereferences(p **inner) {

‎go/ql/test/library-tests/semmle/go/dataflow/PostUpdateNodes/test.expected‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
| test.go:36:5:36:5 | a | test.go:36:5:36:5 | a [postupdate] |
2727
| test.go:40:2:40:2 | c | test.go:40:2:40:2 | c [postupdate] |
2828
| test.go:40:2:40:2 | implicit-deref c | test.go:40:2:40:2 | implicit-deref c [postupdate] |
29-
| test.go:47:6:47:6 | a | test.go:47:6:47:6 | a [postupdate] |
30-
| test.go:47:6:47:11 | implicit-deref selection of bptr | test.go:47:6:47:11 | implicit-deref selection of bptr [postupdate] |
31-
| test.go:47:6:47:11 | selection of bptr | test.go:47:6:47:11 | selection of bptr [postupdate] |
32-
| test.go:47:6:47:16 | selection of cptr | test.go:47:6:47:16 | selection of cptr [postupdate] |
3329
| test.go:50:2:50:2 | a | test.go:50:2:50:2 | a [postupdate] |
3430
| test.go:50:2:50:7 | implicit-deref selection of bptr | test.go:50:2:50:7 | implicit-deref selection of bptr [postupdate] |
3531
| test.go:50:2:50:7 | selection of bptr | test.go:50:2:50:7 | selection of bptr [postupdate] |

‎go/ql/test/library-tests/semmle/go/dataflow/PromotedFields/LocalFlowStep.expected‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@
66
| main.go:30:2:32:2 | SSA def(outerp) | main.go:33:7:33:12 | outerp |
77
| main.go:30:12:32:2 | &... | main.go:30:2:32:2 | SSA def(outerp) |
88
| main.go:33:7:33:12 | outerp | main.go:34:7:34:12 | outerp |
9-
| main.go:33:7:33:12 | outerp [postupdate] | main.go:34:7:34:12 | outerp |
109
| main.go:34:7:34:12 | outerp | main.go:35:7:35:12 | outerp |
11-
| main.go:34:7:34:12 | outerp [postupdate] | main.go:35:7:35:12 | outerp |
1210
| main.go:35:7:35:12 | outerp | main.go:36:7:36:12 | outerp |
13-
| main.go:35:7:35:12 | outerp [postupdate] | main.go:36:7:36:12 | outerp |
1411
| main.go:40:2:40:40 | SSA def(outer) | main.go:41:7:41:11 | outer |
1512
| main.go:40:11:40:40 | struct literal | main.go:40:2:40:40 | SSA def(outer) |
1613
| main.go:41:7:41:11 | outer | main.go:42:7:42:11 | outer |
@@ -19,11 +16,8 @@
1916
| main.go:46:2:46:42 | SSA def(outerp) | main.go:47:7:47:12 | outerp |
2017
| main.go:46:12:46:42 | &... | main.go:46:2:46:42 | SSA def(outerp) |
2118
| main.go:47:7:47:12 | outerp | main.go:48:7:48:12 | outerp |
22-
| main.go:47:7:47:12 | outerp [postupdate] | main.go:48:7:48:12 | outerp |
2319
| main.go:48:7:48:12 | outerp | main.go:49:7:49:12 | outerp |
24-
| main.go:48:7:48:12 | outerp [postupdate] | main.go:49:7:49:12 | outerp |
2520
| main.go:49:7:49:12 | outerp | main.go:50:7:50:12 | outerp |
26-
| main.go:49:7:49:12 | outerp [postupdate] | main.go:50:7:50:12 | outerp |
2721
| main.go:54:2:54:25 | SSA def(inner) | main.go:55:19:55:23 | inner |
2822
| main.go:54:11:54:25 | struct literal | main.go:54:2:54:25 | SSA def(inner) |
2923
| main.go:55:2:55:24 | SSA def(middle) | main.go:56:17:56:22 | middle |

‎go/ql/test/library-tests/semmle/go/frameworks/Echo/OpenRedirect.expected‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ edges
55
| test.go:172:11:172:32 | call to Param | test.go:173:20:173:24 | param | provenance | Src:MaD:2 Sink:MaD:1 |
66
| test.go:178:11:178:32 | call to Param | test.go:185:24:185:29 | param2 | provenance | Src:MaD:2 |
77
| test.go:185:24:185:29 | param2 | test.go:185:20:185:29 | ...+... | provenance | Config Sink:MaD:1 |
8-
| test.go:193:9:193:26 | star expression | test.go:193:10:193:26 | selection of URL [postupdate] | provenance | Config |
98
| test.go:193:9:193:26 | star expression | test.go:196:21:196:23 | url | provenance | |
109
| test.go:193:10:193:26 | selection of URL | test.go:193:9:193:26 | star expression | provenance | Src:MaD:3 Config |
11-
| test.go:193:10:193:26 | selection of URL [postupdate] | test.go:193:9:193:26 | star expression | provenance | Config |
1210
| test.go:196:21:196:23 | url | test.go:196:21:196:32 | call to String | provenance | Config Sink:MaD:1 |
1311
models
1412
| 1 | Sink: github.com/labstack/echo; Context; true; Redirect; ; ; Argument[1]; url-redirection; manual |
@@ -22,7 +20,6 @@ nodes
2220
| test.go:185:24:185:29 | param2 | semmle.label | param2 |
2321
| test.go:193:9:193:26 | star expression | semmle.label | star expression |
2422
| test.go:193:10:193:26 | selection of URL | semmle.label | selection of URL |
25-
| test.go:193:10:193:26 | selection of URL [postupdate] | semmle.label | selection of URL [postupdate] |
2623
| test.go:196:21:196:23 | url | semmle.label | url |
2724
| test.go:196:21:196:32 | call to String | semmle.label | call to String |
2825
subpaths

‎go/ql/test/library-tests/semmle/go/frameworks/Twirp/RequestForgery.expected‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,19 @@
22
| server/main.go:30:38:30:48 | selection of Text | rpc/notes/service.twirp.go:538:25:538:32 | selection of Body | server/main.go:30:38:30:48 | selection of Text | The $@ of this request depends on a $@. | server/main.go:30:38:30:48 | selection of Text | URL | rpc/notes/service.twirp.go:538:25:538:32 | selection of Body | user-provided value |
33
| server/main.go:30:38:30:48 | selection of Text | server/main.go:19:56:19:61 | SSA param(params) | server/main.go:30:38:30:48 | selection of Text | The $@ of this request depends on a $@. | server/main.go:30:38:30:48 | selection of Text | URL | server/main.go:19:56:19:61 | SSA param(params) | user-provided value |
44
edges
5-
| client/main.go:16:35:16:78 | &... | server/main.go:19:56:19:61 | SSA param(params) | provenance | |
6-
| client/main.go:16:35:16:78 | &... [postupdate] | client/main.go:16:35:16:78 | &... | provenance | |
75
| rpc/notes/service.twirp.go:538:2:538:33 | extract:0 ... := ... | rpc/notes/service.twirp.go:544:27:544:29 | buf | provenance | |
86
| rpc/notes/service.twirp.go:538:25:538:32 | selection of Body | rpc/notes/service.twirp.go:538:2:538:33 | extract:0 ... := ... | provenance | Src:MaD:1 MaD:3 |
97
| rpc/notes/service.twirp.go:544:27:544:29 | buf | rpc/notes/service.twirp.go:544:32:544:41 | reqContent [postupdate] | provenance | MaD:2 |
108
| rpc/notes/service.twirp.go:544:32:544:41 | reqContent [postupdate] | rpc/notes/service.twirp.go:574:2:577:2 | SSA implicit def(reqContent) | provenance | |
119
| rpc/notes/service.twirp.go:574:2:577:2 | SSA implicit def(reqContent) | rpc/notes/service.twirp.go:576:35:576:44 | reqContent | provenance | |
1210
| rpc/notes/service.twirp.go:576:35:576:44 | reqContent | server/main.go:19:56:19:61 | SSA param(params) | provenance | |
13-
| server/main.go:19:56:19:61 | SSA param(params) | server/main.go:19:56:19:61 | SSA param(params) [Return] | provenance | |
1411
| server/main.go:19:56:19:61 | SSA param(params) | server/main.go:30:38:30:48 | selection of Text | provenance | |
1512
| server/main.go:19:56:19:61 | SSA param(params) | server/main.go:30:38:30:48 | selection of Text | provenance | |
16-
| server/main.go:19:56:19:61 | SSA param(params) [Return] | client/main.go:16:35:16:78 | &... [postupdate] | provenance | |
1713
models
1814
| 1 | Source: net/http; Request; true; Body; ; ; ; remote; manual |
1915
| 2 | Summary: google.golang.org/protobuf/proto; ; false; Unmarshal; ; ; Argument[0]; Argument[1]; taint; manual |
2016
| 3 | Summary: io; ; false; ReadAll; ; ; Argument[0]; ReturnValue[0]; taint; manual |
2117
nodes
22-
| client/main.go:16:35:16:78 | &... | semmle.label | &... |
23-
| client/main.go:16:35:16:78 | &... [postupdate] | semmle.label | &... [postupdate] |
2418
| rpc/notes/service.twirp.go:538:2:538:33 | extract:0 ... := ... | semmle.label | extract:0 ... := ... |
2519
| rpc/notes/service.twirp.go:538:25:538:32 | selection of Body | semmle.label | selection of Body |
2620
| rpc/notes/service.twirp.go:544:27:544:29 | buf | semmle.label | buf |
@@ -29,6 +23,5 @@ nodes
2923
| rpc/notes/service.twirp.go:576:35:576:44 | reqContent | semmle.label | reqContent |
3024
| server/main.go:19:56:19:61 | SSA param(params) | semmle.label | SSA param(params) |
3125
| server/main.go:19:56:19:61 | SSA param(params) | semmle.label | SSA param(params) |
32-
| server/main.go:19:56:19:61 | SSA param(params) [Return] | semmle.label | SSA param(params) [Return] |
3326
| server/main.go:30:38:30:48 | selection of Text | semmle.label | selection of Text |
3427
subpaths

‎go/ql/test/query-tests/Security/CWE-601/OpenUrlRedirect/OpenUrlRedirect.expected‎

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,7 @@ edges
3232
| stdlib.go:93:13:93:32 | call to Get | stdlib.go:94:3:94:8 | target | provenance | |
3333
| stdlib.go:94:3:94:8 | target | stdlib.go:94:3:94:25 | ... += ... | provenance | Config |
3434
| stdlib.go:94:3:94:25 | ... += ... | stdlib.go:96:23:96:28 | target | provenance | Sink:MaD:1 |
35-
| stdlib.go:115:6:115:6 | implicit-deref r [postupdate] [URL] | stdlib.go:115:6:115:6 | r [postupdate] [pointer, URL] | provenance | |
36-
| stdlib.go:115:6:115:6 | r [postupdate] [pointer, URL] | stdlib.go:116:4:116:4 | r [pointer, URL] | provenance | |
37-
| stdlib.go:115:6:115:10 | implicit-deref selection of URL | stdlib.go:115:6:115:10 | selection of URL [postupdate] | provenance | Config |
38-
| stdlib.go:115:6:115:10 | selection of URL | stdlib.go:115:6:115:10 | implicit-deref selection of URL | provenance | Src:MaD:4 Config |
39-
| stdlib.go:115:6:115:10 | selection of URL [postupdate] | stdlib.go:115:6:115:6 | implicit-deref r [postupdate] [URL] | provenance | |
40-
| stdlib.go:115:6:115:10 | selection of URL [postupdate] | stdlib.go:115:6:115:10 | implicit-deref selection of URL | provenance | Config |
41-
| stdlib.go:116:4:116:4 | implicit-deref r [URL] | stdlib.go:116:4:116:8 | selection of URL | provenance | |
4235
| stdlib.go:116:4:116:4 | implicit-deref r [postupdate] [URL] | stdlib.go:116:4:116:4 | r [postupdate] [pointer, URL] | provenance | |
43-
| stdlib.go:116:4:116:4 | r [pointer, URL] | stdlib.go:116:4:116:4 | implicit-deref r [URL] | provenance | |
44-
| stdlib.go:116:4:116:4 | r [pointer, URL] | stdlib.go:117:24:117:24 | r [pointer, URL] | provenance | |
4536
| stdlib.go:116:4:116:4 | r [postupdate] [pointer, URL] | stdlib.go:117:24:117:24 | r [pointer, URL] | provenance | |
4637
| stdlib.go:116:4:116:8 | implicit-deref selection of URL | stdlib.go:116:4:116:8 | selection of URL [postupdate] | provenance | Config |
4738
| stdlib.go:116:4:116:8 | selection of URL | stdlib.go:116:4:116:8 | implicit-deref selection of URL | provenance | Src:MaD:4 Config |
@@ -52,46 +43,30 @@ edges
5243
| stdlib.go:117:24:117:28 | selection of URL | stdlib.go:117:24:117:37 | call to String | provenance | Src:MaD:4 Config Sink:MaD:1 |
5344
| stdlib.go:150:13:150:18 | selection of Form | stdlib.go:150:13:150:32 | call to Get | provenance | Src:MaD:2 Config |
5445
| stdlib.go:150:13:150:32 | call to Get | stdlib.go:156:23:156:28 | target | provenance | Sink:MaD:1 |
55-
| stdlib.go:163:10:163:15 | star expression | stdlib.go:163:11:163:15 | selection of URL [postupdate] | provenance | Config |
5646
| stdlib.go:163:10:163:15 | star expression | stdlib.go:166:24:166:26 | url | provenance | |
5747
| stdlib.go:163:11:163:15 | selection of URL | stdlib.go:163:10:163:15 | star expression | provenance | Src:MaD:4 Config |
58-
| stdlib.go:163:11:163:15 | selection of URL [postupdate] | stdlib.go:163:10:163:15 | star expression | provenance | Config |
5948
| stdlib.go:166:24:166:26 | url | stdlib.go:166:24:166:35 | call to String | provenance | Config Sink:MaD:1 |
60-
| stdlib.go:176:6:176:6 | implicit-deref r [postupdate] [URL] | stdlib.go:176:6:176:6 | r [postupdate] [pointer, URL] | provenance | |
61-
| stdlib.go:176:6:176:6 | r [postupdate] [pointer, URL] | stdlib.go:177:35:177:35 | r [pointer, URL] | provenance | |
62-
| stdlib.go:176:6:176:10 | implicit-deref selection of URL | stdlib.go:176:6:176:10 | selection of URL [postupdate] | provenance | Config |
63-
| stdlib.go:176:6:176:10 | selection of URL | stdlib.go:176:6:176:10 | implicit-deref selection of URL | provenance | Src:MaD:4 Config |
64-
| stdlib.go:176:6:176:10 | selection of URL [postupdate] | stdlib.go:176:6:176:6 | implicit-deref r [postupdate] [URL] | provenance | |
65-
| stdlib.go:176:6:176:10 | selection of URL [postupdate] | stdlib.go:176:6:176:10 | implicit-deref selection of URL | provenance | Config |
66-
| stdlib.go:177:35:177:35 | implicit-deref r [URL] | stdlib.go:177:35:177:39 | selection of URL | provenance | |
67-
| stdlib.go:177:35:177:35 | r [pointer, URL] | stdlib.go:177:35:177:35 | implicit-deref r [URL] | provenance | |
6849
| stdlib.go:177:35:177:39 | selection of URL | stdlib.go:177:35:177:52 | call to RequestURI | provenance | Src:MaD:4 Config |
6950
| stdlib.go:177:35:177:52 | call to RequestURI | stdlib.go:177:24:177:52 | ...+... | provenance | Config Sink:MaD:1 |
7051
| stdlib.go:186:13:186:33 | call to FormValue | stdlib.go:188:23:188:28 | target | provenance | Src:MaD:3 Sink:MaD:1 |
7152
| stdlib.go:194:3:194:57 | extract:0 ... := ... | stdlib.go:196:23:196:28 | target | provenance | |
7253
| stdlib.go:194:36:194:56 | call to FormValue | stdlib.go:194:3:194:57 | extract:0 ... := ... | provenance | Src:MaD:3 Config |
73-
| stdlib.go:196:23:196:28 | implicit-deref target | stdlib.go:196:23:196:28 | target [postupdate] | provenance | Config |
7454
| stdlib.go:196:23:196:28 | implicit-deref target | stdlib.go:196:23:196:33 | selection of Path | provenance | Config Sink:MaD:1 |
7555
| stdlib.go:196:23:196:28 | target | stdlib.go:196:23:196:28 | implicit-deref target | provenance | Config |
7656
| stdlib.go:196:23:196:28 | target | stdlib.go:196:23:196:33 | selection of Path | provenance | Config Sink:MaD:1 |
7757
| stdlib.go:196:23:196:28 | target | stdlib.go:198:23:198:28 | target | provenance | |
78-
| stdlib.go:196:23:196:28 | target [postupdate] | stdlib.go:196:23:196:28 | implicit-deref target | provenance | Config |
79-
| stdlib.go:196:23:196:28 | target [postupdate] | stdlib.go:198:23:198:28 | target | provenance | |
8058
| stdlib.go:198:23:198:28 | target | stdlib.go:198:23:198:42 | call to EscapedPath | provenance | Config Sink:MaD:1 |
8159
| stdlib.go:210:3:210:3 | implicit-deref u [postupdate] | stdlib.go:210:3:210:3 | u [postupdate] | provenance | Config |
8260
| stdlib.go:210:3:210:3 | implicit-deref u [postupdate] | stdlib.go:210:3:210:3 | u [postupdate] [pointer] | provenance | |
8361
| stdlib.go:210:3:210:3 | u [postupdate] | stdlib.go:212:23:212:23 | u | provenance | |
8462
| stdlib.go:210:3:210:3 | u [postupdate] [pointer] | stdlib.go:212:23:212:23 | u [pointer] | provenance | |
8563
| stdlib.go:210:12:210:30 | call to FormValue | stdlib.go:210:3:210:3 | implicit-deref u [postupdate] | provenance | Src:MaD:3 Config |
8664
| stdlib.go:210:12:210:30 | call to FormValue | stdlib.go:210:3:210:3 | u [postupdate] | provenance | Src:MaD:3 Config |
87-
| stdlib.go:212:23:212:23 | implicit-deref u | stdlib.go:212:23:212:23 | u [postupdate] | provenance | Config |
8865
| stdlib.go:212:23:212:23 | implicit-deref u | stdlib.go:212:23:212:28 | selection of Path | provenance | Config Sink:MaD:1 |
8966
| stdlib.go:212:23:212:23 | u | stdlib.go:212:23:212:23 | implicit-deref u | provenance | Config |
9067
| stdlib.go:212:23:212:23 | u | stdlib.go:212:23:212:28 | selection of Path | provenance | Config Sink:MaD:1 |
9168
| stdlib.go:212:23:212:23 | u | stdlib.go:214:23:214:23 | u | provenance | |
9269
| stdlib.go:212:23:212:23 | u [pointer] | stdlib.go:212:23:212:23 | implicit-deref u | provenance | |
93-
| stdlib.go:212:23:212:23 | u [postupdate] | stdlib.go:212:23:212:23 | implicit-deref u | provenance | Config |
94-
| stdlib.go:212:23:212:23 | u [postupdate] | stdlib.go:214:23:214:23 | u | provenance | |
9570
| stdlib.go:214:23:214:23 | u | stdlib.go:214:23:214:32 | call to String | provenance | Config Sink:MaD:1 |
9671
| stdlib.go:257:3:257:3 | implicit-deref u [postupdate] | stdlib.go:257:3:257:3 | u [postupdate] | provenance | Config |
9772
| stdlib.go:257:3:257:3 | implicit-deref u [postupdate] | stdlib.go:257:3:257:3 | u [postupdate] [pointer] | provenance | |
@@ -137,14 +112,7 @@ nodes
137112
| stdlib.go:94:3:94:8 | target | semmle.label | target |
138113
| stdlib.go:94:3:94:25 | ... += ... | semmle.label | ... += ... |
139114
| stdlib.go:96:23:96:28 | target | semmle.label | target |
140-
| stdlib.go:115:6:115:6 | implicit-deref r [postupdate] [URL] | semmle.label | implicit-deref r [postupdate] [URL] |
141-
| stdlib.go:115:6:115:6 | r [postupdate] [pointer, URL] | semmle.label | r [postupdate] [pointer, URL] |
142-
| stdlib.go:115:6:115:10 | implicit-deref selection of URL | semmle.label | implicit-deref selection of URL |
143-
| stdlib.go:115:6:115:10 | selection of URL | semmle.label | selection of URL |
144-
| stdlib.go:115:6:115:10 | selection of URL [postupdate] | semmle.label | selection of URL [postupdate] |
145-
| stdlib.go:116:4:116:4 | implicit-deref r [URL] | semmle.label | implicit-deref r [URL] |
146115
| stdlib.go:116:4:116:4 | implicit-deref r [postupdate] [URL] | semmle.label | implicit-deref r [postupdate] [URL] |
147-
| stdlib.go:116:4:116:4 | r [pointer, URL] | semmle.label | r [pointer, URL] |
148116
| stdlib.go:116:4:116:4 | r [postupdate] [pointer, URL] | semmle.label | r [postupdate] [pointer, URL] |
149117
| stdlib.go:116:4:116:8 | implicit-deref selection of URL | semmle.label | implicit-deref selection of URL |
150118
| stdlib.go:116:4:116:8 | selection of URL | semmle.label | selection of URL |
@@ -158,17 +126,9 @@ nodes
158126
| stdlib.go:156:23:156:28 | target | semmle.label | target |
159127
| stdlib.go:163:10:163:15 | star expression | semmle.label | star expression |
160128
| stdlib.go:163:11:163:15 | selection of URL | semmle.label | selection of URL |
161-
| stdlib.go:163:11:163:15 | selection of URL [postupdate] | semmle.label | selection of URL [postupdate] |
162129
| stdlib.go:166:24:166:26 | url | semmle.label | url |
163130
| stdlib.go:166:24:166:35 | call to String | semmle.label | call to String |
164-
| stdlib.go:176:6:176:6 | implicit-deref r [postupdate] [URL] | semmle.label | implicit-deref r [postupdate] [URL] |
165-
| stdlib.go:176:6:176:6 | r [postupdate] [pointer, URL] | semmle.label | r [postupdate] [pointer, URL] |
166-
| stdlib.go:176:6:176:10 | implicit-deref selection of URL | semmle.label | implicit-deref selection of URL |
167-
| stdlib.go:176:6:176:10 | selection of URL | semmle.label | selection of URL |
168-
| stdlib.go:176:6:176:10 | selection of URL [postupdate] | semmle.label | selection of URL [postupdate] |
169131
| stdlib.go:177:24:177:52 | ...+... | semmle.label | ...+... |
170-
| stdlib.go:177:35:177:35 | implicit-deref r [URL] | semmle.label | implicit-deref r [URL] |
171-
| stdlib.go:177:35:177:35 | r [pointer, URL] | semmle.label | r [pointer, URL] |
172132
| stdlib.go:177:35:177:39 | selection of URL | semmle.label | selection of URL |
173133
| stdlib.go:177:35:177:52 | call to RequestURI | semmle.label | call to RequestURI |
174134
| stdlib.go:186:13:186:33 | call to FormValue | semmle.label | call to FormValue |
@@ -177,7 +137,6 @@ nodes
177137
| stdlib.go:194:36:194:56 | call to FormValue | semmle.label | call to FormValue |
178138
| stdlib.go:196:23:196:28 | implicit-deref target | semmle.label | implicit-deref target |
179139
| stdlib.go:196:23:196:28 | target | semmle.label | target |
180-
| stdlib.go:196:23:196:28 | target [postupdate] | semmle.label | target [postupdate] |
181140
| stdlib.go:196:23:196:33 | selection of Path | semmle.label | selection of Path |
182141
| stdlib.go:198:23:198:28 | target | semmle.label | target |
183142
| stdlib.go:198:23:198:42 | call to EscapedPath | semmle.label | call to EscapedPath |
@@ -188,7 +147,6 @@ nodes
188147
| stdlib.go:212:23:212:23 | implicit-deref u | semmle.label | implicit-deref u |
189148
| stdlib.go:212:23:212:23 | u | semmle.label | u |
190149
| stdlib.go:212:23:212:23 | u [pointer] | semmle.label | u [pointer] |
191-
| stdlib.go:212:23:212:23 | u [postupdate] | semmle.label | u [postupdate] |
192150
| stdlib.go:212:23:212:28 | selection of Path | semmle.label | selection of Path |
193151
| stdlib.go:214:23:214:23 | u | semmle.label | u |
194152
| stdlib.go:214:23:214:32 | call to String | semmle.label | call to String |

0 commit comments

Comments
 (0)