c
static INLINE BOOL overlapping(...) { // ... parameters as before
    if (nXDst > UINT32_MAX / dstBytesPerPixel || nYDst > UINT32_MAX / nDstStep)
        return FALSE;

    const BYTE* pDstStart = &pDstData[nXDst * dstBytesPerPixel + nYDst * nDstStep];
    // ... rest of the function
}
