-
Notifications
You must be signed in to change notification settings - Fork 25
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
NoEnabledDecoderFound exception thrown on images #19
Comments
What is the full error message you get on each image? The errors list the
starting bytes of the file which can be used to distinguish its real type.
…On Wed, Sep 2, 2020, 12:33 PM thecaptncode ***@***.***> wrote:
I am using Imageflow.net and trying to get image info on a variety of file
types. Most seem to work but several of them are failing with the
NoEnabledDecoderFound exception even though they appear to be valid test
images.
The packages I have installed are
Imageflow.net v0.7.1
Imageflow.Native.Runtime.win-x86_64 v.1.4.10rc50
and dependencies.
Here is my code. The stream source is a MemoryStream.
ImageInfo info = ImageJob.GetImageInfo(new StreamSource(msDoc, false)).Result;int width = (int)info.ImageWidth;int height = (int)info.ImageHeight;string ext = info.PreferredExtension;
I am attaching one that would not successfully read and providing links to
two others since GitHub limits file attachment extensions. Are there
encoders I need to enable?
[image: plane]
<https://user-images.githubusercontent.com/44200625/92021151-509a0500-ed27-11ea-99a3-21b8061e3218.gif>
https://homepages.cae.wisc.edu/~ece533/images/barbara.bmp <http://url>
https://file-examples-com.github.io/uploads/2017/10/file_example_TIFF_1MB.tiff
<http://url>
Regards,
Greg
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#19>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA2LH6CQSD5PNGWE2E4F73SD2FXBANCNFSM4QTQFYOQ>
.
|
The bitmap image throws this:
The gif throws this:
The tiff throws this:
All of that jives with what the first bytes of the files actually are. These are all test image files my testers found on the internet. Thanks! |
The supposed GIF is also a BMP file, thus the error. GIF images start with the letters "GIF". Imageflow does not support .tiff files nor raw bitmaps, so you'll need to convert them to PNG format for Imageflow to work with them. |
That makes sense. I did not realize Imageflow didn't support tiff and raw bitmaps. Is that functionality planned for the future? |
We might add raw bitmap support eventually but tiff support is not planned
due to the security issues involved.
…On Thu, Sep 3, 2020, 5:12 PM thecaptncode ***@***.***> wrote:
That makes sense. I did not realize Imageflow didn't support tiff and raw
bitmaps. Is that functionality planned for the future?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA2LH7KQYBBQMTNCZB4MGTSEAPHHANCNFSM4QTQFYOQ>
.
|
Today I learned about the tiff security vulnerabilities allowing arbitrary code execution. |
Yeah there have been 174 vulnerabilities in libtiff:
https://www.cvedetails.com/vulnerability-list/vendor_id-2224/Libtiff.html
…On Thu, Sep 3, 2020, 5:29 PM thecaptncode ***@***.***> wrote:
Today I learned about the tiff security vulnerabilities allowing arbitrary
code execution.
Thank you very much for the information and your quick response.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA2LH46MFNSOPXE5KYRRWTSEARGRANCNFSM4QTQFYOQ>
.
|
I saw several listed but not that many. Wow. Since we let our users upload images, I need to detect and disallow tiffs by inspecting the first bytes. It looks like there are two possible headers in tiffs: 49 49 2A 00 or 4D 4D 00 2A |
I am using Imageflow.net and trying to get image info on a variety of file types. Most seem to work but several of them are failing with the NoEnabledDecoderFound exception even though they appear to be valid test images.
The packages I have installed are
Imageflow.net v0.7.1
Imageflow.Native.Runtime.win-x86_64 v.1.4.10rc50
and dependencies.
Here is my code. The stream source is a MemoryStream.
I am attaching one that would not successfully read and providing links to two others since GitHub limits file attachment extensions. Are there encoders I need to enable?
https://homepages.cae.wisc.edu/~ece533/images/barbara.bmp
https://file-examples-com.github.io/uploads/2017/10/file_example_TIFF_1MB.tiff
Regards,
Greg
The text was updated successfully, but these errors were encountered: