2 This file is part of the lzop file compressor.
4 Copyright (C) 1996..2003 Markus Franz Xaver Johannes Oberhumer
7 Markus F.X.J. Oberhumer <markus@oberhumer.com>
8 http://www.oberhumer.com/opensource/lzop/
10 lzop and the LZO library are free software; you can redistribute them
11 and/or modify them under the terms of the GNU General Public License as
12 published by the Free Software Foundation; either version 2 of
13 the License, or (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; see the file COPYING.
22 If not, write to the Free Software Foundation, Inc.,
23 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 "Minimalized" for busybox by Alain Knaff
30 #include "liblzo_interface.h"
32 /* lzo-2.03/src/lzo_ptr.h */
33 #define pd(a,b) ((unsigned)((a)-(b)))
35 #define lzo_version() LZO_VERSION
36 #define lzo_sizeof_dict_t (sizeof(uint8_t*))
38 /* lzo-2.03/include/lzo/lzo1x.h */
39 #define LZO1X_1_MEM_COMPRESS (16384 * lzo_sizeof_dict_t)
40 #define LZO1X_1_15_MEM_COMPRESS (32768 * lzo_sizeof_dict_t)
41 #define LZO1X_999_MEM_COMPRESS (14 * 16384 * sizeof(short))
43 /* lzo-2.03/src/lzo1x_oo.c */
44 #define NO_LIT UINT_MAX
46 /**********************************************************************/
47 static void copy2(uint8_t* ip, const uint8_t* m_pos, unsigned off)
56 static void copy3(uint8_t* ip, const uint8_t* m_pos, unsigned off)
60 ip[2] = ip[1] = m_pos[0];
72 /**********************************************************************/
73 // optimize a block of data.
74 /**********************************************************************/
75 #define TEST_IP (ip < ip_end)
76 #define TEST_OP (op <= op_end)
78 static NOINLINE int lzo1x_optimize(uint8_t *in, unsigned in_len,
79 uint8_t *out, unsigned *out_len,
80 void* wrkmem UNUSED_PARAM)
86 uint8_t* const ip_end = in + in_len;
87 uint8_t* const op_end = out + *out_len;
90 unsigned next_lit = NO_LIT;
92 unsigned long o_m1_a = 0, o_m1_b = 0, o_m2 = 0, o_m3_a = 0, o_m3_b = 0;
94 // LZO_UNUSED(wrkmem);
105 goto first_literal_run;
108 while (TEST_IP && TEST_OP) {
127 do *op++ = *ip++; while (--t > 0);
134 m_pos = op - 1 - 0x800;
136 m_pos = op - 1 - 0x400;
149 if (t < 16) { /* a M1 match */
158 /* test if a match follows */
159 if (nl == 0 && lit == 1 && ip[0] >= 16) {
161 /* adjust length of previous short run */
163 *litp = (unsigned char)((*litp & ~3) | lit);
164 /* copy over the 2 literals that replace the match */
165 copy2(ip-2, m_pos, pd(op, m_pos));
168 /* test if a literal run follows */
173 && (lit + 2 + ip[0] < 16)
176 /* remove short run */
178 /* copy over the 2 literals that replace the match */
179 copy2(ip-3+1,m_pos,pd(op,m_pos));
180 /* move literals 1 byte ahead */
183 memmove(litp+1, litp, lit);
184 /* insert new length of long literal run */
186 *litp = (unsigned char)(lit - 3);
189 *op++ = *m_pos++; *op++ = *m_pos++;
190 goto copy_literal_run;
197 if (t >= 64) { /* a M2 match */
200 m_pos -= (t >> 2) & 7;
204 m_pos -= (t >> 2) & 3;
212 /* test if in beetween two long literal runs */
213 if (t == 1 && lit > 3 && nl == 0
214 && ip[0] < 16 && ip[0] != 0 && (lit + 3 + ip[0] < 16)
217 /* copy over the 3 literals that replace the match */
218 copy3(ip-1-2,m_pos,pd(op,m_pos));
219 /* set new length of previous literal run */
221 *litp = (unsigned char)(lit - 3);
226 goto copy_literal_run;
229 if (t >= 32) { /* a M3 match */
240 } else { /* a M4 match */
242 m_pos -= (t & 8) << 11;
260 /* test if in beetween two matches */
261 if (t == 1 && lit == 0 && nl == 0 && ip[0] >= 16) {
263 /* make a previous short run */
265 *litp = (unsigned char)((*litp & ~3) | lit);
266 /* copy over the 3 literals that replace the match */
267 copy3(ip-3,m_pos,pd(op,m_pos));
270 /* test if a literal run follows */
271 else if (t == 1 && lit <= 3 && nl == 0
272 && ip[0] < 16 && ip[0] != 0 && (lit + 3 + ip[0] < 16)
275 /* remove short run */
277 /* copy over the 3 literals that replace the match */
278 copy3(ip-4+1,m_pos,pd(op,m_pos));
279 /* move literals 1 byte ahead */
282 memmove(litp+1,litp,lit);
283 /* insert new length of long literal run */
285 *litp = (unsigned char)(lit - 3);
291 goto copy_literal_run;
297 do *op++ = *m_pos++; while (--t > 0);
301 if (next_lit == NO_LIT) {
313 do *op++ = *ip++; while (--t > 0);
315 } while (TEST_IP && TEST_OP);
318 /* no EOF code was found */
319 *out_len = pd(op, out);
320 return LZO_E_EOF_NOT_FOUND;
323 // LZO_UNUSED(o_m1_a); LZO_UNUSED(o_m1_b); LZO_UNUSED(o_m2);
324 // LZO_UNUSED(o_m3_a); LZO_UNUSED(o_m3_b);
325 *out_len = pd(op, out);
326 return (ip == ip_end ? LZO_E_OK :
327 (ip < ip_end ? LZO_E_INPUT_NOT_CONSUMED : LZO_E_INPUT_OVERRUN));
330 /**********************************************************************/
331 #define F_OS F_OS_UNIX
332 #define F_CS F_CS_NATIVE
334 /**********************************************************************/
335 #define ADLER32_INIT_VALUE 1
336 #define CRC32_INIT_VALUE 0
338 /**********************************************************************/
345 /**********************************************************************/
347 #define F_ADLER32_D 0x00000001L
348 #define F_ADLER32_C 0x00000002L
349 #define F_H_EXTRA_FIELD 0x00000040L
350 #define F_H_GMTDIFF 0x00000080L
351 #define F_CRC32_D 0x00000100L
352 #define F_CRC32_C 0x00000200L
353 #define F_H_FILTER 0x00000800L
354 #define F_H_CRC32 0x00001000L
355 #define F_MASK 0x00003FFFL
357 /* operating system & file system that created the file [mostly unused] */
358 #define F_OS_UNIX 0x03000000L
359 #define F_OS_SHIFT 24
360 #define F_OS_MASK 0xff000000L
362 /* character set for file name encoding [mostly unused] */
363 #define F_CS_NATIVE 0x00000000L
364 #define F_CS_SHIFT 20
365 #define F_CS_MASK 0x00f00000L
367 /* these bits must be zero */
368 #define F_RESERVED ((F_MASK | F_OS_MASK | F_CS_MASK) ^ 0xffffffffL)
370 typedef struct chksum_t {
375 typedef struct header_t {
377 unsigned lib_version;
378 unsigned version_needed_to_extract;
383 uint32_t header_checksum;
385 uint32_t extra_field_len;
386 uint32_t extra_field_checksum;
388 unsigned char method;
396 /*const uint32_t *lzo_crc32_table;*/
400 #define G (*(struct globals*)&bb_common_bufsiz1)
401 #define INIT_G() do { } while (0)
402 //#define G (*ptr_to_globals)
403 //#define INIT_G() do {
404 // SET_PTR_TO_GLOBALS(xzalloc(sizeof(G)));
408 /**********************************************************************/
409 #define LZOP_VERSION 0x1010
410 //#define LZOP_VERSION_STRING "1.01"
411 //#define LZOP_VERSION_DATE "Apr 27th 2003"
413 #define OPTION_STRING "cfvdt123456789CF"
416 OPT_STDOUT = (1 << 0),
417 OPT_FORCE = (1 << 1),
418 OPT_VERBOSE = (1 << 2),
419 OPT_DECOMPRESS = (1 << 3),
434 /**********************************************************************/
436 // adapted from free code by Mark Adler <madler@alumni.caltech.edu>
437 // see http://www.zlib.org/
438 /**********************************************************************/
439 static FAST_FUNC uint32_t
440 lzo_adler32(uint32_t adler, const uint8_t* buf, unsigned len)
443 LZO_BASE = 65521, /* largest prime smaller than 65536 */
444 /* NMAX is the largest n such that
445 * 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */
448 uint32_t s1 = adler & 0xffff;
449 uint32_t s2 = (adler >> 16) & 0xffff;
456 k = len < LZO_NMAX ? (unsigned) len : LZO_NMAX;
465 return (s2 << 16) | s1;
468 static FAST_FUNC uint32_t
469 lzo_crc32(uint32_t c, const uint8_t* buf, unsigned len)
471 //if (buf == NULL) - impossible
474 return ~crc32_block_endian0(~c, buf, len, global_crc32_table);
477 /**********************************************************************/
478 static void init_chksum(chksum_t *ct)
480 ct->f_adler32 = ADLER32_INIT_VALUE;
481 ct->f_crc32 = CRC32_INIT_VALUE;
484 static void add_bytes_to_chksum(chksum_t *ct, const void* buf, int cnt)
486 /* We need to handle the two checksums at once, because at the
487 * beginning of the header, we don't know yet which one we'll
489 ct->f_adler32 = lzo_adler32(ct->f_adler32, (const uint8_t*)buf, cnt);
490 ct->f_crc32 = lzo_crc32(ct->f_crc32, (const uint8_t*)buf, cnt);
493 static uint32_t chksum_getresult(chksum_t *ct, const header_t *h)
495 return (h->flags & F_H_CRC32) ? ct->f_crc32 : ct->f_adler32;
498 /**********************************************************************/
499 static uint32_t read32(void)
506 static void write32(uint32_t v)
512 static void f_write(const void* buf, int cnt)
515 add_bytes_to_chksum(&G.chksum_out, buf, cnt);
518 static void f_read(void* buf, int cnt)
521 add_bytes_to_chksum(&G.chksum_in, buf, cnt);
524 static int f_read8(void)
531 static void f_write8(uint8_t v)
536 static unsigned f_read16(void)
543 static void f_write16(uint16_t v)
549 static uint32_t f_read32(void)
556 static void f_write32(uint32_t v)
562 /**********************************************************************/
563 static int lzo_get_method(header_t *h)
566 if (h->method == M_LZO1X_1) {
569 } else if (h->method == M_LZO1X_1_15) {
572 } else if (h->method == M_LZO1X_999) {
576 return -1; /* not a LZO method */
578 /* check compression level */
579 if (h->level < 1 || h->level > 9)
585 /**********************************************************************/
586 #define LZO_BLOCK_SIZE (256 * 1024l)
587 #define MAX_BLOCK_SIZE (64 * 1024l * 1024l) /* DO NOT CHANGE */
589 /* LZO may expand uncompressible data by a small amount */
590 #define MAX_COMPRESSED_SIZE(x) ((x) + (x) / 16 + 64 + 3)
592 /**********************************************************************/
594 /**********************************************************************/
595 static NOINLINE smallint lzo_compress(const header_t *h)
597 unsigned block_size = LZO_BLOCK_SIZE;
598 int r = 0; /* LZO_E_OK */
599 uint8_t *const b1 = xzalloc(block_size);
600 uint8_t *const b2 = xzalloc(MAX_COMPRESSED_SIZE(block_size));
601 unsigned src_len = 0, dst_len = 0;
602 uint32_t d_adler32 = ADLER32_INIT_VALUE;
603 uint32_t d_crc32 = CRC32_INIT_VALUE;
606 uint8_t *wrk_mem = NULL;
608 if (h->method == M_LZO1X_1)
609 wrk_mem = xzalloc(LZO1X_1_MEM_COMPRESS);
610 else if (h->method == M_LZO1X_1_15)
611 wrk_mem = xzalloc(LZO1X_1_15_MEM_COMPRESS);
612 else if (h->method == M_LZO1X_999)
613 wrk_mem = xzalloc(LZO1X_999_MEM_COMPRESS);
617 l = full_read(0, b1, block_size);
618 src_len = (l > 0 ? l : 0);
620 /* write uncompressed block size */
623 /* exit if last block */
627 /* compute checksum of uncompressed block */
628 if (h->flags & F_ADLER32_D)
629 d_adler32 = lzo_adler32(ADLER32_INIT_VALUE, b1, src_len);
630 if (h->flags & F_CRC32_D)
631 d_crc32 = lzo_crc32(CRC32_INIT_VALUE, b1, src_len);
634 if (h->method == M_LZO1X_1)
635 r = lzo1x_1_compress(b1, src_len, b2, &dst_len, wrk_mem);
636 else if (h->method == M_LZO1X_1_15)
637 r = lzo1x_1_15_compress(b1, src_len, b2, &dst_len, wrk_mem);
638 #if ENABLE_LZOP_COMPR_HIGH
639 else if (h->method == M_LZO1X_999)
640 r = lzo1x_999_compress_level(b1, src_len, b2, &dst_len,
644 bb_error_msg_and_die("internal error");
646 if (r != 0) /* not LZO_E_OK */
647 bb_error_msg_and_die("internal error - compression failed");
649 /* write compressed block size */
650 if (dst_len < src_len) {
652 if (h->method == M_LZO1X_999) {
653 unsigned new_len = src_len;
654 r = lzo1x_optimize(b2, dst_len, b1, &new_len, NULL);
655 if (r != 0 /*LZO_E_OK*/ || new_len != src_len)
656 bb_error_msg_and_die("internal error - optimization failed");
660 /* data actually expanded => store data uncompressed */
664 /* write checksum of uncompressed block */
665 if (h->flags & F_ADLER32_D)
667 if (h->flags & F_CRC32_D)
670 if (dst_len < src_len) {
671 /* write checksum of compressed block */
672 if (h->flags & F_ADLER32_C)
673 write32(lzo_adler32(ADLER32_INIT_VALUE, b2, dst_len));
674 if (h->flags & F_CRC32_C)
675 write32(lzo_crc32(CRC32_INIT_VALUE, b2, dst_len));
676 /* write compressed block data */
677 xwrite(1, b2, dst_len);
679 /* write uncompressed block data */
680 xwrite(1, b1, src_len);
690 static FAST_FUNC void lzo_check(
692 uint8_t* buf, unsigned len,
693 uint32_t FAST_FUNC (*fn)(uint32_t, const uint8_t*, unsigned),
696 /* This function, by having the same order of parameters
697 * as fn, and by being marked FAST_FUNC (same as fn),
698 * saves a dozen bytes of code.
700 uint32_t c = fn(init, buf, len);
702 bb_error_msg_and_die("checksum error");
705 /**********************************************************************/
707 /**********************************************************************/
708 static NOINLINE smallint lzo_decompress(const header_t *h)
710 unsigned block_size = LZO_BLOCK_SIZE;
712 uint32_t src_len, dst_len;
713 uint32_t c_adler32 = ADLER32_INIT_VALUE;
714 uint32_t d_adler32 = ADLER32_INIT_VALUE;
715 uint32_t c_crc32 = CRC32_INIT_VALUE, d_crc32 = CRC32_INIT_VALUE;
718 uint32_t mcs_block_size = MAX_COMPRESSED_SIZE(block_size);
724 /* read uncompressed block size */
727 /* exit if last block */
731 /* error if split file */
732 if (dst_len == 0xffffffffL)
733 /* should not happen - not yet implemented */
734 bb_error_msg_and_die("this file is a split lzop file");
736 if (dst_len > MAX_BLOCK_SIZE)
737 bb_error_msg_and_die("corrupted data");
739 /* read compressed block size */
741 if (src_len <= 0 || src_len > dst_len)
742 bb_error_msg_and_die("corrupted data");
744 if (dst_len > block_size) {
749 block_size = dst_len;
750 mcs_block_size = MAX_COMPRESSED_SIZE(block_size);
753 /* read checksum of uncompressed block */
754 if (h->flags & F_ADLER32_D)
755 d_adler32 = read32();
756 if (h->flags & F_CRC32_D)
759 /* read checksum of compressed block */
760 if (src_len < dst_len) {
761 if (h->flags & F_ADLER32_C)
762 c_adler32 = read32();
763 if (h->flags & F_CRC32_C)
768 b2 = xzalloc(mcs_block_size);
769 /* read the block into the end of our buffer */
770 b1 = b2 + mcs_block_size - src_len;
771 xread(0, b1, src_len);
773 if (src_len < dst_len) {
774 unsigned d = dst_len;
776 if (!(option_mask32 & OPT_F)) {
777 /* verify checksum of compressed block */
778 if (h->flags & F_ADLER32_C)
779 lzo_check(ADLER32_INIT_VALUE,
781 lzo_adler32, c_adler32);
782 if (h->flags & F_CRC32_C)
783 lzo_check(CRC32_INIT_VALUE,
789 // if (option_mask32 & OPT_F)
790 // r = lzo1x_decompress(b1, src_len, b2, &d, NULL);
792 r = lzo1x_decompress_safe(b1, src_len, b2, &d, NULL);
794 if (r != 0 /*LZO_E_OK*/ || dst_len != d) {
795 bb_error_msg_and_die("corrupted data");
799 /* "stored" block => no decompression */
803 if (!(option_mask32 & OPT_F)) {
804 /* verify checksum of uncompressed block */
805 if (h->flags & F_ADLER32_D)
806 lzo_check(ADLER32_INIT_VALUE,
808 lzo_adler32, d_adler32);
809 if (h->flags & F_CRC32_D)
810 lzo_check(CRC32_INIT_VALUE,
815 /* write uncompressed block data */
816 xwrite(1, dst, dst_len);
823 /**********************************************************************/
824 // lzop file signature (shamelessly borrowed from PNG)
825 /**********************************************************************/
827 * The first nine bytes of a lzop file always contain the following values:
830 * --- --- --- --- --- --- --- --- ---
831 * (hex) 89 4c 5a 4f 00 0d 0a 1a 0a
832 * (decimal) 137 76 90 79 0 13 10 26 10
833 * (C notation - ASCII) \211 L Z O \0 \r \n \032 \n
836 /* (vda) comparison with lzop v1.02rc1 ("lzop -1 <FILE" cmd):
837 * Only slight differences in header:
838 * -00000000 89 4c 5a 4f 00 0d 0a 1a 0a 10 20 20 20 09 40 02
839 * +00000000 89 4c 5a 4f 00 0d 0a 1a 0a 10 10 20 30 09 40 02
841 * version lib_version
842 * -00000010 01 03 00 00 0d 00 00 81 a4 49 f7 a6 3f 00 00 00
843 * +00000010 01 03 00 00 01 00 00 00 00 00 00 00 00 00 00 00
844 * ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^
846 * -00000020 00 00 2d 67 04 17 00 04 00 00 00 03 ed ec 9d 6d
847 * +00000020 00 00 10 5f 00 c1 00 04 00 00 00 03 ed ec 9d 6d
850 * The rest is identical.
852 static const unsigned char lzop_magic[9] = {
853 0x89, 0x4c, 0x5a, 0x4f, 0x00, 0x0d, 0x0a, 0x1a, 0x0a
856 /* This coding is derived from Alexander Lehmann's pngcheck code. */
857 static void check_magic(void)
859 unsigned char magic[sizeof(lzop_magic)];
860 xread(0, magic, sizeof(magic));
861 if (memcmp(magic, lzop_magic, sizeof(lzop_magic)) != 0)
862 bb_error_msg_and_die("bad magic number");
865 /**********************************************************************/
867 /**********************************************************************/
868 static void write_header(const header_t *h)
872 xwrite(1, lzop_magic, sizeof(lzop_magic));
874 init_chksum(&G.chksum_out);
876 f_write16(h->version);
877 f_write16(h->lib_version);
878 f_write16(h->version_needed_to_extract);
884 f_write32(h->gmtdiff);
886 l = (int) strlen(h->name);
891 f_write32(chksum_getresult(&G.chksum_out, h));
894 static int read_header(header_t *h)
900 memset(h, 0, sizeof(*h));
901 h->version_needed_to_extract = 0x0900; /* first lzop version */
904 init_chksum(&G.chksum_in);
906 h->version = f_read16();
907 if (h->version < 0x0900)
909 h->lib_version = f_read16();
910 if (h->version >= 0x0940) {
911 h->version_needed_to_extract = f_read16();
912 if (h->version_needed_to_extract > LZOP_VERSION)
914 if (h->version_needed_to_extract < 0x0900)
917 h->method = f_read8();
918 if (h->version >= 0x0940)
919 h->level = f_read8();
920 h->flags = f_read32();
921 if (h->flags & F_H_FILTER)
922 return 16; /* filter not supported */
923 h->mode = f_read32();
924 h->mtime = f_read32();
925 if (h->version >= 0x0940)
926 h->gmtdiff = f_read32();
933 checksum = chksum_getresult(&G.chksum_in, h);
934 h->header_checksum = f_read32();
935 if (h->header_checksum != checksum)
940 r = lzo_get_method(h);
944 /* check reserved flags */
945 if (h->flags & F_RESERVED)
948 /* skip extra field [not used yet] */
949 if (h->flags & F_H_EXTRA_FIELD) {
952 /* note: the checksum also covers the length */
953 init_chksum(&G.chksum_in);
954 h->extra_field_len = f_read32();
955 for (k = 0; k < h->extra_field_len; k++)
957 checksum = chksum_getresult(&G.chksum_in, h);
958 h->extra_field_checksum = f_read32();
959 if (h->extra_field_checksum != checksum)
966 static void p_header(header_t *h)
973 bb_error_msg_and_die("header_error %d", r);
976 /**********************************************************************/
978 /**********************************************************************/
979 static void lzo_set_method(header_t *h)
983 if (option_mask32 & OPT_1) {
984 h->method = M_LZO1X_1_15;
985 } else if (option_mask32 & OPT_789) {
986 #if ENABLE_LZOP_COMPR_HIGH
987 h->method = M_LZO1X_999;
988 if (option_mask32 & OPT_7)
990 else if (option_mask32 & OPT_8)
995 bb_error_msg_and_die("high compression not compiled in");
997 } else { /* levels 2..6 or none (defaults to level 3) */
998 h->method = M_LZO1X_1;
999 level = 5; /* levels 2-6 are actually the same */
1005 static smallint do_lzo_compress(void)
1010 memset(h, 0, sizeof(*h));
1014 h->version = (LZOP_VERSION & 0xffff);
1015 h->version_needed_to_extract = 0x0940;
1016 h->lib_version = lzo_version() & 0xffff;
1018 h->flags = (F_OS & F_OS_MASK) | (F_CS & F_CS_MASK);
1020 if (!(option_mask32 & OPT_F) || h->method == M_LZO1X_999) {
1021 h->flags |= F_ADLER32_D;
1022 if (option_mask32 & OPT_C)
1023 h->flags |= F_ADLER32_C;
1026 return lzo_compress(h);
1030 /**********************************************************************/
1032 /**********************************************************************/
1033 static smallint do_lzo_decompress(void)
1039 return lzo_decompress(&header);
1042 static char* FAST_FUNC make_new_name_lzop(char *filename, const char *expected_ext UNUSED_PARAM)
1044 if (option_mask32 & OPT_DECOMPRESS) {
1045 char *extension = strrchr(filename, '.');
1046 if (!extension || strcmp(extension + 1, "lzo") != 0)
1047 return xasprintf("%s.out", filename);
1051 return xasprintf("%s.lzo", filename);
1054 static IF_DESKTOP(long long) int FAST_FUNC pack_lzop(unpack_info_t *info UNUSED_PARAM)
1056 if (option_mask32 & OPT_DECOMPRESS)
1057 return do_lzo_decompress();
1058 return do_lzo_compress();
1061 int lzop_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
1062 int lzop_main(int argc UNUSED_PARAM, char **argv)
1064 getopt32(argv, OPTION_STRING);
1067 if (applet_name[4] == 'c')
1068 option_mask32 |= (OPT_STDOUT | OPT_DECOMPRESS);
1070 if (applet_name[0] == 'u')
1071 option_mask32 |= OPT_DECOMPRESS;
1073 global_crc32_table = crc32_filltable(NULL, 0);
1074 return bbunpack(argv, pack_lzop, make_new_name_lzop, /*unused:*/ NULL);