1
0
mirror of https://github.com/securego/gosec.git synced 2025-06-14 23:45:03 +02:00

Remove rule G105 which detects the use of math/big#Int.Exp

The big#Int.Exp used to be vulnerable in older versions of Go, but in the
meantime has been fixed (https://github.com/golang/go/issues/15184).

Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
Cosmin Cojocar
2019-09-09 14:16:26 +02:00
committed by Grant Murphy
parent 43e3664713
commit 338b50debb
5 changed files with 9 additions and 78 deletions

View File

@ -71,10 +71,6 @@ var _ = Describe("gosec rules", func() {
runner("G104", testutils.SampleCodeG104Audit)
})
It("should detect of big.Exp function", func() {
runner("G105", testutils.SampleCodeG105)
})
It("should detect of ssh.InsecureIgnoreHostKey function", func() {
runner("G106", testutils.SampleCodeG106)
})