141 crc = lzma_crc32(
buffer + 6, 2, 0);
153 crc = lzma_crc32(
buffer + 4, 6, 0);
lzma_check
Type of the integrity check (Check ID)
#define LZMA_CHECK_ID_MAX
Maximum valid Check ID.
#define expect(expr, value)
#define LZMA_STREAM_HEADER_SIZE
Size of Stream Header and Stream Footer.
Options for encoding/decoding Stream Header and Stream Footer.
lzma_vli backward_size
Backward Size.
lzma_check check
Check ID.
static lzma_stream_flags decoded_flags
static bool test_header_decoder(lzma_ret expected_ret)
static void test_footer(void)
static lzma_stream_flags known_flags
static void test_encode_invalid(void)
static bool test_footer_decoder(lzma_ret expected_ret)
static void test_decode_invalid(void)
static void test_header(void)
static bool validate(void)
Common definitions for test applications.
#define memcrap(buf, size)
#define write32le(buf, num)
#define LZMA_VLI_UNKNOWN
VLI value to denote that the value is unknown.
#define LZMA_VLI_MAX
Maximum supported value of a variable-length integer.
lzma_ret
Return values used by several functions in liblzma.
@ LZMA_PROG_ERROR
Programming error.
@ LZMA_DATA_ERROR
Data is corrupt.
@ LZMA_FORMAT_ERROR
Memory usage limit was reached.
@ LZMA_OPTIONS_ERROR
Invalid or unsupported options.
@ LZMA_OK
Operation completed successfully.