bigflood / dartexif

Dart package to decode Exif data from tiff, jpeg and heic files
https://pub.dev/packages/exif
MIT License
30 stars 29 forks source link

Range Error using ReadExifFromBytes #31

Closed aenckli closed 2 years ago

aenckli commented 2 years ago

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 commented 2 years ago

Bug fixed in v3.1.1