Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 40635ad

Browse filesBrowse files
committed
C++: use getArrayBase() for UseAfterFree
1 parent 062de08 commit 40635ad
Copy full SHA for 40635ad

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎cpp/ql/src/Critical/UseAfterFree.ql

Copy file name to clipboardExpand all lines: cpp/ql/src/Critical/UseAfterFree.ql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ predicate useExpr(DataFlow::Node dfe, Expr e) {
2323
e = any(FunctionCall fc).getAChild() or
2424
e = any(PointerDereferenceExpr pde).getOperand() or
2525
e = any(PointerFieldAccess pfa).getQualifier() or
26-
e = any(ArrayExpr ae).getAChild()
26+
e = any(ArrayExpr ae).getArrayBase()
2727
) and
2828
not Flow::freeExpr(dfe, e)
2929
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.