Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 828d386

Browse files
committed
Remove encoder taint-tracking for encoding/ascii85
1 parent f3a61ed commit 828d386

File tree

2 files changed

+4
-37
lines changed

2 files changed

+4
-37
lines changed

ql/src/semmle/go/frameworks/stdlib/EncodingAscii85.qll

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,9 @@ module EncodingAscii85 {
1515
hasQualifiedName("encoding/ascii85", "Decode") and
1616
(inp.isParameter(1) and outp.isParameter(0))
1717
or
18-
// signature: func Encode(dst []byte, src []byte) int
19-
hasQualifiedName("encoding/ascii85", "Encode") and
20-
(inp.isParameter(1) and outp.isParameter(0))
21-
or
2218
// signature: func NewDecoder(r io.Reader) io.Reader
2319
hasQualifiedName("encoding/ascii85", "NewDecoder") and
2420
(inp.isParameter(0) and outp.isResult())
25-
or
26-
// signature: func NewEncoder(w io.Writer) io.WriteCloser
27-
hasQualifiedName("encoding/ascii85", "NewEncoder") and
28-
(inp.isResult() and outp.isParameter(0))
2921
}
3022

3123
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {

ql/test/library-tests/semmle/go/frameworks/StdlibTaintFlow/EncodingAscii85.go

Lines changed: 4 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)