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 +52
-136
lines changed
src/semmle/go/frameworks/stdlib
test/library-tests/semmle/go/frameworks/StdlibTaintFlow Expand file tree Collapse file tree 2 files changed +52
-136
lines changed Original file line number Diff line number Diff line change @@ -42,30 +42,15 @@ module Strconv {
42
42
FunctionModels ( ) {
43
43
// signature: func AppendQuote(dst []byte, s string) []byte
44
44
hasQualifiedName ( "strconv" , "AppendQuote" ) and
45
- (
46
- inp .isParameter ( _) and outp .isResult ( )
47
- or
48
- inp .isParameter ( 1 ) and
49
- ( outp .isParameter ( 0 ) or outp .isResult ( ) )
50
- )
45
+ ( inp .isParameter ( _) and outp .isResult ( ) )
51
46
or
52
47
// signature: func AppendQuoteToASCII(dst []byte, s string) []byte
53
48
hasQualifiedName ( "strconv" , "AppendQuoteToASCII" ) and
54
- (
55
- inp .isParameter ( _) and outp .isResult ( )
56
- or
57
- inp .isParameter ( 1 ) and
58
- ( outp .isParameter ( 0 ) or outp .isResult ( ) )
59
- )
49
+ ( inp .isParameter ( _) and outp .isResult ( ) )
60
50
or
61
51
// signature: func AppendQuoteToGraphic(dst []byte, s string) []byte
62
52
hasQualifiedName ( "strconv" , "AppendQuoteToGraphic" ) and
63
- (
64
- inp .isParameter ( _) and outp .isResult ( )
65
- or
66
- inp .isParameter ( 1 ) and
67
- ( outp .isParameter ( 0 ) or outp .isResult ( ) )
68
- )
53
+ ( inp .isParameter ( _) and outp .isResult ( ) )
69
54
or
70
55
// signature: func Quote(s string) string
71
56
hasQualifiedName ( "strconv" , "Quote" ) and
You can’t perform that action at this time.
0 commit comments