Skip to content

Commit 0b67ae4

Browse files
Pierre CURTOPierre CURTO
authored andcommitted
added fuzz testing + related fixes
1 parent 4bdd4b0 commit 0b67ae4

File tree

423 files changed

+226
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

423 files changed

+226
-1
lines changed

block.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func UncompressBlock(src, dst []byte, di int) (int, error) {
7474
return di, ErrInvalidSource
7575
}
7676
offset := int(src[si-2]) | int(src[si-1])<<8
77-
if di-offset < 0 {
77+
if di-offset < 0 || offset == 0 {
7878
return di - di0, ErrInvalidSource
7979
}
8080

fuzz/.DS_Store

6 KB
Binary file not shown.
105 Bytes
Binary file not shown.
19 Bytes
Binary file not shown.
23 Bytes
Binary file not shown.
38 Bytes
Binary file not shown.
13 Bytes
Binary file not shown.
19 Bytes
Binary file not shown.
46 Bytes
Binary file not shown.
84 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)