Backport of "exiftag: Prevent integer overflows and out of bounds reads when handling undefined tags" into 1.24
Backport of !6766 (merged) "exiftag: Prevent integer overflows and out of bounds reads when handling undefined tags".
Commits:
- 3af31d70 exiftag: Prevent integer overflows and out of bounds reads when handling undefined tags