// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/codec/png_codec.h"
namespace gfx {
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
// TODO(crbug.com/323934468): Initialize decoder settings dynamically using
// fuzzer input.
SkBitmap out;
PNGCodec::Decode(data, size, &out);
return 0;
}
} // namespace gfx