Coverage Report

Created: 2025-11-09 06:09

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/readstat/src/fuzz/fuzz_format_sas7bdat.c
Line
Count
Source
1
#include <stdlib.h>
2
3
#include "../readstat.h"
4
#include "../test/test_types.h"
5
#include "../test/test_buffer.h"
6
#include "../test/test_buffer_io.h"
7
8
#include "fuzz_format.h"
9
10
18.5k
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
11
18.5k
    rt_buffer_t buffer = { .bytes = (char *)Data, .size = Size, .used = Size };
12
18.5k
    rt_buffer_ctx_t buffer_ctx = { .buffer = &buffer };
13
14
18.5k
    readstat_parser_t *parser = fuzzer_parser_init(Data, Size);
15
18.5k
    readstat_set_io_ctx(parser, &buffer_ctx);
16
17
18.5k
    readstat_parse_sas7bdat(parser, NULL, NULL);
18
18.5k
    readstat_parser_free(parser);
19
18.5k
    return 0;
20
18.5k
}