Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Commit aa9cd0b

Browse files
committed
Add EkoParty materials
1 parent 147dc16 commit aa9cd0b

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

EkoParty2021_slides.pdf

4.3 MB
Binary file not shown.

exercises/exercise2.ql

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,6 @@ class ChannelReadMethod extends Method {
1616
}
1717
}
1818

19-
/** The ChannelInboundHandlerl.channelRead(1) source */
20-
class ChannelReadSource extends RemoteFlowSource {
21-
ChannelReadSource() {
22-
exists(ChannelReadMethod m |
23-
this.asParameter() = m.getParameter(1)
24-
)
25-
}
26-
override string getSourceType() { result = "Netty Handler Source" }
27-
}
28-
2919
/** The ByteToMessageDecoder class */
3020
class ByteToMessageDecoder extends Class {
3121
ByteToMessageDecoder() {
@@ -41,6 +31,16 @@ class DecodeMethod extends Method {
4131
}
4232
}
4333

34+
/** The ChannelInboundHandlerl.channelRead(1) source */
35+
class ChannelReadSource extends RemoteFlowSource {
36+
ChannelReadSource() {
37+
exists(ChannelReadMethod m |
38+
this.asParameter() = m.getParameter(1)
39+
)
40+
}
41+
override string getSourceType() { result = "Netty Handler Source" }
42+
}
43+
4444
/** The ByteToMessageDecoder.decode(1) source */
4545
class DecodeSource extends RemoteFlowSource {
4646
DecodeSource() {
@@ -58,6 +58,7 @@ where
5858
source instanceof DecodeSource
5959
) and
6060
not source.getLocation().getFile().getRelativePath().matches("%/src/test/%")
61-
select source, source.getEnclosingCallable().getDeclaringType(), source.getSourceType()
62-
63-
61+
select
62+
source,
63+
source.getEnclosingCallable().getDeclaringType(),
64+
source.getSourceType()

0 commit comments

Comments
 (0)