CMSIS2000
0.0.7
|
Go to the source code of this file.
Macros | |
#define | _CRT_SECURE_NO_WARNINGS |
#define | FUZ_avail ROUND_PAGE(FUZ_max) |
#define | FUZ_max LZ4_COMPRESSBOUND(LEN) |
#define | LEN ((1<<15)) |
#define | MOD_SEQ(x) ((((x) >> 8) & 255) == 0) |
#define | NB_ATTEMPTS (1<<18) |
#define | NEW_SEQ(x) ((((x) >> 10) %10) == 0) |
#define | NUM_SEQ (1 << SEQ_POW) |
#define | PAGE_SIZE 4096 |
#define | PRIME1 2654435761U |
#define | PRIME2 2246822519U |
#define | PRIME3 3266489917U |
#define | ROUND_PAGE(x) (((x) + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1)) |
#define | SEQ_MSK ((NUM_SEQ) - 1) |
#define | SEQ_POW 2 |
Functions | |
static int | FUZ_GetMilliSpan (int nTimeStart) |
static int | FUZ_GetMilliStart () |
unsigned int | FUZ_rand (unsigned int *src) |
int | FUZ_SecurityTest () |
int | main () |
int | test_canary (unsigned char *buf) |
#define FUZ_avail ROUND_PAGE(FUZ_max) |
Referenced by main().
#define FUZ_max LZ4_COMPRESSBOUND(LEN) |
Referenced by main().
#define PRIME1 2654435761U |
Definition at line 53 of file fuzzer.c.
Referenced by FUZ_rand().
#define PRIME2 2246822519U |
Definition at line 54 of file fuzzer.c.
Referenced by FUZ_rand().
|
static |
Definition at line 71 of file fuzzer.c.
References FUZ_GetMilliStart().
Referenced by main().
|
static |
Definition at line 62 of file fuzzer.c.
Referenced by FUZ_GetMilliSpan(), and main().
unsigned int FUZ_rand | ( | unsigned int * | src | ) |
int FUZ_SecurityTest | ( | ) |
Definition at line 95 of file fuzzer.c.
References LZ4_uncompress().
Referenced by main().
int main | ( | void | ) |
Definition at line 119 of file fuzzer.c.
References FUZ_avail, FUZ_GetMilliSpan(), FUZ_GetMilliStart(), FUZ_max, FUZ_rand(), FUZ_SecurityTest(), LEN, LZ4_compress_limitedOutput(), LZ4_uncompress(), LZ4_uncompress_unknownOutputSize(), MOD_SEQ, NB_ATTEMPTS, NEW_SEQ, NUM_SEQ, PAGE_SIZE, PRIME3, SEQ_MSK, and test_canary().