#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <limits.h>
#include "blob.h"
#include "blobmsg.h"
Go to the source code of this file.
◆ BLOBMSG_TYPE_TROUBLE
#define BLOBMSG_TYPE_TROUBLE INT_MAX |
◆ fuzz_blob_parse()
static void fuzz_blob_parse |
( |
const uint8_t * |
data, |
|
|
size_t |
size |
|
) |
| |
|
static |
Definition at line 62 of file test-fuzz.c.
int blob_parse_untrusted(struct blob_attr *attr, size_t attr_len, struct blob_attr **data, const struct blob_attr_info *info, int max)
static const struct blobmsg_policy foo_policy[]
◆ fuzz_blobmsg_parse()
static void fuzz_blobmsg_parse |
( |
const uint8_t * |
data, |
|
|
size_t |
size |
|
) |
| |
|
static |
Definition at line 11 of file test-fuzz.c.
int blobmsg_check_array_len(const struct blob_attr *attr, int type, size_t blob_len)
bool blobmsg_check_attr_len(const struct blob_attr *attr, bool name, size_t len)
bool blobmsg_check_attr_list_len(const struct blob_attr *attr, int type, size_t len)
int blobmsg_parse_array(const struct blobmsg_policy *policy, int policy_len, struct blob_attr **tb, void *data, unsigned int len)
int blobmsg_parse(const struct blobmsg_policy *policy, int policy_len, struct blob_attr **tb, void *data, unsigned int len)
#define BLOBMSG_TYPE_TROUBLE
◆ LLVMFuzzerTestOneInput()
int LLVMFuzzerTestOneInput |
( |
const uint8_t * |
input, |
|
|
size_t |
size |
|
) |
| |
Definition at line 94 of file test-fuzz.c.
102 memcpy(
data, input, size);
static void fuzz_blobmsg_parse(const uint8_t *data, size_t size)
static void fuzz_blob_parse(const uint8_t *data, size_t size)