Crash in CUPS connection code when printing

Bug #1378361 reported by David Boddie
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qt4-x11 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Under certain circumstances the CUPS library can invalidate the pointer to the structure describing the available printers. When this happens, attempts to print via CUPS in an application can lead to a crash due to a lack of checking in the QCUPSSupport code. The attached patch works around this problem by adding checks to avoid the crash but cannot, of course, do anything about the invalidation of the printers structure.

The patch has also been submitted upstream, without progress: https://codereview.qt-project.org/#/c/79782/1

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libqtgui4 4:4.8.1-0ubuntu4.8
ProcVersionSignature: Ubuntu 3.2.0-30.48-generic 3.2.27
Uname: Linux 3.2.0-30-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu17.7
Architecture: amd64
Date: Tue Oct 7 15:13:37 2014
MarkForUpload: True
SourcePackage: qt4-x11
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
David Boddie (david-boddie) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix crash that occurs if the CUPS library sets printers to zero." seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
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.