diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2011-08-08 04:15:09 -0400 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2011-08-08 04:15:09 -0400 |
commit | 3d6ebc25c2e073f95726a043146cd20fd8f24d1b (patch) | |
tree | e28b95a84005a23921899ed6b42ca1b3ebad110e /libarchive/archive_read_support_format_lha.c | |
parent | a4f99f2fc1d5edb6ad6f64458cd637fb5619a39f (diff) | |
download | libarchive-3d6ebc25c2e073f95726a043146cd20fd8f24d1b.tar.gz |
Fix a bug in lha reader. Give plenty bits to a pattern table.
12 bits was too short for a bit length of the pattern table.
SVN-Revision: 3561
Diffstat (limited to 'libarchive/archive_read_support_format_lha.c')
-rw-r--r-- | libarchive/archive_read_support_format_lha.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_read_support_format_lha.c b/libarchive/archive_read_support_format_lha.c index ec039576..51500367 100644 --- a/libarchive/archive_read_support_format_lha.c +++ b/libarchive/archive_read_support_format_lha.c @@ -1789,7 +1789,7 @@ lzh_decode_init(struct lzh_stream *strm, const char *method) != ARCHIVE_OK) return (ARCHIVE_FATAL); ds->lt.len_bits = 9; - if (lzh_huffman_init(&(ds->pt), PT_BITLEN_SIZE, 12) + if (lzh_huffman_init(&(ds->pt), PT_BITLEN_SIZE, 16) != ARCHIVE_OK) return (ARCHIVE_FATAL); ds->error = 0; |