c++
    if (nXDst > UINT32_MAX / dstBytesPerPixel ||
        nYDst > UINT32_MAX / nDstStep ||
        nXDst * dstBytesPerPixel > UINT32_MAX - nYDst * nDstStep)
        return FALSE;
