// Copyright 2021 The PDFium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // File for holding strings representing PDF templates that are used by fuzzers. #ifndef TESTING_FUZZERS_PDF_FUZZER_TEMPLATES_H_ #define TESTING_FUZZERS_PDF_FUZZER_TEMPLATES_H_ constexpr char kSimplePdfTemplate[] = R"(%PDF-1.7 1 0 obj <> /NeedsRendering true>> endobj 2 0 obj <> endobj 3 0 obj <> endobj 30 0 obj <> stream $2 endstream endobj trailer <> %%EOF)"; // We define the bytes of the header explicitly to make the values more readable constexpr uint8_t kSimplePdfHeader[] = {0x25, 0x50, 0x44, 0x46, 0x2d, 0x31, 0x2e, 0x37, 0x0a, 0x25, 0xa0, 0xf2, 0xa4, 0xf4, 0x0a}; constexpr char kCatalog[] = R""(<>>> /NeedsRendering true /Pages 3 0 R /Type /Catalog>>)""; constexpr char kSimpleXfaObjWrapper[] = R""(<>)""; constexpr char kSimplePagesObj[] = "<>"; constexpr char kSimplePageObj[] = "<>"; constexpr char kSimplePreamble[] = R""()""; constexpr char kSimplePostamble[] = ""; #endif // TESTING_FUZZERS_PDF_FUZZER_TEMPLATES_H_