summaryrefslogtreecommitdiff
path: root/testing/libfuzzer/pdf_jpx_fuzzer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'testing/libfuzzer/pdf_jpx_fuzzer.cc')
-rw-r--r--testing/libfuzzer/pdf_jpx_fuzzer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/libfuzzer/pdf_jpx_fuzzer.cc b/testing/libfuzzer/pdf_jpx_fuzzer.cc
index 92ba210be3..bea7ba2dbe 100644
--- a/testing/libfuzzer/pdf_jpx_fuzzer.cc
+++ b/testing/libfuzzer/pdf_jpx_fuzzer.cc
@@ -37,7 +37,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
width = (width * components + 2) / 3;
format = FXDIB_Rgb;
}
- auto bitmap = pdfium::MakeRetain<CFX_DIBitmap>();
+
+ std::unique_ptr<CFX_DIBitmap> bitmap(new CFX_DIBitmap);
if (!bitmap->Create(width, height, format))
return 0;