[poppler] [PATCH] Correctly manipulate spot colors if SPOT_NCOMPS != 4

Stefan Brüns stefan.bruens at rwth-aachen.de
Sat May 26 10:52:28 UTC 2018


On Samstag, 26. Mai 2018 11:13:35 CEST Adam Reichold wrote:
> Hello again,
> 
> Am 26.05.2018 um 10:55 schrieb Albert Astals Cid:
> > I don't really understand the patch, are you saying something like "the
> > code is correct, if you change it wrong it will break"? That happens in
> > lots of places ;)
> 
> I guess the point is that the for loops should always start at i = 4
> (since dest[0..3] are handly outside) and should always go until NCOMPS + 4.
> 
> The current code does this only if NCOMPS == 4 which is the default and
> why this currently works. But if NCOMPS != 4, the current code breaks as
> the for does not start with 4 anymore and leaves out dest[4..NCOMPS] and
> this patch fixes this.
> 
> Best regards, Adam.
> 

Adams assessment is completely correct.

Kind regards,

Stefan

-- 
Stefan Brüns  /  Bergstraße 21  /  52062 Aachen
home: +49 241 53809034     mobile: +49 151 50412019
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20180526/0c2a77fe/attachment.sig>


More information about the poppler mailing list