Skip to content

Commit

Permalink
Excluding internal functions
Browse files Browse the repository at this point in the history
  • Loading branch information
konradweiss committed Nov 29, 2023
1 parent db42d6d commit 589fadf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpg-solidity/src/main/resources/AccessControlLogic
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
match p=(entry:FunctionDeclaration)-[e:EOG|INVOKES|RETURNS*]->(writingNode)-[:EOG|INVOKES|RETURNS*]->(last)
where not 'ConstructorDeclaration' in labels(entry) and not exists((last)-[:EOG|INVOKES]->())
where not 'ConstructorDeclaration' in labels(entry) and not split(entry.code, '{')[0] contains ' internal ' and not 'internal' in entry.code and not exists((last)-[:EOG|INVOKES]->())
and exists((writingNode)-[:DFG]->(:FieldDeclaration)<-[:REFERS_TO]-()<-[:LHS|RHS]-(:BinaryOperator {operatorCode: '=='})-[:LHS|RHS]->({code: 'msg.sender'}))
and not exists{
match ({code : 'msg.sender'})-[:DFG*]->(n)<-[:DFG*]-(:FieldDeclaration)
Expand Down

0 comments on commit 589fadf

Please sign in to comment.