Skip to content

Conversation

@automata
Copy link

With the following image it crashes by a forever loop thanks the presence of undefined offset on makernote buffer:

https://the-grid-user-content.s3-us-west-2.amazonaws.com/d6a8cf7a-ff71-48ee-9241-9766849fd8d6.jpg

@automata automata changed the title Safe check makernote byte on Olympus cameras WIP: Safe check makernote Feb 2, 2016
@automata
Copy link
Author

automata commented Feb 2, 2016

Added more safe checks for all formats, preventing infinite loops.

It's not a WIP anymore, please consider the merge, @gomfunkel, @oeuillot.

@automata automata changed the title WIP: Safe check makernote Safe check makernote Feb 2, 2016
@oeuillot
Copy link
Collaborator

oeuillot commented Feb 2, 2016

I have commented
automata@aae0918

Regards,

@automata
Copy link
Author

automata commented Feb 2, 2016

Yep, it breaks some invalid makenotes, something that was fixed by a recent commit. However, I left those safe checks just in case.

@automata
Copy link
Author

automata commented Feb 2, 2016

BTW it would be interesting to have some tests on real images, I have a bunch on noflo-exif which has node-exif as dependency.

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

Successfully merging this pull request may close these issues.

2 participants