File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
go/ql/test/experimental/CWE-522-DecompressionBombs Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
testFailures
2
- | test.go:636 :31:636 :57 | comment | Missing result:hasValueFlow="tarRead" |
2
+ | test.go:637 :31:637 :57 | comment | Missing result:hasValueFlow="tarRead" |
3
3
failures
Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ func Xz(file io.Reader) {
589
589
TarDecompressor (tarRead )
590
590
TarDecompressor2 (tarRead )
591
591
TarDecompressorSafe (tarRead )
592
- TarDecompressorTP (tarRead )
592
+ TarDecompressorTN (tarRead )
593
593
}
594
594
595
595
func XzSafe (file io.Reader ) {
@@ -629,14 +629,16 @@ func TarDecompressor2(tarRead *tar.Reader) {
629
629
tarRead .Read (tarOut ) // $ hasValueFlow="tarRead"
630
630
fmt .Println ("do sth with output:" , tarOut )
631
631
}
632
- func TarDecompressorTP (tarRead * tar.Reader ) {
632
+
633
+ func TarDecompressorTN (tarRead * tar.Reader ) {
633
634
var tarOut []byte = make ([]byte , 70 )
634
635
i := 1
635
636
for i > 0 {
636
637
i , _ = tarRead .Read (tarOut ) // $ hasValueFlow="tarRead"
637
638
fmt .Println ("do sth with output:" , tarOut )
638
639
}
639
640
}
641
+
640
642
func TarDecompressorSafe (tarRead * tar.Reader ) {
641
643
var tarOut []byte = make ([]byte , 70 )
642
644
i := 1
You can’t perform that action at this time.
0 commit comments