-
-
Notifications
You must be signed in to change notification settings - Fork 859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image.Load throws NullReferenceException #797
Comments
@Metalnem It looks like your message is automated/auto generated. Would it be possible to also include a stack trace? |
Sorry if I'm looking automated :) Anyway, here's the stack trace:
|
…is found on a jpg image.
@Metalnem Just to confirm I understand it right: The image in fact is invalid, right? According to the file header it's a JPEG (Jfif) file, and I can reproduce the bug, but the image can't be opened by the windows 10 image viewer, paint, paint.net or Gimp. So we're going to throw an ImageFormatException stating that there is no readable SOF0 marker in this case. PR incoming in a few minutes... |
That's right, the image is invalid! |
#797 throw ImageFormatException when no StartOfFrame marker is found
…is found on a jpg image.
…bySharpFuzz SixLabors#797 throw ImageFormatException when no StartOfFrame marker is found
Image.Load throws a NullReferenceException when loading the image from the attached archive. You can run the following code to reproduce it (the path variable should contain the path to the extracted file):
Found via SharpFuzz.
The text was updated successfully, but these errors were encountered: