Coverage Report

Created: 2024-06-18 06:23

/src/hpn-ssh/regress/misc/fuzz-harness/pubkey_fuzz.cc
Line
Count
Source
1
#include <stddef.h>
2
#include <stdio.h>
3
#include <stdint.h>
4
5
extern "C" {
6
7
#include "sshkey.h"
8
9
int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
10
2.68k
{
11
2.68k
  struct sshkey *k = NULL;
12
2.68k
  int r = sshkey_from_blob(data, size, &k);
13
2.68k
  if (r == 0) sshkey_free(k);
14
2.68k
  return 0;
15
2.68k
}
16
17
} // extern
18