-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathexercise6.ql
31 lines (25 loc) · 820 Bytes
/
exercise6.ql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/** Exercise 6: Extend the `RemoteFlowSource`'s value set with the parameters of the public methods of the component classes identified in exercise 3. */
import java
import semmle.code.java.dataflow.FlowSources
module XWiki {
class Component extends Class {
Component() {
// Replace `none()` with your solution to exercise 2.
none()
}
}
class ScriptComponent extends Component {
ScriptComponent() {
// Replace `none()` with your solution to exercise 3.
none()
}
}
class ScriptComponentMethodParameterSource extends RemoteFlowSource {
ScriptComponentMethodParameterSource() {
// Replace `none()` with your solution
none()
}
override string getSourceType() { result = "XWiki component method parameter" }
}
}
select any(RemoteFlowSource s)