// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/351564777): Remove this and convert code to safer constructs. #pragma allow_unsafe_buffers #endif #include <stddef.h> #include <stdint.h> #include <random> #include <string> #include "testing/libfuzzer/fuzzers/libyuv_scale_fuzzer.h" #include "third_party/libyuv/include/libyuv.h" static void FillBufferWithRandomData(uint8_t* dst, size_t len, std::minstd_rand0 rng) { … } void Scale(bool is420, int src_width, int src_height, int dst_width, int dst_height, int filter_num, std::string seed_str) { … }