Coverage Report

Created: 2022-11-18 06:58

/src/netcdf-c/fuzz/fuzz_open.c
Line
Count
Source
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <stdint.h>
4
#include <stdarg.h>
5
#include <string.h>
6
7
#include <netcdf.h>
8
#include <netcdf_mem.h>
9
10
34
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
11
34
    int ncid;
12
34
    if (nc_open_mem("/tmp/fuzz.nc", 0, Size, (void *) Data, &ncid) == NC_NOERR) {
13
3
        nc_close(ncid);
14
3
    }
15
34
    return 0;
16
34
}
17