CVE-2009-0793.patch 749 B

1234567891011121314151617181920212223
  1. --- src/cmsxform.c~ 2009-03-26 17:53:27.000000000 +0000
  2. +++ src/cmsxform.c 2009-03-26 18:31:41.000000000 +0000
  3. @@ -689,6 +689,9 @@
  4. GrayTRC = cmsReadICCGamma(hProfile, icSigGrayTRCTag);
  5. FromLstarToXYZ(GrayTRC, Shapes1);
  6. + if (GrayTRC == NULL)
  7. + return NULL;
  8. +
  9. // Reversing must be done after curve translation
  10. Shapes[0] = cmsReverseGamma(Shapes1[0]->nEntries, Shapes1[0]);
  11. @@ -704,6 +707,9 @@
  12. GrayTRC = cmsReadICCGammaReversed(hProfile, icSigGrayTRCTag); // Y
  13. + if (GrayTRC == NULL)
  14. + return NULL;
  15. +
  16. Shapes[0] = cmsDupGamma(GrayTRC);
  17. Shapes[1] = cmsDupGamma(GrayTRC);
  18. Shapes[2] = cmsDupGamma(GrayTRC);