mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 21:50:22 +03:00
erasure: Coding blocks during encoding were garbage, fixes #21
This commit is contained in:
@@ -94,6 +94,7 @@ func (e *Encoder) Decode(chunks [][]byte, length int) ([]byte, error) {
|
||||
for i := range chunks {
|
||||
pointers[i] = &chunks[i][0]
|
||||
}
|
||||
|
||||
data := (**C.uchar)(unsafe.Pointer(&pointers[:k][0]))
|
||||
coding := (**C.uchar)(unsafe.Pointer(&pointers[k:][0]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user