Skip to content

Commit 73de757

Browse files
authored
Update DangerousUseOfExceptionBlocks.ql
1 parent 61860c9 commit 73de757

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-476/DangerousUseOfExceptionBlocks.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ predicate pointerDereference(CatchAnyBlock cb, Variable vr, Variable vro) {
6969
vro = ase.getLValue().(VariableAccess).getTarget()
7070
)
7171
or
72+
// `e0` is a `new` expression (or equivalent function call) assigned to the array element `vro`
7273
exists(AssignExpr ase |
7374
ase = vro.getAnAccess().(Qualifier).getEnclosingStmt().(ExprStmt).getExpr().(AssignExpr) and
7475
(

0 commit comments

Comments
 (0)