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

Unified Diff: pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc

Issue 2941413002: PDF: Consistently pass FPDF handles by value. (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pdf/pdfium/fuzzers/pdfium_fuzzer_helper.h ('k') | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc
diff --git a/pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc b/pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc
index 9598caa40e575ddff1f4cc339c09d54645f81bf8..d15d621b89ca66f9594152867ba2c437e12d0cbc 100644
--- a/pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc
+++ b/pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc
@@ -192,8 +192,8 @@ void PDFiumFuzzerHelper::RenderPdf(const char* pBuf, size_t len) {
FORM_DoDocumentAAction(form.get(), FPDFDOC_AACTION_WC);
}
-bool PDFiumFuzzerHelper::RenderPage(const FPDF_DOCUMENT& doc,
- const FPDF_FORMHANDLE& form,
+bool PDFiumFuzzerHelper::RenderPage(FPDF_DOCUMENT doc,
+ FPDF_FORMHANDLE form,
const int page_index) {
std::unique_ptr<void, FPDFPageDeleter> page(FPDF_LoadPage(doc, page_index));
if (!page)
« no previous file with comments | « pdf/pdfium/fuzzers/pdfium_fuzzer_helper.h ('k') | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698