Skip to content

Commit

Permalink
Fix exception reading JPG exif data
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-duncan committed Oct 24, 2024
1 parent 901f534 commit 643cfbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/exif/exif_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ class ExifData extends IfdContainer {
var index = 0;
while (ifdOffset > 0) {
block.offset = blockOffset + ifdOffset;
if (block.length < 2) {
break;
}

final directory = IfdDirectory();
final numEntries = block.readUint16();
Expand Down

0 comments on commit 643cfbb

Please sign in to comment.