Bug fix: zisofs compression caused SIGSEGV (by reading) with files larger than

524160 KiB.
This commit is contained in:
Thomas Schmitt 2015-08-11 22:58:37 +02:00
parent c8ed18695f
commit bdbaf81e9c
1 changed files with 3 additions and 3 deletions

View File

@ -381,7 +381,7 @@ int ziso_stream_compress(IsoStream *stream, void *buf, size_t desired)
if (todo * 4 > rng->buffer_size)
todo = rng->buffer_size / 4;
memcpy(rng->block_buffer,
data->block_pointers + 4 * rng->block_pointer_rpos,
data->block_pointers + rng->block_pointer_rpos,
todo * 4);
rng->buffer_rpos = 0;
rng->buffer_fill = todo * 4;