提交 cc6e52a4 编写于 作者: 李寅

Merge branch 'i2b-bug' into 'master'

Fix image to buffer write overflow.

See merge request !326
......@@ -22,8 +22,7 @@ void BufferToImageFunctor<DeviceType::OPENCL, T>::operator()(
image->ResizeImage(buffer->shape(), image_shape);
}
} else {
Image *image_buf = dynamic_cast<Image *>(image->UnderlyingBuffer());
image_shape = image_buf->image_shape();
CalImage2DShape(image->shape(), type, &image_shape);
buffer->Resize(image->shape());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册