Index: core/fxcodec/codec/fx_codec_jpeg.cpp |
diff --git a/core/fxcodec/codec/fx_codec_jpeg.cpp b/core/fxcodec/codec/fx_codec_jpeg.cpp |
index 553e237b32d526226670a3951a0dba5864345e86..8a54fa66845dfc3d0b6a848789a00fadafeaa722 100644 |
--- a/core/fxcodec/codec/fx_codec_jpeg.cpp |
+++ b/core/fxcodec/codec/fx_codec_jpeg.cpp |
@@ -142,7 +142,7 @@ static void _JpegEncode(const CFX_DIBSource* pSource, |
uint32_t pitch = pSource->GetPitch(); |
uint32_t width = pdfium::base::checked_cast<uint32_t>(pSource->GetWidth()); |
uint32_t height = pdfium::base::checked_cast<uint32_t>(pSource->GetHeight()); |
- FX_SAFE_DWORD safe_buf_len = width; |
+ FX_SAFE_UINT32 safe_buf_len = width; |
safe_buf_len *= height; |
safe_buf_len *= nComponents; |
safe_buf_len += 1024; |