Rizin
unix-like reverse engineering framework and cli tools
|
#include "util.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <assert.h>
#include "lz4frame.h"
#include "lz4.h"
#include "xxhash.h"
Go to the source code of this file.
Classes | |
struct | cRess_t |
Macros | |
#define | LZ4F_STATIC_LINKING_ONLY |
#define | XXH_STATIC_LINKING_ONLY |
#define | KB *(1U<<10) |
#define | MB *(1U<<20) |
#define | GB *(1U<<30) |
#define | DISPLAY(...) fprintf(stderr, __VA_ARGS__) |
#define | DISPLAYLEVEL(l, ...) if (displayLevel>=l) { DISPLAY(__VA_ARGS__); } |
#define | DEBUG 0 |
#define | DEBUGOUTPUT(...) if (DEBUG) DISPLAY(__VA_ARGS__); |
#define | EXM_THROW(error, ...) |
#define | MIN(a, b) ( (a) < (b) ? (a) : (b) ) |
#define | MAX(a, b) ( (a) > (b) ? (a) : (b) ) |
Functions | |
static int | createCResources (cRess_t *ress) |
static void | freeCResources (cRess_t ress) |
int | frameCheck (cRess_t ress, FILE *const srcFile, unsigned bsid, size_t blockSize) |
int | FUZ_usage (const char *programName) |
int | main (int argc, const char **argv) |
Variables | |
static U32 | no_prompt = 0 |
static U32 | displayLevel = 2 |
static U32 | use_pause = 0 |
#define DEBUG 0 |
Definition at line 63 of file checkFrame.c.
Definition at line 65 of file checkFrame.c.
#define DISPLAY | ( | ... | ) | fprintf(stderr, __VA_ARGS__) |
Definition at line 56 of file checkFrame.c.
#define DISPLAYLEVEL | ( | l, | |
... | |||
) | if (displayLevel>=l) { DISPLAY(__VA_ARGS__); } |
Definition at line 57 of file checkFrame.c.
#define EXM_THROW | ( | error, | |
... | |||
) |
Definition at line 66 of file checkFrame.c.
#define GB *(1U<<30) |
Definition at line 50 of file checkFrame.c.
#define KB *(1U<<10) |
Definition at line 48 of file checkFrame.c.
#define LZ4F_STATIC_LINKING_ONLY |
Definition at line 37 of file checkFrame.c.
#define MB *(1U<<20) |
Definition at line 49 of file checkFrame.c.
#define XXH_STATIC_LINKING_ONLY |
Definition at line 41 of file checkFrame.c.
Definition at line 99 of file checkFrame.c.
References cRess_t::ctx, cRess_t::dstBuffer, cRess_t::dstBufferSize, EXM_THROW, free(), LZ4F_createDecompressionContext(), LZ4F_isError(), LZ4F_VERSION, malloc(), MB, cRess_t::srcBuffer, and cRess_t::srcBufferSize.
Referenced by main().
Definition at line 128 of file checkFrame.c.
References LZ4F_frameInfo_t::blockSizeID, cRess_t::ctx, cRess_t::dstBuffer, cRess_t::dstBufferSize, EXM_THROW, LZ4F_decompress(), LZ4F_getErrorName(), LZ4F_getFrameInfo(), LZ4F_isError(), NULL, pos, cRess_t::srcBuffer, and cRess_t::srcBufferSize.
Referenced by main().
|
static |
Definition at line 120 of file checkFrame.c.
References cRess_t::ctx, cRess_t::dstBuffer, free(), LZ4F_freeDecompressionContext(), and cRess_t::srcBuffer.
Referenced by main().
Definition at line 216 of file checkFrame.c.
References argv, assert(), createCResources(), DISPLAY, displayLevel, err, EXM_THROW, benchmark::FILE, frameCheck(), freeCResources(), FUZ_usage(), LZ4_VERSION_STRING, no_prompt, NULL, unsigned, and use_pause.
|
static |
Definition at line 81 of file checkFrame.c.
Referenced by main().
|
static |
Definition at line 80 of file checkFrame.c.
Referenced by main().
|
static |
Definition at line 82 of file checkFrame.c.
Referenced by main().