summaryrefslogtreecommitdiff
path: root/fuzz/fuzz_url.c
blob: 5b3658a975134ca1eef822899644bdd799ba17b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2007 - 2022, Alan Antonuk and the rabbitmq-c contributors.
// SPDX-License-Identifier: mit

#include <inttypes.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>

#include <rabbitmq-c/amqp.h>

extern int LLVMFuzzerTestOneInput(const char *data, size_t size) {

  struct amqp_connection_info ci;
  int res;
  res = amqp_parse_url((char *)data, &ci);
  return res;
}