blob: fbac460cfabac89289cfa60ba781bce81232eb23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright 2007 - 2022, Alan Antonuk and the rabbitmq-c contributors.
// SPDX-License-Identifier: mit
#include <errno.h>
#include <inttypes.h>
#include <math.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <rabbitmq-c/amqp.h>
extern int LLVMFuzzerTestOneInput(const char *data, size_t size) {
int result;
amqp_pool_t pool;
init_amqp_pool(&pool, 4096);
{
amqp_table_t decoded;
size_t decoding_offset = 0;
amqp_bytes_t decoding_bytes;
decoding_bytes.len = size;
decoding_bytes.bytes = (uint8_t *)data;
result =
amqp_decode_table(decoding_bytes, &pool, &decoded, &decoding_offset);
}
return result;
}
|