vendor: Update github.com/syndtr/goleveldb

This commit is contained in:
Jakob Borg
2017-03-07 11:57:45 +01:00
parent 4e3fdfaeef
commit 151004d645
5 changed files with 19 additions and 4 deletions

View File

@@ -581,6 +581,7 @@ func (r *Reader) readRawBlock(bh blockHandle, verifyChecksum bool) ([]byte, erro
case blockTypeSnappyCompression:
decLen, err := snappy.DecodedLen(data[:bh.length])
if err != nil {
r.bpool.Put(data)
return nil, r.newErrCorruptedBH(bh, err.Error())
}
decData := r.bpool.Get(decLen)