diff options
Diffstat (limited to 'core/fxcodec')
-rw-r--r-- | core/fxcodec/codec/ccodec_jpxmodule.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fxcodec/codec/ccodec_jpxmodule.cpp b/core/fxcodec/codec/ccodec_jpxmodule.cpp index 28221be340..2465ea7bd0 100644 --- a/core/fxcodec/codec/ccodec_jpxmodule.cpp +++ b/core/fxcodec/codec/ccodec_jpxmodule.cpp @@ -646,6 +646,8 @@ CCodec_JpxModule::~CCodec_JpxModule() {} std::unique_ptr<CJPX_Decoder> CCodec_JpxModule::CreateDecoder( pdfium::span<const uint8_t> src_span, CPDF_ColorSpace* cs) { + // TODO(thestig): |cs| should never be nullptr in production, but + // pdf_jpx_fuzzer.cc passes that in. auto decoder = pdfium::MakeUnique<CJPX_Decoder>(cs); if (!decoder->Init(src_span)) return nullptr; |