Skip to content

Commit 14e0ce8

Browse files
committed
Update to account for changes on main
1 parent d958c22 commit 14e0ce8

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

go/ql/lib/semmle/go/dataflow/internal/DataFlowPrivate.qll

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,11 @@ ContentApprox getContentApprox(Content c) { any() }
470470
/**
471471
* Holds if the the content `c` is a container.
472472
*/
473-
predicate containerContent(ContentSet c) {
474-
c instanceof ArrayContent or
475-
c instanceof CollectionContent or
476-
c instanceof MapKeyContent or
477-
c instanceof MapValueContent
473+
predicate containerContentSet(ContentSet cs) {
474+
exists(Content c | cs.asOneContent() = c |
475+
c instanceof ArrayContent or
476+
c instanceof CollectionContent or
477+
c instanceof MapKeyContent or
478+
c instanceof MapValueContent
479+
)
478480
}

go/ql/lib/semmle/go/dataflow/internal/TaintTrackingUtil.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ predicate localTaintStep(DataFlow::Node src, DataFlow::Node sink) {
3636
FlowSummaryImpl::Private::Steps::summaryThroughStepTaint(src, sink, _)
3737
or
3838
// Treat container flow as taint for the local taint flow relation
39-
exists(DataFlow::Content c | DataFlowPrivate::containerContent(c) |
40-
DataFlowPrivate::readStep(src, c, sink) or
41-
DataFlowPrivate::storeStep(src, c, sink) or
42-
FlowSummaryImpl::Private::Steps::summaryGetterStep(src, c, sink, _) or
43-
FlowSummaryImpl::Private::Steps::summarySetterStep(src, c, sink, _)
39+
exists(DataFlow::ContentSet cs | DataFlowPrivate::containerContentSet(cs) |
40+
DataFlowPrivate::readStep(src, cs, sink) or
41+
DataFlowPrivate::storeStep(src, cs, sink) or
42+
FlowSummaryImpl::Private::Steps::summaryGetterStep(src, cs, sink, _) or
43+
FlowSummaryImpl::Private::Steps::summarySetterStep(src, cs, sink, _)
4444
)
4545
}
4646

go/ql/test/library-tests/semmle/go/frameworks/serialization/test.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import go
2-
import TestUtilities.InlineFlowTest
2+
import utils.test.InlineFlowTest
33

44
string getArgString(DataFlow::Node src, DataFlow::Node sink) {
55
exists(sink) and

0 commit comments

Comments
 (0)