[cups.bugs] [MOD] STR #3871: cups-driverd truncates Device IDs to 127 characters

Tim Waugh twaugh at redhat.com
Tue Jun 21 07:51:00 PDT 2011


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

[STR New]

Device IDs reported by PPD files are truncated to 128 characters (in
load_drivers()), which is very restrictive.  Consider this real world
example for instance:

MFG:Hewlett-Packard;MDL:HP LaserJet 2100
Series;CMD:PJL,MLC,PCL,PCLXL,POSTSCRIPT;DES:Hewlett-Packard LaserJet 2100
Series;

This is already 122 characters.  Imagine if the CLASS field had been
included, as suggested in IEEE 1284:

CLS:PRINTER;MFG:Hewlett-Packard;MDL:HP LaserJet 2100
Series;CMD:PJL,MLC,PCL,PCLXL,POSTSCRIPT;DES:Hewlett-Packard LaserJet 2100
Series;

This would be 135 characters, so 8 of them would be lost (7 over-length,
plus another to make room for a terminating nul).  As the fields can be
listed in any order, this information could be vital for matching devices
to drivers.

Please increase this limit to something more reasonable, such as 256 --
which is what is used in load_ppds().

Link: http://www.cups.org/str.php?L3871
Version: 1.4.6





More information about the cups mailing list