This repository was archived by the owner on Jan 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-27
lines changed
ql/src/semmle/go/frameworks/stdlib Expand file tree Collapse file tree 2 files changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,6 @@ module CryptoCipher {
11
11
FunctionOutput outp ;
12
12
13
13
MethodModels ( ) {
14
- // signature: func (StreamReader).Read(dst []byte) (n int, err error)
15
- this .hasQualifiedName ( "crypto/cipher" , "StreamReader" , "Read" ) and
16
- ( inp .isReceiver ( ) and outp .isParameter ( 0 ) )
17
- or
18
- // signature: func (StreamWriter).Write(src []byte) (n int, err error)
19
- this .hasQualifiedName ( "crypto/cipher" , "StreamWriter" , "Write" ) and
20
- ( inp .isParameter ( 0 ) and outp .isReceiver ( ) )
21
- or
22
14
// signature: func (Block).Decrypt(dst []byte, src []byte)
23
15
this .implements ( "crypto/cipher" , "Block" , "Decrypt" ) and
24
16
( inp .isParameter ( 1 ) and outp .isParameter ( 0 ) )
Original file line number Diff line number Diff line change @@ -36,23 +36,4 @@ module CryptoTls {
36
36
input = inp and output = outp
37
37
}
38
38
}
39
-
40
- private class MethodModels extends TaintTracking:: FunctionModel , Method {
41
- FunctionInput inp ;
42
- FunctionOutput outp ;
43
-
44
- MethodModels ( ) {
45
- // signature: func (*Conn).Read(b []byte) (int, error)
46
- this .hasQualifiedName ( "crypto/tls" , "Conn" , "Read" ) and
47
- ( inp .isReceiver ( ) and outp .isParameter ( 0 ) )
48
- or
49
- // signature: func (*Conn).Write(b []byte) (int, error)
50
- this .hasQualifiedName ( "crypto/tls" , "Conn" , "Write" ) and
51
- ( inp .isParameter ( 0 ) and outp .isReceiver ( ) )
52
- }
53
-
54
- override predicate hasTaintFlow ( FunctionInput input , FunctionOutput output ) {
55
- input = inp and output = outp
56
- }
57
- }
58
39
}
You can’t perform that action at this time.
0 commit comments