mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Merge pull request #12315 from akallabeth/clear-check-fixup
[codec,clear] fix destination checks
This commit is contained in:
@@ -478,16 +478,16 @@ static BOOL clear_decompress_subcodecs_data(CLEAR_CONTEXT* WINPR_RESTRICT clear,
|
|||||||
|
|
||||||
const UINT32 nXDstRel = nXDst + xStart;
|
const UINT32 nXDstRel = nXDst + xStart;
|
||||||
const UINT32 nYDstRel = nYDst + yStart;
|
const UINT32 nYDstRel = nYDst + yStart;
|
||||||
if (1ull * nXDstRel + width > nWidth)
|
if (1ull * nXDstRel + width > nDstWidth)
|
||||||
{
|
{
|
||||||
WLog_ERR(TAG, "nXDstRel %" PRIu16 " + width %" PRIu16 " > nWidth %" PRIu32 "", xStart,
|
WLog_ERR(TAG, "nXDstRel %" PRIu32 " + width %" PRIu16 " > nDstWidth %" PRIu32 "",
|
||||||
width, nWidth);
|
nXDstRel, width, nDstWidth);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (1ull * nYDstRel + height > nHeight)
|
if (1ull * nYDstRel + height > nDstHeight)
|
||||||
{
|
{
|
||||||
WLog_ERR(TAG, "nYDstRel %" PRIu16 " + height %" PRIu16 " > nHeight %" PRIu32 "", yStart,
|
WLog_ERR(TAG, "nYDstRel %" PRIu32 " + height %" PRIu16 " > nDstHeight %" PRIu32 "",
|
||||||
height, nHeight);
|
nYDstRel, height, nDstHeight);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user