Files
codeql/csharp/ql/examples/field_read.ql
2019-07-26 17:47:11 +02:00

15 lines
334 B
Plaintext

/**
* @name Read of field
* @description Finds reads of 'VirtualAddress' (defined on 'Mono.Cecil.PE.Section').
* @tags field
* read
*/
import csharp
from Field f, FieldRead read
where f.hasName("VirtualAddress")
and f.getDeclaringType().hasQualifiedName("Mono.Cecil.PE.Section")
and f = read.getTarget()
select read