mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Fixed encoding of empty files. Arguments to is_size_valid()
were in wrong order in block_encoder.c.
This commit is contained in:
parent
9080267603
commit
a751126dbb
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ block_encoder_init(lzma_next_coder *next, lzma_allocator *allocator,
|
||||||
if (!options->has_eopm && options->uncompressed_size == 0) {
|
if (!options->has_eopm && options->uncompressed_size == 0) {
|
||||||
// Also Compressed Size must also be zero if it has been
|
// Also Compressed Size must also be zero if it has been
|
||||||
// given to us.
|
// given to us.
|
||||||
if (!is_size_valid(options->compressed_size, 0))
|
if (!is_size_valid(0, options->compressed_size))
|
||||||
return LZMA_PROG_ERROR;
|
return LZMA_PROG_ERROR;
|
||||||
|
|
||||||
next->coder->sequence = SEQ_CHECK_FINISH;
|
next->coder->sequence = SEQ_CHECK_FINISH;
|
||||||
|
|
Loading…
Reference in a new issue