Coverage Report

Created: 2026-01-09 06:22

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/flatbuffers/tests/fuzzer/flexbuffers_verifier_fuzzer.cc
Line
Count
Source
1
// Copyright 2015 The Chromium Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
#include <stddef.h>
5
#include <stdint.h>
6
7
#include <string>
8
9
#include "flatbuffers/flexbuffers.h"
10
11
11.4k
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
12
11.4k
  std::vector<uint8_t> reuse_tracker;
13
  // Check both with and without reuse tracker paths.
14
11.4k
  flexbuffers::VerifyBuffer(data, size, &reuse_tracker);
15
  // FIXME: we can't really verify this path, because the fuzzer will
16
  // construct buffers that time out.
17
  // Add a simple #define to bound the number of steps just for the fuzzer?
18
  // flexbuffers::VerifyBuffer(data, size, nullptr);
19
11.4k
  return 0;
20
11.4k
}