// Copyright 2016 The PDFium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <cstdint> #include <memory> #include "core/fpdfapi/page/cpdf_colorspace.h" #include "core/fxcodec/jpx/cjpx_decoder.h" #include "core/fxcrt/fx_safe_types.h" #include "core/fxge/dib/cfx_dibitmap.h" #include "core/fxge/dib/fx_dib.h" namespace { const uint32_t kMaxJPXFuzzSize = …; // 100 MB bool CheckImageSize(const CJPX_Decoder::JpxImageInfo& image_info) { … } } // namespace extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { … }