[cups.bugs] [HIGH] STR #3642: ppdMarkOption does not unmark old values of PICK_ONE options

Benjamin Berg benjamin at sipsolutions.net
Fri Aug 20 10:10:49 PDT 2010


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR Closed w/o Resolution]

Uhm, OK, can't I reopen the bug?

Thing is the bug exists, it is in another part of the code though.

If you look at ppdMarkDefaults, you find the following:
  for (c = (ppd_choice_t *)cupsArrayFirst(ppd->marked);
       c;
       c = (ppd_choice_t *)cupsArrayNext(ppd->marked))
    cupsArrayRemove(ppd->marked, c);

Now, what is missing there is that c->marked is set to FALSE. Which means
that while the option is removed from the marked array, its internal state
is not changed.

I can provide a PPD and some C code that reproduces the bug if desired.

Link: http://www.cups.org/str.php?L3642
Version: 1.4.4
Fix Version: Unable to Reproduce





More information about the cups mailing list