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

Unified Diff: testing/libfuzzer/pdf_codec_jbig2_fuzzer.cc

Issue 2478303002: Reland "Remove CPDF_Object::Release() in favor of direct delete" (Closed)
Patch Set: Fix fuzzer build Created 4 years, 1 month 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 | « fpdfsdk/fpdfppo.cpp ('k') | testing/libfuzzer/pdf_hint_table_fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/libfuzzer/pdf_codec_jbig2_fuzzer.cc
diff --git a/testing/libfuzzer/pdf_codec_jbig2_fuzzer.cc b/testing/libfuzzer/pdf_codec_jbig2_fuzzer.cc
index 902977563405a3291931d2eeea30d31bb95d6f39..1db39751db0380083d7d0dc99bbaf7b8c81f25a0 100644
--- a/testing/libfuzzer/pdf_codec_jbig2_fuzzer.cc
+++ b/testing/libfuzzer/pdf_codec_jbig2_fuzzer.cc
@@ -29,8 +29,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
if (!bitmap->Create(width, height, FXDIB_1bppRgb))
return 0;
- std::unique_ptr<CPDF_Object, ReleaseDeleter<CPDF_Object>> stream(
- new CPDF_Stream);
+ std::unique_ptr<CPDF_Object> stream(new CPDF_Stream);
stream->AsStream()->SetData(data, size);
CPDF_StreamAcc src_stream;
src_stream.LoadAllData(stream->AsStream(), true);
« no previous file with comments | « fpdfsdk/fpdfppo.cpp ('k') | testing/libfuzzer/pdf_hint_table_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698