[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#394144: [Fwd: Re: kword crash when opening kwd with formulas]



I am going to remove the "security" tag...

-- 
Laurent Bonnaud.
http://www.lis.inpg.fr/pages_perso/bonnaud/

--- Begin Message ---
Am Sonntag, 10. Dezember 2006 10:22 schrieb Laurent Bonnaud:

> could you please look at this bug ?
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=394144

its a non-exploitable null pointer dereference. fixed in our svn, but we won't 
do any advisory about it. 

Thanks for your notification. 

Patch is attached. 

Dirk

Index: kword/KWCanvas.cpp
===================================================================
--- kword/KWCanvas.cpp	(revision 610789)
+++ kword/KWCanvas.cpp	(working copy)
@@ -1690,8 +1690,10 @@ void KWCanvas::updateRulerOffsets( int c
     // But we also need to offset to the current page, for the graduations
     QPoint pc = m_viewMode->pageCorner();
     //kdDebug() << "KWCanvas::updateRulerOffsets contentsX=" << cx << ", contentsY=" << cy << endl;
-    m_gui->getHorzRuler()->setOffset( cx - pc.x(), 0 );
-    m_gui->getVertRuler()->setOffset( 0, cy - pc.y() );
+    if (m_gui->getHorzRuler())
+        m_gui->getHorzRuler()->setOffset( cx - pc.x(), 0 );
+    if (m_gui->getVertRuler())
+        m_gui->getVertRuler()->setOffset( 0, cy - pc.y() );
 
 }
 

--- End Message ---

Reply to: