From de1690c068f6f9a916dfa61e0fb2a290d3438ee8 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Fri, 2 Sep 2011 16:09:37 +0100 Subject: [PATCH] Fixed hpcups crash when required plugin missing (bug #733461). --- hplip-hpcups-crash.patch | 12 ++++++++++++ hplip.spec | 9 ++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 hplip-hpcups-crash.patch diff --git a/hplip-hpcups-crash.patch b/hplip-hpcups-crash.patch new file mode 100644 index 0000000..bef5828 --- /dev/null +++ b/hplip-hpcups-crash.patch @@ -0,0 +1,12 @@ +diff -up hplip-3.11.7/prnt/hpcups/ModeJbig.cpp.hpcups-crash hplip-3.11.7/prnt/hpcups/ModeJbig.cpp +--- hplip-3.11.7/prnt/hpcups/ModeJbig.cpp.hpcups-crash 2011-09-02 16:04:58.118437727 +0100 ++++ hplip-3.11.7/prnt/hpcups/ModeJbig.cpp 2011-09-02 16:06:27.625795462 +0100 +@@ -99,6 +99,8 @@ const BYTE ModeJbig::szByte2[256] = + + ModeJbig::ModeJbig (unsigned int RasterSize) : Compressor (RasterSize, false) + { ++ m_hHPLibHandle = 0; ++ m_pszInputRasterData = 0; + m_iWidth = ((RasterSize + 31) / 32) * 4; + m_iPlaneNumber = 0; + m_iCurrentPlane = 0; diff --git a/hplip.spec b/hplip.spec index 1d938fd..f17c3e4 100644 --- a/hplip.spec +++ b/hplip.spec @@ -1,7 +1,7 @@ Summary: HP Linux Imaging and Printing Project Name: hplip Version: 3.11.7 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ and MIT Group: System Environment/Daemons Conflicts: system-config-printer < 0.6.132 @@ -24,6 +24,7 @@ Patch9: hplip-snmp-quirks.patch Patch10: hplip-discovery-method.patch Patch11: hplip-hpijs-marker-supply.patch Patch12: hplip-clear-old-state-reasons.patch +Patch13: hplip-hpcups-crash.patch Patch14: hplip-hpcups-sigpipe.patch Patch15: hplip-fax-ppd.patch Patch16: hplip-bad-low-ink-warning.patch @@ -200,6 +201,9 @@ mv prnt/drv/hpijs.drv.in{,.deviceIDs-drv-hpijs} # Clear old printer-state-reasons we used to manage (bug #510926). %patch12 -p1 -b .clear-old-state-reasons +# Fixed hpcups crash when required plugin missing (bug #733461). +%patch13 -p1 -b .hpcups-crash + # Avoid busy loop in hpcups when backend has exited (bug #525944). %patch14 -p1 -b .hpcups-sigpipe @@ -525,6 +529,9 @@ fi %postun libs -p /sbin/ldconfig %changelog +* Fri Sep 2 2011 Tim Waugh 3.11.7-3 +- Fixed hpcups crash when required plugin missing (bug #733461). + * Thu Aug 18 2011 Tim Waugh 3.11.7-2 - Create debugging files securely (CVE-2011-2722, bug #725830).