File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
cpp/ql/src/Security/CWE/CWE-570 Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -17,21 +17,6 @@ import cpp
17
17
import semmle.code.cpp.valuenumbering.GlobalValueNumbering
18
18
import semmle.code.cpp.controlflow.Guards
19
19
20
- /**
21
- * A C++ `delete` or `delete[]` expression.
22
- */
23
- class DeleteOrDeleteArrayExpr extends Expr {
24
- DeleteOrDeleteArrayExpr ( ) { this instanceof DeleteExpr or this instanceof DeleteArrayExpr }
25
-
26
- DeallocationFunction getDeallocator ( ) {
27
- result = [ this .( DeleteExpr ) .getDeallocator ( ) , this .( DeleteArrayExpr ) .getDeallocator ( ) ]
28
- }
29
-
30
- Destructor getDestructor ( ) {
31
- result = [ this .( DeleteExpr ) .getDestructor ( ) , this .( DeleteArrayExpr ) .getDestructor ( ) ]
32
- }
33
- }
34
-
35
20
/** Gets the `Constructor` invoked when `newExpr` allocates memory. */
36
21
Constructor getConstructorForAllocation ( NewOrNewArrayExpr newExpr ) {
37
22
result .getACallToThisFunction ( ) = newExpr .getInitializer ( )
You can’t perform that action at this time.
0 commit comments