[cups.bugs] [CRIT] STR #2671: CUPSD crashes when reading subscriptions.conf
H. Blischke
h.blischke at srz-berlin.de
Tue Jan 15 11:42:07 PST 2008
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
When reading subscriptions.conf, cupsd calls the function
cupsdAddSubscription()
without an URI string, which causes a segfault (not on all systems, but
repeatable on Solaris 10).
The following patch fixes this:
--- orig.subscriptions.c Wed Jul 11 23:46:42 2007
+++ subscriptions.c Tue Jan 15 20:26:19 2008
@@ -323,7 +323,7 @@
"cupsdAddSubscription(mask=%x, dest=%p(%s), job=%p(%d),
"
"uri=\"%s\")",
mask, dest, dest ? dest->name : "", job, job ? job->id
: 0,
- uri);
+ uri ? uri : "");
if (!Subscriptions)
Subscriptions =
cupsArrayNew((cups_array_func_t)cupsd_compare_subscriptions,
Link: http://www.cups.org/str.php?L2671
Version: 1.3.5
More information about the cups-devel
mailing list