Update
This commit is contained in:
1 parent
3530afb854
commit
6903fcff27
2146 files changed
+112256
-190703
No files matched your search
+4
-3
@@ -334,9 +334,10 @@ func decodeSnappy(blk *blockEnc, src []byte) error {
|
||||
|
||||
return errUnsupportedLiteralLength
|
||||
}
|
||||
//if length > snappyMaxBlockSize-d || uint32(length) > len(src)-s {
|
||||
// return ErrSnappyCorrupt
|
||||
//}
|
||||
if length > len(src)-s {
|
||||
println("length > len(src)-s", length, len(src)-s)
|
||||
return ErrSnappyCorrupt
|
||||
}
|
||||
|
||||
blk.literals = append(blk.literals, src[s:s+length]...)
|
||||
//println(length, "litLen")
|
||||
|
||||
Reference in new issue
Block a user