aboutsummaryrefslogtreecommitdiff
path: root/fuzz/fuzz_alg_crc32_md5.c
blob: ad8c5d2ffcebde666365ce94d615fb546d1f2d92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "ndpi_api.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  u_char hash[16];

  /* No memory allocations involved */

  ndpi_crc32(data, size);
  ndpi_md5(data, size, hash);

  return 0;
}