Rizin
unix-like reverse engineering framework and cli tools
|
Tests BCJ decoding when the output size is known. More...
#include "tests.h"
Go to the source code of this file.
Functions | |
static void | compress (void) |
static void | decompress (void) |
static void | decompress_empty (void) |
int | main (void) |
Variables | |
static const uint8_t | in [16] = "0123456789ABCDEF" |
Something to be compressed. More... | |
static uint8_t | compressed [1024] |
in[] after compression More... | |
static size_t | compressed_size = 0 |
static uint8_t | out [sizeof(in)] |
Output buffer for decompressing compressed[]. More... | |
Tests BCJ decoding when the output size is known.
These tests fail with XZ Utils 5.0.3 and earlier.
Definition in file test_bcj_exact_size.c.
|
static |
Definition at line 30 of file test_bcj_exact_size.c.
References compressed, compressed_size, expect, filters, lzma_filter::id, in, LZMA_CHECK_CRC32, LZMA_FILTER_LZMA2, LZMA_FILTER_POWERPC, LZMA_OK, LZMA_VLI_UNKNOWN, NULL, and succeed.
Referenced by main().
|
static |
Definition at line 52 of file test_bcj_exact_size.c.
References lzma_stream::avail_in, lzma_stream::avail_out, compressed, compressed_size, expect, in, LZMA_OK, LZMA_RUN, LZMA_STREAM_END, LZMA_STREAM_INIT, lzma_stream::next_in, lzma_stream::next_out, out, strm, lzma_stream::total_in, and lzma_stream::total_out.
Referenced by main().
|
static |
int main | ( | void | ) |
Definition at line 107 of file test_bcj_exact_size.c.
References compress(), decompress(), and decompress_empty().
|
static |
in[] after compression
Definition at line 22 of file test_bcj_exact_size.c.
Referenced by compress(), decompress(), and uncompressed_name().
|
static |
Definition at line 23 of file test_bcj_exact_size.c.
Referenced by compress(), and decompress().
Something to be compressed.
Definition at line 19 of file test_bcj_exact_size.c.
Referenced by compress(), and decompress().
Output buffer for decompressing compressed[].
Definition at line 26 of file test_bcj_exact_size.c.
Referenced by decompress(), and decompress_empty().