| Index: core/fxcodec/codec/fx_codec.cpp
|
| diff --git a/core/fxcodec/codec/fx_codec.cpp b/core/fxcodec/codec/fx_codec.cpp
|
| index 79e5da27c8a28039ce95df9903f4b8b5b7cdd932..ef9414dbe539dd662321d7d4b7635a16d3396550 100644
|
| --- a/core/fxcodec/codec/fx_codec.cpp
|
| +++ b/core/fxcodec/codec/fx_codec.cpp
|
| @@ -294,7 +294,7 @@ FX_BOOL CCodec_RLScanlineDecoder::Create(const uint8_t* src_buf,
|
| m_nComps = nComps;
|
| m_bpc = bpc;
|
| // Aligning the pitch to 4 bytes requires an integer overflow check.
|
| - FX_SAFE_DWORD pitch = width;
|
| + FX_SAFE_UINT32 pitch = width;
|
| pitch *= nComps;
|
| pitch *= bpc;
|
| pitch += 31;
|
|
|