mirror of
https://github.com/securego/gosec.git
synced 2025-11-23 22:15:04 +02:00
Add G110(Potential DoS vulnerability via decompression bomb)
Signed-off-by: Hiroki Suezawa <suezawa@gmail.com>
This commit is contained in:
committed by
Cosmin Cojocar
parent
3d5c97b418
commit
a4d7b3628b
@@ -87,6 +87,10 @@ var _ = Describe("gosec rules", func() {
|
||||
runner("G109", testutils.SampleCodeG109)
|
||||
})
|
||||
|
||||
It("should detect DoS vulnerability via decompression bomb", func() {
|
||||
runner("G110", testutils.SampleCodeG110)
|
||||
})
|
||||
|
||||
It("should detect sql injection via format strings", func() {
|
||||
runner("G201", testutils.SampleCodeG201)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user