Skip to content

Conversation

@ChrisCoxArt
Copy link
Contributor

Check for bad values that prevent us from reading the TIFF file correctly.
Fixup some values that are obviously bad.
And test for a zero value before dividing.
Fixes #386 (Intel Inside!)

Pull Request Checklist

  • Have you followed the guidelines in Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you built your Pull Request locally with the Build Instructions?
  • Have you added or updated relevant tests?
  • Have you added or updated relevant docs?

Check for bad values that prevent us from reading the TIFF file correctly.
Fixup some values that are obviously bad.
And test for a zero value before dividing.
Fixes #386
@ChrisCoxArt ChrisCoxArt requested a review from xsscx as a code owner January 1, 2026 20:30
@xsscx xsscx self-assigned this Jan 1, 2026
@xsscx xsscx added PR Pull Request Review in Process PR being Reviewed by Maintainers Security Security Related Pending Merge Maintainer indicates Merge Pending and requests no further changes labels Jan 1, 2026
Copy link
Member

@xsscx xsscx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thu Jan 1 09:55:45 PM UTC 2026

@xsscx xsscx removed the Review in Process PR being Reviewed by Maintainers label Jan 1, 2026
@xsscx xsscx changed the title Fix divide by zero in TiffImg.cpp Fix: FPE in CTiffImg::ReadLine() at Tools/CmdLine/IccApplyProfiles/TiffImg.cpp:319:36 Jan 1, 2026
@xsscx xsscx merged commit 829d869 into master Jan 1, 2026
25 checks passed
@xsscx xsscx added Merged Merged and removed Pending Merge Maintainer indicates Merge Pending and requests no further changes labels Jan 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged Merged PR Pull Request Security Security Related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FPE in CTiffImg::ReadLine() at Tools/CmdLine/IccApplyProfiles/TiffImg.cpp:319:36

3 participants