Skip to content

Commit 4da5cd9

Browse files
committed
Fix missed case
1 parent a41f394 commit 4da5cd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ predicate storeStep(Node node1, ContentSet c, Node node2) {
158158
)
159159
or
160160
node1 = node2.(AddressOperationNode).getOperand() and
161-
c = any(DataFlow::PointerContent pc | pc.getPointerType() = node2.getType())
161+
c = any(DataFlow::PointerContent pc | pc.getPointerType() = node2.getType().getDeepUnaliasedType())
162162
or
163163
FlowSummaryImpl::Private::Steps::summaryStoreStep(node1.(FlowSummaryNode).getSummaryNode(), c,
164164
node2.(FlowSummaryNode).getSummaryNode())

0 commit comments

Comments
 (0)