blob: 5cc2a7608e60216df6c285913f677e5aeb16b69e [file] [log] [blame]
K. Moon832a6942022-10-31 20:11:31 +00001// Copyright 2016 The PDFium Authors
tsepez7996fe82016-08-18 14:37:07 -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>
tsepez7996fe82016-08-18 14:37:07 -07006
dsinclair968a88f2016-10-04 13:39:46 -07007#include "core/fpdfapi/page/cpdf_psengine.h"
Tom Sepez53894392018-04-09 18:30:24 +00008#include "third_party/base/span.h"
dsinclair968a88f2016-10-04 13:39:46 -07009
tsepez7996fe82016-08-18 14:37:07 -070010extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
11 CPDF_PSEngine engine;
Tom Sepez53894392018-04-09 18:30:24 +000012 if (engine.Parse(pdfium::make_span(data, size)))
tsepez7996fe82016-08-18 14:37:07 -070013 engine.Execute();
14 return 0;
15}