#7 Off-by-one error in IccTagLut.cpp

closed
None
5
2012-08-31
2007-08-24
No

CIccTagLut8::Validate has in Line 4336
if (m_XYZMatrix[0]!=1.0 || m_XYZMatrix[4]!=1.0 || m_XYZMatrix[9]!=1.0 || sum!=3.0) {

And you'll find the same line at line 4746 in CIccTagLut16::Validate

This is clearly an off-by-one error, as m_XYZMatrix has 9 elements. Patch to fix this is attached.

Discussion

  • Max Derhak

    Max Derhak - 2007-08-24
    • assigned_to: nobody --> maxderhak
     
  • Max Derhak

    Max Derhak - 2012-08-31
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks