1 parent c3a509f commit 32be3e9Copy full SHA for 32be3e9
1 file changed
src/transform/BWT.cpp
@@ -191,7 +191,7 @@ bool BWT::inverseMergeTPSI(SliceArray<kanzi::byte>& input, SliceArray<kanzi::byt
191
192
const kanzi::byte* src = &input._array[input._index];
193
kanzi::byte* dst = &output._array[output._index];
194
- memset(&_buffer[0], 0, size_t(_bufferSize) * sizeof(uint));
+ memset(&_buffer[0], 0, size_t(count) * sizeof(uint));
195
const uint end1 = uint(pIdx);
196
const uint end2 = uint(count);
197
@@ -369,7 +369,7 @@ bool BWT::inverseBiPSIv2(SliceArray<kanzi::byte>& input, SliceArray<kanzi::byte>
369
}
370
371
372
373
int n = 0;
374
375
while (n < pIdx) {
0 commit comments