Re-enabled the security checks in Subblock decoder

that were disabled for debugging reasons.
This commit is contained in:
Lasse Collin 2007-12-09 11:24:48 +02:00
parent 2bf36d22d2
commit ff946ceb79
1 changed files with 3 additions and 3 deletions

View File

@ -177,9 +177,9 @@ decode_buffer(lzma_coder *coder, lzma_allocator *allocator,
switch (in[*in_pos] >> 4) {
case FLAG_PADDING:
// Only check that reserved bits are zero.
// if (++coder->padding > PADDING_MAX
// || in[*in_pos] & 0x0F)
// return LZMA_DATA_ERROR;
if (++coder->padding > PADDING_MAX
|| in[*in_pos] & 0x0F)
return LZMA_DATA_ERROR;
++*in_pos;
break;