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

Update exif.h #2101

Merged
merged 4 commits into from Feb 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Next
Update exif.h
  • Loading branch information
a-shvedov authored and mo271 committed Feb 1, 2023
commit d95b050c1822a5b1ede9e0dc937e43fca1b10159
1 change: 1 addition & 0 deletions lib/jxl/exif.h
Expand Up @@ -41,6 +41,7 @@ inline size_t FindExifTagPosition(const std::vector<uint8_t>& exif,
uint32_t offset = (bigendian ? LoadBE32(t) : LoadLE32(t));
if (exif.size() < 12 + offset + 2 || offset < 8) return 0;
t += offset - 4;
if(t + 2 >= exif.data() + exif.size()) return 0; // gdb_affter_SIGSEGV: 44 uint16_t nb_tags = (bigendian ? LoadBE16(t) : LoadLE16(t));
a-shvedov marked this conversation as resolved.
Show resolved Hide resolved
uint16_t nb_tags = (bigendian ? LoadBE16(t) : LoadLE16(t));
t += 2;
while (nb_tags > 0) {
Expand Down