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