Bug 74883

Summary: blend usage in PDF with spot colors casue random output under windows
Product: poppler Reporter: Thomas Freitag <Thomas.Freitag>
Component: splash backendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: PDF shows the bug
output when splashModeDeviceN8 is used
Patch which solves the problem
Output after applying the patch

Description Thomas Freitag 2014-02-12 10:21:01 UTC
Created attachment 93923 [details]
PDF shows the bug

When blend functions are used in PDF with spot colors (separation colorspace) in splash backend in splashModeDeviceN8 mode, the output shows random colors when used under windows (at least VisualC compiled)
Comment 1 Thomas Freitag 2014-02-12 10:23:19 UTC
Created attachment 93924 [details]
output when splashModeDeviceN8 is used
Comment 2 Thomas Freitag 2014-02-12 10:28:35 UTC
Created attachment 93926 [details] [review]
Patch which solves the problem

The reason for the random colors is the uninitialized local variable cBlend. The blend functions only fills offset 0 to 3, so offset 4 up to 4 + SPOT_NCOMPS are left uninitialized, but all offsets are stored in the bitmap.
So we need to initialize these offsets with 0!
Comment 3 Thomas Freitag 2014-02-12 10:30:02 UTC
Created attachment 93927 [details]
Output after applying the patch
Comment 4 Albert Astals Cid 2014-02-12 20:51:22 UTC
Pushed

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.