Coverage Report

Created: 2025-07-11 06:26

/src/openssh/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
6.93k
{
11
6.93k
  struct sshkey *k = NULL;
12
6.93k
  int r = sshkey_from_blob(data, size, &k);
13
6.93k
  if (r == 0) sshkey_free(k);
14
6.93k
  return 0;
15
6.93k
}
16
17
} // extern
18