[cups.bugs] [HIGH] STR #1431: Invalid IPP response

Jens Elkner elkner at linofee.org
Sun Feb 19 05:25:28 PST 2006


[STR New]

If DefaultLanguage is not set in /etc/cups/cupsd.conf (i.e. commented out)
CUPS sends an invalid IPP response, which causes e.g. Java (verified for
all >= 1.4) to fail with java.lang.IndexOutOfBoundsException, since the
decoder relies on the fact, that a value is always prefixed with 2 bytes
(length of value). 

E.g.:
....
0x08f0:  001b 6e61 7475 7261  6c2d 6c61 6e67 7561   ..natural-langua
0x0900:  6765 2d63 6f6e 6669  6775 7265 6400 a46c   ge-configured..l
0x0910:  632d 6374 7970 653d  656e 2d75 733b 6c63   c-ctype=en-us;lc
....
0x09b0:  6e3d 6348 0024 6765  6e65 7261 7465 642d   n=cH.$generated-
0x09c0:  6e61 7475 7261 6c2d  6c61 6e67 7561 6765   natural-language
0x09d0:  2d73 7570 706f 7274  6564 00a4 6c63 2d63   -supported..lc-c
0x09e0:  7479 7065 3d65 6e2d  7573 3b6c 632d 6e75   type=en-us;lc-nu
....

In case you need the complete conversation between CUPS and the Java
client, please let me know.

Link: http://www.cups.org/str.php?L1431
Version: 1.1.23





More information about the cups-devel mailing list