This appeared (after some discussion of Mozilla's handling of the PNG cHRM
chunk) on [EMAIL PROTECTED]  See also bug #460520 at
bugzilla.mozilla.org:

... little-cms succeeds when it should fail.

I think it fails to detect the error in MAT3Inverse (cmxmtrx.c):

int MAT3inverse()

it returns 1 on success and -1 for what the comment asserts is a singular
matrix.

But the code in cmswtpnt.c tests the result as a Boolean:

LCMSBOOL LCMSEXPORT cmsBuildRGB2XYZtransferMatrix(LPMAT3 r, LPcmsCIExyY
WhitePt,
                                          LPcmsCIExyYTRIPLE Primrs)
{
...
      // Result = Primaries ^ (-1) inverse matrix
      if (!MAT3inverse(&Primaries, &Result))
                      return FALSE;

The same bug exists in cmsmtrx.c itself (!) but not in cmsxform.c - which
tests for <0.

Glenn Randers-Pehrson (forwarding report by John Bowler)

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to