You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[RT Common] Fix integer overflow in surface size calculation
Modified GetSurfaceSizeInBytes() to prevent integer overflow when calculating surface sizes. Changed calculations to use mfxU64 intermediate variable (tempBytes) instead of direct mfxU32 arithmetic. Added overflow check before casting back to mfxU32, returning MFX_ERR_MEMORY_ALLOC if size exceeds UINT32_MAX. This prevents potential memory corruption or crashes with large surface dimensions.
0 commit comments