File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
cpp/ql/src/experimental/Security/CWE/CWE-020 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 17
17
import cpp
18
18
import semmle.code.cpp.dataflow.DataFlow
19
19
20
- class WrtieAccessCheckMacro extends Macro {
20
+ class WriteAccessCheckMacro extends Macro {
21
21
VariableAccess va ;
22
22
23
- WrtieAccessCheckMacro ( ) {
23
+ WriteAccessCheckMacro ( ) {
24
24
this .getName ( ) = [ "user_write_access_begin" , "user_access_begin" ] and
25
25
va .getEnclosingElement ( ) = this .getAnInvocation ( ) .getAnExpandedElement ( )
26
26
}
@@ -43,7 +43,7 @@ class UnSafePutUserMacro extends Macro {
43
43
44
44
class ExploitableUserModePtrParam extends Parameter {
45
45
ExploitableUserModePtrParam ( ) {
46
- not exists ( WrtieAccessCheckMacro writeAccessCheck |
46
+ not exists ( WriteAccessCheckMacro writeAccessCheck |
47
47
DataFlow:: localFlow ( DataFlow:: parameterNode ( this ) ,
48
48
DataFlow:: exprNode ( writeAccessCheck .getArgument ( ) ) )
49
49
)
You can’t perform that action at this time.
0 commit comments