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

Fix wrong too small size of argument unfiltered_max

in ia64_coder_init(). It triggered assert() in
simple_coder.c, and could have caused a buffer overflow.

This error was probably a copypaste mistake, since most
of the simple filters use unfiltered_max = 4.
This commit is contained in:
Lasse Collin 2008-01-17 17:39:42 +02:00
parent 8f5794c8f1
commit b254bd97b1

View file

@ -97,7 +97,7 @@ ia64_coder_init(lzma_next_coder *next, lzma_allocator *allocator,
const lzma_filter_info *filters, bool is_encoder) const lzma_filter_info *filters, bool is_encoder)
{ {
return lzma_simple_coder_init(next, allocator, filters, return lzma_simple_coder_init(next, allocator, filters,
&ia64_code, 0, 4, is_encoder); &ia64_code, 0, 16, is_encoder);
} }