mirror of
https://github.com/restic/restic.git
synced 2026-11-20 04:26:54 +00:00
internal/repository: Fix LoadBlob + fuzz test
When given a buf that is big enough for a compressed blob but not its decompressed contents, the copy at the end of LoadBlob would skip the last part of the contents. Fixes #3783.
This commit is contained in:
1 parent
b7c990871f
commit
c9557b2822
4 files changed
+50
-1
No files matched your search
+3
@@ -0,0 +1,3 @@
|
||||
go test fuzz v1
|
||||
[]byte("\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6")
|
||||
uint(109)
|
||||
Reference in new issue
Block a user