1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

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

View file

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