HDFS-14175. EC: Native XOR decoder should reset the output buffer before using it. Contributed by Ayush Saxena.
This commit is contained in:
parent
96a84b61fb
commit
dacc1a759e
|
@ -66,6 +66,8 @@ Java_org_apache_hadoop_io_erasurecode_rawcoder_NativeXORRawDecoder_decodeImpl(
|
|||
numDataUnits + numParityUnits);
|
||||
getOutputs(env, outputs, outputOffsets, xorDecoder->outputs, numParityUnits);
|
||||
|
||||
memset(xorDecoder->outputs[0], 0, chunkSize);
|
||||
|
||||
for (i = 0; i < numDataUnits + numParityUnits; i++) {
|
||||
if (xorDecoder->inputs[i] == NULL) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue