cupsfilter utility segmentation fault

Bug #485428 reported by pkun
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: cups

cups version is 1.4.1-5ubuntu2.1
The command like `$cupsfilter -j 1` cause Segmentation Fault
Your patch dynamic-default-ripcache-size.dpatch has a bug in function:
static const char* cupsdDefaultRIPCacheSize(void) for cupsfilter.c
It must return static char * value but it has not `return` at all.
Patch to fix this bug:

diff -uNrp cups-1.4.1-orig/scheduler/cupsfilter.c cups-1.4.1/scheduler/cupsfilter.c
--- cups-1.4.1-orig/scheduler/cupsfilter.c 2009-11-19 21:06:00.000000000 +0300
+++ cups-1.4.1/scheduler/cupsfilter.c 2009-11-19 21:07:52.000000000 +0300
@@ -1219,6 +1219,8 @@ cupsdDefaultRIPCacheSize(void)
       }
     }
   }
+
+ return size;
 }

 /*

This patch must be applied after all dpatch patches.

ProblemType: Bug
Architecture: amd64
Date: Thu Nov 19 21:23:11 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
Lpstat: device for local: socket://localhost
MachineType: Dell Inc. XPS M1330
NonfreeKernelModules: nvidia wl
Package: cups 1.4.1-5ubuntu2.1
Papersize: a4
PpdFiles: local: HP 2500CM Foomatic/Postscript (recommended)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-15-generic root=UUID=4a8f0a98-9ea7-4751-a5cc-0f41a7b1621e ro quiet splash
ProcEnviron:
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-15.50-generic
SourcePackage: cups
Uname: Linux 2.6.31-15-generic x86_64
XsessionErrors:
 (gnome-settings-daemon:2253): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:2253): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
dmi.bios.date: 12/26/2008
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A15
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA15:bd12/26/2008:svnDellInc.:pnXPSM1330:pvr:rvnDellInc.:rn:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: XPS M1330
dmi.sys.vendor: Dell Inc.

Revision history for this message
pkun (serj-kalichev) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.