Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10ab1d9

Browse files
authored
Update CompilerRemovalOfCodeToClearBuffers.ql
1 parent cd0d2a5 commit 10ab1d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/ql/src/experimental/Security/CWE/CWE-14/CompilerRemovalOfCodeToClearBuffers.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CompilerRemovaMemset extends FunctionCall {
2929
}
3030

3131
predicate isExistsAllocForThisVariable() {
32-
exists(FunctionCall alloc, Variable v |
32+
exists(AllocationExpr alloc, Variable v |
3333
alloc = v.getAnAssignedValue() and
3434
this.getArgument(0) = v.getAnAccess() and
3535
alloc.getASuccessor+() = this

0 commit comments

Comments
 (0)