container_names_fuzzertest.cc 518 B

123456789101112131415
  1. // Copyright 2016 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 "base/numerics/safe_conversions.h"
  6. #include "media/base/container_names.h"
  7. // Entry point for LibFuzzer.
  8. extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
  9. media::container_names::DetermineContainer(data,
  10. base::checked_cast<int>(size));
  11. return 0;
  12. }