Skip to content

Commit 13b0a9a

Browse files
committed
New testcase 's2Reader.ReadByte()'
1 parent 9054201 commit 13b0a9a

File tree

1 file changed

+2
-1
lines changed
  • go/ql/test/experimental/CWE-522-DecompressionBombs

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ func S2(file io.Reader) {
414414

415415
s2Reader := s2.NewReader(file)
416416
var out []byte = make([]byte, 70)
417-
s2Reader.Read(out) // $ hasValueFlow="s2Reader"
417+
s2Reader.Read(out) // $ hasValueFlow="s2Reader"
418+
s2Reader.ReadByte() // $ hasValueFlow="s2Reader"
418419
var buf bytes.Buffer
419420
s2Reader.DecodeConcurrent(&buf, 2) // $ hasValueFlow="s2Reader"
420421
tarRead = tar.NewReader(s2Reader)

0 commit comments

Comments
 (0)