diff options
author | Lei Zhang <thestig@chromium.org> | 2018-07-25 20:09:58 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-25 20:09:58 +0000 |
commit | 9160cec4c8a0559586d90a6dcf9b2a2551a5fbd8 (patch) | |
tree | 8d219e56835d1e589328276d03c7d495cb2298f7 /testing/fuzzers/xfa_codec_fuzzer.h | |
parent | 8481c71db0e3abed7bd12669116b223a65bebbb4 (diff) | |
download | pdfium-9160cec4c8a0559586d90a6dcf9b2a2551a5fbd8.tar.xz |
Change CFX_BufferSeekableReadStream to take a span.
Change-Id: Ib9e20fdfc637b2ba0358586e23ad72454b0b8ad1
Reviewed-on: https://pdfium-review.googlesource.com/38851
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'testing/fuzzers/xfa_codec_fuzzer.h')
-rw-r--r-- | testing/fuzzers/xfa_codec_fuzzer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testing/fuzzers/xfa_codec_fuzzer.h b/testing/fuzzers/xfa_codec_fuzzer.h index bfc069a31d..bc40f653af 100644 --- a/testing/fuzzers/xfa_codec_fuzzer.h +++ b/testing/fuzzers/xfa_codec_fuzzer.h @@ -12,6 +12,7 @@ #include "core/fxge/dib/cfx_dibitmap.h" #include "testing/fx_string_testhelpers.h" #include "third_party/base/ptr_util.h" +#include "third_party/base/span.h" #ifdef PDF_ENABLE_XFA_BMP #include "core/fxcodec/codec/ccodec_bmpmodule.h" @@ -52,7 +53,8 @@ class XFACodecFuzzer { std::unique_ptr<CCodec_ProgressiveDecoder> decoder = mgr->CreateProgressiveDecoder(); - auto source = pdfium::MakeRetain<CFX_BufferSeekableReadStream>(data, size); + auto source = pdfium::MakeRetain<CFX_BufferSeekableReadStream>( + pdfium::make_span(data, size)); FXCODEC_STATUS status = decoder->LoadImageInfo(source, type, nullptr, true); if (status != FXCODEC_STATUS_FRAME_READY) return 0; |