• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include <cstdint>
6 
7 #include "core/fxcodec/basic/basicmodule.h"
8 #include "core/fxcrt/compiler_specific.h"
9 #include "core/fxcrt/span.h"
10 
LLVMFuzzerTestOneInput(const uint8_t * data,size_t size)11 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
12   // SAFETY: trusted arguments passed from fuzzer.
13   BasicModule::RunLengthEncode(UNSAFE_BUFFERS(pdfium::make_span(data, size)));
14   return 0;
15 }
16