gosec: G110 - Potential DoS vulnerability
this vulnerability is already tested. Disabling issue in line
This commit is contained in:
parent
ceb72975c4
commit
0b9372fe0a
1 changed files with 2 additions and 0 deletions
|
|
@ -941,6 +941,8 @@ func TestComposeLogs(t *testing.T) {
|
|||
|
||||
var buffer bytes.Buffer
|
||||
|
||||
// vulnerability already tested
|
||||
/* #nosec G110 */
|
||||
_, err = io.Copy(&buffer, tr)
|
||||
require.NoErrorf(t, err, "cannot copy untar result")
|
||||
require.Equalf(t, c.ExpectedFileContent, buffer.String(), "%s: unexpected log content", c.Path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue