Coverage Report

Created: 2025-08-26 06:04

/src/hostap/tests/fuzzing/x509/x509.c
Line
Count
Source
1
/*
2
 * Testing tool for X.509v3 routines
3
 * Copyright (c) 2006-2019, Jouni Malinen <j@w1.fi>
4
 *
5
 * This software may be distributed under the terms of the BSD license.
6
 * See README for more details.
7
 */
8
9
#include "includes.h"
10
11
#include "common.h"
12
#include "tls/x509v3.h"
13
#include "../fuzzer-common.h"
14
15
16
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
17
6.00k
{
18
6.00k
  struct x509_certificate *cert;
19
20
6.00k
  wpa_fuzzer_set_debug_level();
21
22
6.00k
  cert = x509_certificate_parse(data, size);
23
6.00k
  x509_certificate_free(cert);
24
6.00k
  return 0;
25
6.00k
}