mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
Merge pull request #11063 from akallabeth/yuv-luma-null-check
[primitives,yuv] fix possible NULL dereference
This commit is contained in:
@@ -1905,10 +1905,10 @@ void general_RGBToAVC444YUVv2_BGRX_DOUBLE_ROW(
|
||||
if (x < width - 1)
|
||||
*yLumaDstEven++ = Yb;
|
||||
|
||||
if (srcOdd)
|
||||
if (srcOdd && yLumaDstOdd)
|
||||
*yLumaDstOdd++ = Yc;
|
||||
|
||||
if (srcOdd && (x < width - 1))
|
||||
if (srcOdd && (x < width - 1) && yLumaDstOdd)
|
||||
*yLumaDstOdd++ = Yd;
|
||||
|
||||
/* 2x 2y [b2,b3] */
|
||||
|
||||
Reference in New Issue
Block a user