even the Metadata Flags field. Earlier the code allowed
such files; now they are prohibited as the file format
specification requires.
if (coder->buffer[coder->buffer_pos] & 0x70)
return LZMA_HEADER_ERROR;
+ coder->todo_count = 0;
+
// If Size of Header Metadata is present, prepare the
// variable for variable-length integer decoding. Otherwise
// set it to LZMA_VLI_VALUE_UNKNOWN to indicate that the
metadata->extra = NULL;
next->coder->sequence = SEQ_FLAGS;
- next->coder->todo_count = 0;
+ next->coder->todo_count = 1;
next->coder->pos = 0;
next->coder->tmp = 0;
next->coder->metadata = metadata;