Fatal error. Internal CLR error
when working with image created by pointer-based overload of Image.WrapMemory<TPixel>
#2779
Labels
Prerequisites
DEBUG
andRELEASE
modeImageSharp version
3.1.5
Other ImageSharp packages and versions
none
Environment (Operating system, version and so on)
Windows 11 23H2 22631.3880
.NET Framework version
.NET SDK 8.0
Description
This happens when using
WrapMemory<TPixel>(void* pointer, int bufferSizeInBytes, int width, int height)
and passing buffer that is too small for givenwidth
,height
andTPixel
even with correctbufferSizeInBytes
valueExpected behaviour
Exception saying that given buffer is too small for given image size and pixel format
Actual behaviour
Fatal error. Internal CLR error
Steps to Reproduce
Run this code
Images
No response
The text was updated successfully, but these errors were encountered: