mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
17 lines
365 B
Plaintext
17 lines
365 B
Plaintext
/**
|
|
* @id cs/examples/field-read
|
|
* @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
|