Coverage Report

Created: 2025-11-15 06:38

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
736
{
14
15
736
  tinygltf::Model model;
16
736
  tinygltf::TinyGLTF ctx;
17
736
  std::string err;
18
736
  std::string warn;
19
20
736
  const char *str = reinterpret_cast<const char *>(data);
21
22
736
  bool ret = ctx.LoadASCIIFromString(&model, &err, &warn, str, size, /* base_dir */"" );
23
736
  (void)ret;
24
25
736
}
26
27
extern "C"
28
int LLVMFuzzerTestOneInput(std::uint8_t const* data, std::size_t size)
29
736
{
30
736
    parse_intCoding4(data, size);
31
736
    return 0;
32
736
}
33