Coverage Report

Created: 2025-11-20 06:47

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/tinygltf/tests/fuzzer/fuzz_gltf.cc
Line
Count
Source
1
#include <cstdint>
2
#include <cstring>
3
#include <memory>
4
#include <vector>
5
#include <iostream>
6
7
#define STB_IMAGE_IMPLEMENTATION
8
#define STB_IMAGE_WRITE_IMPLEMENTATION
9
#define TINYGLTF_IMPLEMENTATION
10
#include "tiny_gltf.h"
11
12
static void parse_intCoding4(const uint8_t *data, size_t size)
13
749
{
14
15
749
  tinygltf::Model model;
16
749
  tinygltf::TinyGLTF ctx;
17
749
  std::string err;
18
749
  std::string warn;
19
20
749
  const char *str = reinterpret_cast<const char *>(data);
21
22
749
  bool ret = ctx.LoadASCIIFromString(&model, &err, &warn, str, size, /* base_dir */"" );
23
749
  (void)ret;
24
25
749
}
26
27
extern "C"
28
int LLVMFuzzerTestOneInput(std::uint8_t const* data, std::size_t size)
29
749
{
30
749
    parse_intCoding4(data, size);
31
749
    return 0;
32
749
}
33