File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
cpp/ql/src/Security/CWE/CWE-311 Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -21,23 +21,18 @@ import DataFlow::PathGraph
21
21
/**
22
22
* A buffer write into a sensitive expression.
23
23
*/
24
- class SensitiveBufferWrite extends Expr {
25
- BufferWrite:: BufferWrite write ;
26
-
27
- SensitiveBufferWrite ( ) {
28
- this = write and
29
- write .getDest ( ) instanceof SensitiveExpr
30
- }
24
+ class SensitiveBufferWrite extends Expr instanceof BufferWrite:: BufferWrite {
25
+ SensitiveBufferWrite ( ) { super .getDest ( ) instanceof SensitiveExpr }
31
26
32
27
/**
33
28
* Gets a data source of this operation.
34
29
*/
35
- Expr getASource ( ) { result = write .getASource ( ) }
30
+ Expr getASource ( ) { result = super .getASource ( ) }
36
31
37
32
/**
38
33
* Gets the destination buffer of this operation.
39
34
*/
40
- Expr getDest ( ) { result = write .getDest ( ) }
35
+ Expr getDest ( ) { result = super .getDest ( ) }
41
36
}
42
37
43
38
/**
You can’t perform that action at this time.
0 commit comments