Skip to content

Commit a47c702

Browse files
committed
change TN to GOOD instead of using hasValueFlow
1 parent 65ac943 commit a47c702

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
testFailures
2-
| test.go:637:31:637:57 | comment | Missing result:hasValueFlow="tarRead" |
32
failures

go/ql/test/experimental/CWE-522-DecompressionBombs/test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ func TarDecompressorTN(tarRead *tar.Reader) {
634634
var tarOut []byte = make([]byte, 70)
635635
i := 1
636636
for i > 0 {
637-
i, _ = tarRead.Read(tarOut) // $ hasValueFlow="tarRead"
637+
i, _ = tarRead.Read(tarOut) // GOOD: the output size is being controlled
638638
fmt.Println("do sth with output:", tarOut)
639639
}
640640
}

0 commit comments

Comments
 (0)