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

Range Error using ReadExifFromBytes #31

Closed
aenckli opened this issue Dec 30, 2021 · 1 comment
Closed

Range Error using ReadExifFromBytes #31

aenckli opened this issue Dec 30, 2021 · 1 comment

Comments

@aenckli
Copy link

aenckli commented Dec 30, 2021

Range Error is reported when ReadExifFromBytes read an image file with Exif data having fieldOffset larger than file size or byte array size. The error comes from setPositioinSync in file_interface.dart. There is no bound checking in the function. This does not cause problem using ReadExifFromFile. It may be because file.setPositionSync(position) is more robust in file_interface_io.dart's setPositionSync.

bigflood added a commit that referenced this issue Dec 30, 2021
This fixes issues #29 #31
@bigflood
Copy link
Owner

Bug fixed in v3.1.1

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

2 participants