[cups.bugs] [HIGH] STR #1768: cupsd will crash by unnecessary %s in dirsvc.c
kmuto.debian
kmuto at debian.org
Sun Jun 11 02:09:52 PDT 2006
[STR New]
Hi,
Neil Brown found a bug in scheduler/dirsvc.c, as
Debian#372696.
There is an unnnecessary extra %s for parameter.
--- dirsvc.c.orig 2006-06-11 18:02:33.000000000 +0900
+++ dirsvc.c 2006-06-11 18:03:03.000000000 +0900
@@ -2540,7 +2540,7 @@
httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp",
NULL,
iface->hostname, iface->port,
- (p->type & CUPS_PRINTER_CLASS) ?
"/classes/%s%s" :
+ (p->type & CUPS_PRINTER_CLASS) ? "/classes/%s"
:
"/printers/%s",
p->name);
snprintf(packet, sizeof(packet), "%x %x %s \"%s\" \"%s\" \"%s\"
%s\n",
Link: http://www.cups.org/str.php?L1768
Version: 1.2-current
More information about the cups-devel
mailing list