blob: 44715ef25236aad3aa84fa6ac3955cfe5ff99a4f [file] [log] [blame]
"Robert P. J. Day"63fc1a92006-07-02 19:47:05 +00001/* vi: set sw=4 ts=4: */
Glenn L McGrath5699b852003-11-15 23:19:05 +00002/*
Denys Vlasenko0ef64bd2010-08-16 20:14:46 +02003 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
Glenn L McGrath5699b852003-11-15 23:19:05 +00004 */
Glenn L McGrath5699b852003-11-15 23:19:05 +00005#include "libbb.h"
Denys Vlasenkod184a722011-09-22 12:45:14 +02006#include "bb_archive.h"
Bernhard Reutner-Fischercfb53df2006-04-02 21:50:01 +00007
Denys Vlasenkoe7800f32014-12-07 00:42:49 +01008void FAST_FUNC init_transformer_state(transformer_state_t *xstate)
Denys Vlasenko8a6a2f92012-03-06 16:27:48 +01009{
Denys Vlasenkoe7800f32014-12-07 00:42:49 +010010 memset(xstate, 0, sizeof(*xstate));
Denys Vlasenko8a6a2f92012-03-06 16:27:48 +010011}
Denys Vlasenko59655072012-03-06 16:23:50 +010012
Denys Vlasenkob4c11c12014-12-07 00:44:00 +010013int FAST_FUNC check_signature16(transformer_state_t *xstate, unsigned magic16)
Denys Vlasenko8a6a2f92012-03-06 16:27:48 +010014{
Denys Vlasenko984b0a62016-06-20 11:06:42 +020015 if (!xstate->signature_skipped) {
Denys Vlasenko8a6a2f92012-03-06 16:27:48 +010016 uint16_t magic2;
Denys Vlasenkob4c11c12014-12-07 00:44:00 +010017 if (full_read(xstate->src_fd, &magic2, 2) != 2 || magic2 != magic16) {
James Byrne69374872019-07-02 11:35:03 +020018 bb_simple_error_msg("invalid magic");
Denys Vlasenko8a6a2f92012-03-06 16:27:48 +010019 return -1;
20 }
Denys Vlasenko984b0a62016-06-20 11:06:42 +020021 xstate->signature_skipped = 2;
Denys Vlasenko8a6a2f92012-03-06 16:27:48 +010022 }
23 return 0;
24}
Denys Vlasenko59655072012-03-06 16:23:50 +010025
Denys Vlasenkob4c11c12014-12-07 00:44:00 +010026ssize_t FAST_FUNC transformer_write(transformer_state_t *xstate, const void *buf, size_t bufsize)
27{
28 ssize_t nwrote;
29
30 if (xstate->mem_output_size_max != 0) {
31 size_t pos = xstate->mem_output_size;
32 size_t size;
33
34 size = (xstate->mem_output_size += bufsize);
35 if (size > xstate->mem_output_size_max) {
36 free(xstate->mem_output_buf);
37 xstate->mem_output_buf = NULL;
38 bb_perror_msg("buffer %u too small", (unsigned)xstate->mem_output_size_max);
39 nwrote = -1;
40 goto ret;
41 }
Denys Vlasenkocfcd2392014-12-07 00:49:55 +010042 xstate->mem_output_buf = xrealloc(xstate->mem_output_buf, size + 1);
Denys Vlasenkob4c11c12014-12-07 00:44:00 +010043 memcpy(xstate->mem_output_buf + pos, buf, bufsize);
Denys Vlasenkocfcd2392014-12-07 00:49:55 +010044 xstate->mem_output_buf[size] = '\0';
Denys Vlasenkob4c11c12014-12-07 00:44:00 +010045 nwrote = bufsize;
46 } else {
47 nwrote = full_write(xstate->dst_fd, buf, bufsize);
48 if (nwrote != (ssize_t)bufsize) {
James Byrne69374872019-07-02 11:35:03 +020049 bb_simple_perror_msg("write");
Denys Vlasenkob4c11c12014-12-07 00:44:00 +010050 nwrote = -1;
51 goto ret;
52 }
53 }
54 ret:
55 return nwrote;
56}
57
58ssize_t FAST_FUNC xtransformer_write(transformer_state_t *xstate, const void *buf, size_t bufsize)
59{
60 ssize_t nwrote = transformer_write(xstate, buf, bufsize);
61 if (nwrote != (ssize_t)bufsize) {
62 xfunc_die();
63 }
64 return nwrote;
65}
66
Denys Vlasenkofaac1d32012-03-06 16:33:42 +010067void check_errors_in_children(int signo)
68{
69 int status;
70
71 if (!signo) {
72 /* block waiting for any child */
73 if (wait(&status) < 0)
Denys Vlasenko577235d2013-02-28 16:38:25 +010074//FIXME: check EINTR?
Denys Vlasenkofaac1d32012-03-06 16:33:42 +010075 return; /* probably there are no children */
76 goto check_status;
77 }
78
79 /* Wait for any child without blocking */
80 for (;;) {
81 if (wait_any_nohang(&status) < 0)
Denys Vlasenko577235d2013-02-28 16:38:25 +010082//FIXME: check EINTR?
Denys Vlasenkofaac1d32012-03-06 16:33:42 +010083 /* wait failed?! I'm confused... */
84 return;
85 check_status:
Denys Vlasenko577235d2013-02-28 16:38:25 +010086 /*if (WIFEXITED(status) && WEXITSTATUS(status) == 0)*/
87 /* On Linux, the above can be checked simply as: */
88 if (status == 0)
Denys Vlasenkofaac1d32012-03-06 16:33:42 +010089 /* this child exited with 0 */
90 continue;
Denys Vlasenko577235d2013-02-28 16:38:25 +010091 /* Cannot happen:
92 if (!WIFSIGNALED(status) && !WIFEXITED(status)) ???;
93 */
Denys Vlasenkofaac1d32012-03-06 16:33:42 +010094 bb_got_signal = 1;
95 }
96}
97
Glenn L McGrath5699b852003-11-15 23:19:05 +000098/* transformer(), more than meets the eye */
Denys Vlasenko8a6a2f92012-03-06 16:27:48 +010099#if BB_MMU
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100100void FAST_FUNC fork_transformer(int fd,
Denys Vlasenko984b0a62016-06-20 11:06:42 +0200101 int signature_skipped,
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100102 IF_DESKTOP(long long) int FAST_FUNC (*transformer)(transformer_state_t *xstate)
Denys Vlasenko8a6a2f92012-03-06 16:27:48 +0100103)
104#else
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100105void FAST_FUNC fork_transformer(int fd, const char *transform_prog)
Denys Vlasenko8a6a2f92012-03-06 16:27:48 +0100106#endif
Glenn L McGrath5699b852003-11-15 23:19:05 +0000107{
Denis Vlasenko37188322008-02-16 13:20:56 +0000108 struct fd_pair fd_pipe;
Glenn L McGrath5699b852003-11-15 23:19:05 +0000109 int pid;
110
Denis Vlasenko37188322008-02-16 13:20:56 +0000111 xpiped_pair(fd_pipe);
Pascal Bellard926031b2010-07-04 15:32:38 +0200112 pid = BB_MMU ? xfork() : xvfork();
Glenn L McGrath5699b852003-11-15 23:19:05 +0000113 if (pid == 0) {
Pascal Bellard926031b2010-07-04 15:32:38 +0200114 /* Child */
Denis Vlasenkob6052722008-07-10 17:43:01 +0000115 close(fd_pipe.rd); /* we don't want to read from the parent */
Denis Vlasenkoea620772006-10-14 02:23:43 +0000116 // FIXME: error check?
Denis Vlasenko211f7f82007-09-05 11:48:32 +0000117#if BB_MMU
Denys Vlasenko8a6a2f92012-03-06 16:27:48 +0100118 {
Denys Vlasenkoebfa9b52013-11-19 14:44:04 +0100119 IF_DESKTOP(long long) int r;
Denys Vlasenkoe7800f32014-12-07 00:42:49 +0100120 transformer_state_t xstate;
121 init_transformer_state(&xstate);
Denys Vlasenko984b0a62016-06-20 11:06:42 +0200122 xstate.signature_skipped = signature_skipped;
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100123 xstate.src_fd = fd;
124 xstate.dst_fd = fd_pipe.wr;
125 r = transformer(&xstate);
Denys Vlasenko8a6a2f92012-03-06 16:27:48 +0100126 if (ENABLE_FEATURE_CLEAN_UP) {
127 close(fd_pipe.wr); /* send EOF */
128 close(fd);
129 }
130 /* must be _exit! bug was actually seen here */
Denys Vlasenkoebfa9b52013-11-19 14:44:04 +0100131 _exit(/*error if:*/ r < 0);
Denis Vlasenko7e0fbf92007-09-04 19:33:22 +0000132 }
Denis Vlasenko211f7f82007-09-05 11:48:32 +0000133#else
Denis Vlasenko059c9172007-11-12 02:13:12 +0000134 {
135 char *argv[4];
Denis Vlasenkob6052722008-07-10 17:43:01 +0000136 xmove_fd(fd, 0);
Denis Vlasenko37188322008-02-16 13:20:56 +0000137 xmove_fd(fd_pipe.wr, 1);
Denis Vlasenko059c9172007-11-12 02:13:12 +0000138 argv[0] = (char*)transform_prog;
139 argv[1] = (char*)"-cf";
140 argv[2] = (char*)"-";
141 argv[3] = NULL;
142 BB_EXECVP(transform_prog, argv);
Denis Vlasenkof9d4fc32009-04-21 20:40:51 +0000143 bb_perror_msg_and_die("can't execute '%s'", transform_prog);
Denis Vlasenko059c9172007-11-12 02:13:12 +0000144 }
Denis Vlasenko211f7f82007-09-05 11:48:32 +0000145#endif
Denis Vlasenkoea620772006-10-14 02:23:43 +0000146 /* notreached */
Glenn L McGrath5699b852003-11-15 23:19:05 +0000147 }
Glenn L McGrath20872be2003-11-18 21:31:19 +0000148
Glenn L McGrath5699b852003-11-15 23:19:05 +0000149 /* parent process */
Denis Vlasenkob6052722008-07-10 17:43:01 +0000150 close(fd_pipe.wr); /* don't want to write to the child */
151 xmove_fd(fd_pipe.rd, fd);
Glenn L McGrath5699b852003-11-15 23:19:05 +0000152}
Denys Vlasenko59655072012-03-06 16:23:50 +0100153
154
Denys Vlasenko8a6a2f92012-03-06 16:27:48 +0100155#if SEAMLESS_COMPRESSION
156
Denys Vlasenko59655072012-03-06 16:23:50 +0100157/* Used by e.g. rpm which gives us a fd without filename,
158 * thus we can't guess the format from filename's extension.
159 */
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100160static transformer_state_t *setup_transformer_on_fd(int fd, int fail_if_not_compressed)
Denys Vlasenko59655072012-03-06 16:23:50 +0100161{
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100162 transformer_state_t *xstate;
163
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100164 xstate = xzalloc(sizeof(*xstate));
165 xstate->src_fd = fd;
Denys Vlasenko59655072012-03-06 16:23:50 +0100166
167 /* .gz and .bz2 both have 2-byte signature, and their
168 * unpack_XXX_stream wants this header skipped. */
Denys Vlasenkodff2bd72019-05-24 17:03:28 +0200169 xstate->signature_skipped = 2;
170 xread(fd, xstate->magic.b16, 2);
Denys Vlasenko59655072012-03-06 16:23:50 +0100171 if (ENABLE_FEATURE_SEAMLESS_GZ
Denys Vlasenkodff2bd72019-05-24 17:03:28 +0200172 && xstate->magic.b16[0] == GZIP_MAGIC
Denys Vlasenko59655072012-03-06 16:23:50 +0100173 ) {
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100174 xstate->xformer = unpack_gz_stream;
175 USE_FOR_NOMMU(xstate->xformer_prog = "gunzip";)
Denys Vlasenko59655072012-03-06 16:23:50 +0100176 goto found_magic;
177 }
Thiago Jung Bauermannb4059f62015-05-03 18:40:12 +0200178 if (ENABLE_FEATURE_SEAMLESS_Z
Denys Vlasenkodff2bd72019-05-24 17:03:28 +0200179 && xstate->magic.b16[0] == COMPRESS_MAGIC
Thiago Jung Bauermannb4059f62015-05-03 18:40:12 +0200180 ) {
181 xstate->xformer = unpack_Z_stream;
182 USE_FOR_NOMMU(xstate->xformer_prog = "uncompress";)
183 goto found_magic;
184 }
Denys Vlasenko59655072012-03-06 16:23:50 +0100185 if (ENABLE_FEATURE_SEAMLESS_BZ2
Denys Vlasenkodff2bd72019-05-24 17:03:28 +0200186 && xstate->magic.b16[0] == BZIP2_MAGIC
Denys Vlasenko59655072012-03-06 16:23:50 +0100187 ) {
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100188 xstate->xformer = unpack_bz2_stream;
189 USE_FOR_NOMMU(xstate->xformer_prog = "bunzip2";)
Denys Vlasenko59655072012-03-06 16:23:50 +0100190 goto found_magic;
191 }
192 if (ENABLE_FEATURE_SEAMLESS_XZ
Denys Vlasenkodff2bd72019-05-24 17:03:28 +0200193 && xstate->magic.b16[0] == XZ_MAGIC1
Denys Vlasenko59655072012-03-06 16:23:50 +0100194 ) {
Denys Vlasenkodff2bd72019-05-24 17:03:28 +0200195 uint32_t v32;
Denys Vlasenko984b0a62016-06-20 11:06:42 +0200196 xstate->signature_skipped = 6;
Denys Vlasenkodff2bd72019-05-24 17:03:28 +0200197 xread(fd, &xstate->magic.b16[1], 4);
198 move_from_unaligned32(v32, &xstate->magic.b16[1]);
199 if (v32 == XZ_MAGIC2) {
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100200 xstate->xformer = unpack_xz_stream;
201 USE_FOR_NOMMU(xstate->xformer_prog = "unxz";)
Denys Vlasenko59655072012-03-06 16:23:50 +0100202 goto found_magic;
203 }
204 }
205
206 /* No known magic seen */
Denys Vlasenko640ce3d2014-02-02 02:06:38 +0100207 if (fail_if_not_compressed)
James Byrne69374872019-07-02 11:35:03 +0200208 bb_simple_error_msg_and_die("no gzip"
Denys Vlasenko59655072012-03-06 16:23:50 +0100209 IF_FEATURE_SEAMLESS_BZ2("/bzip2")
210 IF_FEATURE_SEAMLESS_XZ("/xz")
211 " magic");
Denys Vlasenko59655072012-03-06 16:23:50 +0100212
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100213 /* Some callers expect this function to "consume" fd
214 * even if data is not compressed. In this case,
215 * we return a state with trivial transformer.
216 */
217// USE_FOR_MMU(xstate->xformer = copy_stream;)
218// USE_FOR_NOMMU(xstate->xformer_prog = "cat";)
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100219
Denys Vlasenko984b0a62016-06-20 11:06:42 +0200220 found_magic:
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100221 return xstate;
222}
223
Denys Vlasenko0cf64c82017-08-10 10:35:08 +0200224static void fork_transformer_and_free(transformer_state_t *xstate)
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100225{
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100226# if BB_MMU
227 fork_transformer_with_no_sig(xstate->src_fd, xstate->xformer);
228# else
Denys Vlasenko984b0a62016-06-20 11:06:42 +0200229 /* NOMMU version of fork_transformer execs
230 * an external unzipper that wants
231 * file position at the start of the file.
232 */
Ron Yorstone837a0d2017-08-22 11:34:03 +0100233 xlseek(xstate->src_fd, - xstate->signature_skipped, SEEK_CUR);
Denys Vlasenko984b0a62016-06-20 11:06:42 +0200234 xstate->signature_skipped = 0;
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100235 fork_transformer_with_sig(xstate->src_fd, xstate->xformer, xstate->xformer_prog);
Denys Vlasenko59655072012-03-06 16:23:50 +0100236# endif
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100237 free(xstate);
Denys Vlasenko0cf64c82017-08-10 10:35:08 +0200238}
239
240/* Used by e.g. rpm which gives us a fd without filename,
241 * thus we can't guess the format from filename's extension.
242 */
243int FAST_FUNC setup_unzip_on_fd(int fd, int fail_if_not_compressed)
244{
245 transformer_state_t *xstate = setup_transformer_on_fd(fd, fail_if_not_compressed);
246
247 if (!xstate->xformer) {
248 free(xstate);
249 return 1;
250 }
251
252 fork_transformer_and_free(xstate);
Denys Vlasenko8a6a2f92012-03-06 16:27:48 +0100253 return 0;
Denys Vlasenko59655072012-03-06 16:23:50 +0100254}
Denys Vlasenko0cf64c82017-08-10 10:35:08 +0200255#if ENABLE_FEATURE_SEAMLESS_LZMA
256/* ...and custom version for LZMA */
257void FAST_FUNC setup_lzma_on_fd(int fd)
258{
259 transformer_state_t *xstate = xzalloc(sizeof(*xstate));
260 xstate->src_fd = fd;
261 xstate->xformer = unpack_lzma_stream;
262 USE_FOR_NOMMU(xstate->xformer_prog = "unlzma";)
263 fork_transformer_and_free(xstate);
264}
265#endif
Denys Vlasenko59655072012-03-06 16:23:50 +0100266
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100267static transformer_state_t *open_transformer(const char *fname, int fail_if_not_compressed)
Denys Vlasenko59655072012-03-06 16:23:50 +0100268{
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100269 transformer_state_t *xstate;
Denys Vlasenko59655072012-03-06 16:23:50 +0100270 int fd;
271
272 fd = open(fname, O_RDONLY);
273 if (fd < 0)
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100274 return NULL;
Denys Vlasenko59655072012-03-06 16:23:50 +0100275
Denys Vlasenko7c47b562014-01-10 14:06:57 +0100276 if (ENABLE_FEATURE_SEAMLESS_LZMA) {
277 /* .lzma has no header/signature, can only detect it by extension */
Denys Vlasenkof4fc3032018-11-27 11:26:48 +0100278 if (is_suffixed_with(fname, ".lzma")) {
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100279 xstate = xzalloc(sizeof(*xstate));
280 xstate->src_fd = fd;
281 xstate->xformer = unpack_lzma_stream;
282 USE_FOR_NOMMU(xstate->xformer_prog = "unlzma";)
283 return xstate;
Denys Vlasenko59655072012-03-06 16:23:50 +0100284 }
285 }
286
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100287 xstate = setup_transformer_on_fd(fd, fail_if_not_compressed);
288
289 return xstate;
290}
291
292int FAST_FUNC open_zipped(const char *fname, int fail_if_not_compressed)
293{
294 int fd;
295 transformer_state_t *xstate;
296
297 xstate = open_transformer(fname, fail_if_not_compressed);
298 if (!xstate)
299 return -1;
300
301 fd = xstate->src_fd;
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100302# if BB_MMU
Denys Vlasenkodf3ec0e2016-06-20 11:42:00 +0200303 if (xstate->xformer) {
304 fork_transformer_with_no_sig(fd, xstate->xformer);
305 } else {
306 /* the file is not compressed */
Denys Vlasenko984b0a62016-06-20 11:06:42 +0200307 xlseek(fd, - xstate->signature_skipped, SEEK_CUR);
308 xstate->signature_skipped = 0;
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100309 }
Denys Vlasenkodf3ec0e2016-06-20 11:42:00 +0200310# else
311 /* NOMMU can't avoid the seek :( */
312 xlseek(fd, - xstate->signature_skipped, SEEK_CUR);
313 xstate->signature_skipped = 0;
314 if (xstate->xformer) {
315 fork_transformer_with_sig(fd, xstate->xformer, xstate->xformer_prog);
Denys Vlasenkoe24e8862016-06-20 16:28:53 +0200316 } /* else: the file is not compressed */
Denys Vlasenkodf3ec0e2016-06-20 11:42:00 +0200317# endif
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100318
319 free(xstate);
Denys Vlasenko59655072012-03-06 16:23:50 +0100320 return fd;
Denys Vlasenko59655072012-03-06 16:23:50 +0100321}
322
323void* FAST_FUNC xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_p)
324{
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100325# if 1
326 transformer_state_t *xstate;
327 char *image;
328
329 xstate = open_transformer(fname, /*fail_if_not_compressed:*/ 0);
330 if (!xstate) /* file open error */
331 return NULL;
332
333 image = NULL;
334 if (xstate->xformer) {
335 /* In-memory decompression */
336 xstate->mem_output_size_max = maxsz_p ? *maxsz_p : (size_t)(INT_MAX - 4095);
337 xstate->xformer(xstate);
338 if (xstate->mem_output_buf) {
339 image = xstate->mem_output_buf;
340 if (maxsz_p)
341 *maxsz_p = xstate->mem_output_size;
342 }
343 } else {
Denys Vlasenkodff2bd72019-05-24 17:03:28 +0200344 /* File is not compressed.
345 * We already read first few bytes, account for that.
Denys Vlasenkoeda83c92019-05-26 13:46:49 +0200346 * Example where it happens:
Denys Vlasenkodff2bd72019-05-24 17:03:28 +0200347 * "modinfo MODULE.ko" (not compressed)
348 * open("MODULE.ko", O_RDONLY|O_LARGEFILE) = 4
349 * read(4, "\177E", 2) = 2
350 * fstat64(4, ...)
351 * mmap(...)
352 * read(4, "LF\2\1\1\0\0\0\0"...
353 * ...and we avoided seeking on the fd! :)
354 */
Denys Vlasenkodff2bd72019-05-24 17:03:28 +0200355 image = xmalloc_read_with_initial_buf(
356 xstate->src_fd,
357 maxsz_p,
358 xmemdup(&xstate->magic, xstate->signature_skipped),
359 xstate->signature_skipped
360 );
Denys Vlasenkocc71f792019-05-26 13:43:06 +0200361 xstate->signature_skipped = 0;
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100362 }
363
364 if (!image)
365 bb_perror_msg("read error from '%s'", fname);
366 close(xstate->src_fd);
367 free(xstate);
368 return image;
369# else
370 /* This version forks a subprocess - much more expensive */
Denys Vlasenko59655072012-03-06 16:23:50 +0100371 int fd;
372 char *image;
373
Denys Vlasenko640ce3d2014-02-02 02:06:38 +0100374 fd = open_zipped(fname, /*fail_if_not_compressed:*/ 0);
Denys Vlasenko59655072012-03-06 16:23:50 +0100375 if (fd < 0)
376 return NULL;
377
378 image = xmalloc_read(fd, maxsz_p);
379 if (!image)
380 bb_perror_msg("read error from '%s'", fname);
381 close(fd);
Denys Vlasenko59655072012-03-06 16:23:50 +0100382 return image;
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100383# endif
Denys Vlasenko59655072012-03-06 16:23:50 +0100384}
Denys Vlasenkob4c11c12014-12-07 00:44:00 +0100385
386#endif /* SEAMLESS_COMPRESSION */