r20870 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Mon Feb 1 22:46:15 UTC 2016


Author: jghali
Date: Mon Feb  1 22:46:15 2016
New Revision: 20870

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20870
Log:
coverity #1350184: dereference after null check

Modified:
    branches/Version14x/Scribus/scribus/sccolorengine.cpp

Modified: branches/Version14x/Scribus/scribus/sccolorengine.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20870&path=/branches/Version14x/Scribus/scribus/sccolorengine.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/sccolorengine.cpp	(original)
+++ branches/Version14x/Scribus/scribus/sccolorengine.cpp	Mon Feb  1 22:46:15 2016
@@ -381,7 +381,7 @@
 		inC[1] = cmyk.m * 257;
 		inC[2] = cmyk.y * 257;
 		inC[3] = cmyk.k * 257;
-		if (cmsUse && !spot && doc->SoftProofing)
+		if (cmsUse && !spot && doc && doc->SoftProofing)
 		{
 			ScColorTransform xform = gamutCkeck ? transProofCMYKGC : transProofCMYK;
 			xform.apply(inC, outC, 1);




More information about the scribus-commit mailing list