Skip to content
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

IndexOutOfRangeException for short files #9

Open
KvanTTT opened this issue Nov 20, 2015 · 2 comments
Open

IndexOutOfRangeException for short files #9

KvanTTT opened this issue Nov 20, 2015 · 2 comments

Comments

@KvanTTT
Copy link

KvanTTT commented Nov 20, 2015

I create simple 1.txt file with simple short content: "1" and got the System.IndexOutOfRangeException.

@pavogel
Copy link

pavogel commented Sep 15, 2017

At the time of this comment, I am able to run a 1 byte txt file through without exception (so this appears to be fixed?).

I do receive an ArgumentOutOfRangeException when MimeDetective.MimeTypes.GetFileMatchingCount fails due to tiny file size for png and gif (apparently they must be larger than 512 bytes).

Not a show stopper because I don't think anyone will ever upload an image that is smaller than 1 kb.

@Meyhem
Copy link

Meyhem commented Jul 26, 2018

Also getting Index out of range for 8-bit 50x100 png of size 457 bytes (small icon). Larger dimensions are working just fine.
Image that throws error
error

Same type larger image no error
no_error

Exception details
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants