blob: 030ffd9f17198c90cd82b34d2f7c96914476b53c [file] [log] [blame]
K. Moon832a6942022-10-31 20:11:31 +00001// Copyright 2016 The PDFium Authors
kcwua177d1c2016-09-26 12:09:30 -07002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Tom Sepezf7368422021-09-17 21:19:49 +00005#include <stdint.h>
kcwua177d1c2016-09-26 12:09:30 -07006
Nicolas Pena169b3012017-05-26 14:38:03 -04007#include "core/fpdfapi/font/cpdf_cmap.h"
Tom Sepezf7368422021-09-17 21:19:49 +00008#include "core/fxcrt/retain_ptr.h"
Lei Zhang37935952024-02-16 04:39:56 +00009#include "core/fxcrt/span.h"
kcwua177d1c2016-09-26 12:09:30 -070010
11extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
Lei Zhangb4407772019-01-16 19:30:47 +000012 if (size > 256 * 1024)
13 return 0;
14
Lei Zhang78430492019-08-13 18:09:04 +000015 pdfium::MakeRetain<CPDF_CMap>(pdfium::make_span(data, size));
kcwua177d1c2016-09-26 12:09:30 -070016 return 0;
17}