Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: pdf/pdfium/fuzzers/pdfium_fuzzer_helper.h

Issue 2754103002: Add XFA pdfium fuzzer (Closed)
Patch Set: seed corpus Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pdf/pdfium/fuzzers/pdfium_fuzzer.cc ('k') | pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This fuzzer is simplified & cleaned up pdfium/samples/pdfium_test.cc
6
7 #include "third_party/pdfium/public/fpdf_ext.h"
8 #include "third_party/pdfium/public/fpdf_formfill.h"
9 #include "third_party/pdfium/public/fpdfview.h"
10 #include "v8/include/v8.h"
11
12 class PDFiumFuzzerHelper {
13 public:
14 virtual ~PDFiumFuzzerHelper();
15
16 void RenderPdf(const char* pBuf, size_t len);
17
18 virtual int GetFormCallbackVersion() const = 0;
19 virtual bool OnFormFillEnvLoaded(FPDF_DOCUMENT doc);
20
21 protected:
22 PDFiumFuzzerHelper();
23
24 private:
25 bool RenderPage(const FPDF_DOCUMENT& doc,
26 const FPDF_FORMHANDLE& form,
27 const int page_index);
28 };
OLDNEW
« no previous file with comments | « pdf/pdfium/fuzzers/pdfium_fuzzer.cc ('k') | pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698