From b6e0117285a918f4f2f3a350b8a648d2247d3d8e Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Wed, 20 Jun 2018 13:43:04 +0000 Subject: Add in a size guard to JPX fuzzer Setting an upper limit to the size of images being processed in the JPX fuzzer to reduce timeouts due to images just being really big. Also cleaned the types for passing pitch down to reduce the signedness conversions. BUG=chromium:834561 Change-Id: I28b7a2537a922ed7a9ca2f8ed049ae78dd471f49 Reviewed-on: https://pdfium-review.googlesource.com/35570 Reviewed-by: Henrique Nakashima Commit-Queue: Ryan Harrison --- core/fxcodec/codec/cjpx_decoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fxcodec/codec/cjpx_decoder.h') diff --git a/core/fxcodec/codec/cjpx_decoder.h b/core/fxcodec/codec/cjpx_decoder.h index c68969301c..9de9d6c4ab 100644 --- a/core/fxcodec/codec/cjpx_decoder.h +++ b/core/fxcodec/codec/cjpx_decoder.h @@ -24,7 +24,7 @@ class CJPX_Decoder { bool Init(const unsigned char* src_data, uint32_t src_size); void GetInfo(uint32_t* width, uint32_t* height, uint32_t* components); bool Decode(uint8_t* dest_buf, - int pitch, + uint32_t pitch, const std::vector& offsets); private: -- cgit v1.2.3