gosec: G110 - Potential DoS vulnerability

this vulnerability is already tested. Disabling issue in line
This commit is contained in:
Juan Abia 2021-11-30 10:09:17 +01:00 committed by Alexander Todorov
parent ceb72975c4
commit 0b9372fe0a

View file

@ -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)