[libreoffice/f15/master] Resolves: rhbz#674330 dereference of NULL mpBase

Caolan McNamara caolanm at fedoraproject.org
Wed Feb 16 16:52:49 UTC 2011


commit ba0dbdcabbe64a22061157262b559ee83bca8b02
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Feb 16 16:52:50 2011 +0000

    Resolves: rhbz#674330 dereference of NULL mpBase

 ...es-rhbz-674330-dereference-of-NULL-mpBase.patch |   27 ++++++++++++++++++++
 libreoffice.spec                                   |    7 ++++-
 2 files changed, 33 insertions(+), 1 deletions(-)
---
diff --git a/0001-Resolves-rhbz-674330-dereference-of-NULL-mpBase.patch b/0001-Resolves-rhbz-674330-dereference-of-NULL-mpBase.patch
new file mode 100644
index 0000000..ea20d29
--- /dev/null
+++ b/0001-Resolves-rhbz-674330-dereference-of-NULL-mpBase.patch
@@ -0,0 +1,27 @@
+From 1a9c37ac56b97aaf7535bff7bd2fb84b13ef8e50 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm at redhat.com>
+Date: Wed, 16 Feb 2011 16:45:48 +0000
+Subject: [PATCH] Resolves: rhbz#674330 dereference of NULL mpBase
+
+---
+ sd/source/ui/unoidl/DrawController.cxx |    4 +++-
+ 1 files changed, 3 insertions(+), 1 deletions(-)
+
+diff --git a/sd/source/ui/unoidl/DrawController.cxx b/sd/source/ui/unoidl/DrawController.cxx
+index 6f3c1e1..f64b649 100644
+--- a/sd/source/ui/unoidl/DrawController.cxx
++++ b/sd/source/ui/unoidl/DrawController.cxx
+@@ -166,7 +166,9 @@ void SAL_CALL DrawController::dispose (void)
+         {
+             mbDisposing = true;
+ 
+-            boost::shared_ptr<ViewShell> pViewShell = mpBase->GetMainViewShell();
++            boost::shared_ptr<ViewShell> pViewShell;
++            if (mpBase)
++                pViewShell = mpBase->GetMainViewShell();
+             if ( pViewShell )
+             {
+                 pViewShell->DeactivateCurrentFunction();
+-- 
+1.7.4
+
diff --git a/libreoffice.spec b/libreoffice.spec
index 2d00351..521ebef 100644
--- a/libreoffice.spec
+++ b/libreoffice.spec
@@ -28,7 +28,7 @@
 Summary:        Free Software Productivity Suite
 Name:           libreoffice
 Version:        3.3.1.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 License:        LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and (CDDL or GPLv2) and Public Domain
 Group:          Applications/Productivity
 URL:            http://www.documentfoundation.org/develop
@@ -112,6 +112,7 @@ Patch24: 0001-Resolves-rhbz-670020-crash-in-slidesorting.patch
 Patch25: 0001-Resolves-rhbz-676539-handle-missing-pWindows-from-xW.patch
 Patch26: 0001-Resolves-fdo-33750-i94623-use-optimal-border-width-w.patch
 Patch27: 0001-rhbz-649310-don-t-crash-deregistering-diff.-platform.patch
+Patch28: 0001-Resolves-rhbz-674330-dereference-of-NULL-mpBase.patch
 
 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
 %define instdir %{_libdir}
@@ -742,6 +743,7 @@ mv -f redhat.soc extras/source/palettes/standard.soc
 %patch25 -p1 -b .rhbz676539-handle-missing-pWindows-from-xW.patch
 %patch26 -p1 -b .fdo33750-i94623-use-optimal-border-width-w.patch
 %patch27 -p1 -b .rhbz649310-don-t-crash-deregistering-diff.-platform.patch
+%patch28 -p1 -b .rhbz674330-dereference-of-NULL-mpBase.patch
 touch scripting/source/pyprov/delzip
 touch scripting/util/provider/beanshell/delzip
 touch scripting/util/provider/javascript/delzip
@@ -2087,6 +2089,9 @@ update-desktop-database %{_datadir}/applications &> /dev/null || :
 %{basisinstdir}/program/kde-open-url
 
 %changelog
+* Wed Feb 16 2011 Caolán McNamara <caolanm at redhat.com> 3.3.1.1-2
+- Resolves: rhbz#674330 dereference of NULL mpBase
+
 * Fri Feb 11 2011 Caolán McNamara <caolanm at redhat.com> 3.3.1.1-1
 - 3.3.1 rc1
 - drop integrated 0001-don-t-pushback-and-process-a-corrupt-extension.patch


More information about the scm-commits mailing list