blob: a08609449f2f5a921c14c38794dc1b370e873312 [file]
// 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 <stdint.h>
#include "core/fpdfapi/font/cpdf_cmap.h"
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/retain_ptr.h"
#include "core/fxcrt/span.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
if (size > 256 * 1024) {
return 0;
}
// SAFETY: required from fuzzer API.
pdfium::MakeRetain<CPDF_CMap>(UNSAFE_BUFFERS(pdfium::span(data, size)));
return 0;
}