#include "debug.h"
#include "fuzz.h"
#include "xxhash.h"
#include "zstd.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
◆ FUZZ_ASSERT
#define FUZZ_ASSERT |
( |
| cond | ) |
|
Value:
#define FUZZ_ASSERT_MSG(cond, msg)
Definition fuzz_helpers.h:42
◆ FUZZ_ASSERT_MSG
#define FUZZ_ASSERT_MSG |
( |
| cond, |
|
|
| msg ) |
Value: ((cond) ? (void)0 \
: (fprintf(stderr, "%s: %u: Assertion: `%s' failed. %s\n", __FILE__, \
abort()))
#define FUZZ_QUOTE(str)
Definition fuzz_helpers.h:37
Asserts for fuzzing that are always enabled.
◆ FUZZ_QUOTE
#define FUZZ_QUOTE |
( |
| str | ) |
|
Value:
#define FUZZ_QUOTE_IMPL(str)
Definition fuzz_helpers.h:36
const char * str
Table column heading string.
Definition list.c:109
◆ FUZZ_QUOTE_IMPL
#define FUZZ_QUOTE_IMPL |
( |
| str | ) |
|
◆ FUZZ_STATIC
#define FUZZ_STATIC static |
◆ FUZZ_ZASSERT
#define FUZZ_ZASSERT |
( |
| code | ) |
|
Value:
const char * ZSTD_getErrorName(size_t code)
Definition zstd_common.c:41
#define ZSTD_isError
Definition zstd_internal.h:49
◆ MAX
Value:
#define b(i)
Definition sha256.c:42
#define a(i)
Definition sha256.c:41
◆ MIN
Value:Helper functions for fuzzing.
◆ FUZZ_malloc()
void * FUZZ_malloc |
( |
size_t | size | ) |
|
malloc except return NULL for zero sized data and FUZZ_ASSERT that malloc doesn't fail.
◆ FUZZ_memcmp()
int FUZZ_memcmp |
( |
void const * | lhs, |
|
|
void const * | rhs, |
|
|
size_t | size ) |