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:
parent
2bf36d22d2
commit
ff946ceb79
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue