DEBUG
and RELEASE
modeImage.Load throws DivideByZeroException when loading malformed JPG file.
Steps to ReproduceRun the following code snippet with the path
variable containing the path to the file from the
attached archive:
You will get the following stack trace:
System.DivideByZeroException: Attempted to divide by zero.
at SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder.JpegComponentPostProcessor..ctor(MemoryAllocator memoryAllocator, JpegImagePostProcessor imagePostProcessor, IJpegComponent component)
at SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder.JpegImagePostProcessor..ctor(Configuration configuration, IRawJpegData rawJpeg)
at SixLabors.ImageSharp.Formats.Jpeg.JpegDecoderCore.PostProcessIntoImage[TPixel]()
at SixLabors.ImageSharp.Formats.Jpeg.JpegDecoder.Decode[TPixel](Configuration configuration, Stream stream)
at SixLabors.ImageSharp.Image.Decode[TPixel](Stream stream, Configuration config)
at SixLabors.ImageSharp.Image.WithSeekableStream[T](Configuration config, Stream stream, Func`2 action)
at SixLabors.ImageSharp.Image.Load[TPixel](Configuration config, Stream stream, IImageFormat& format)
at SixLabors.ImageSharp.Image.Load[TPixel](Configuration config, Byte[] data)
System Configuration
Found via SharpFuzz.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4