--- Begin Message ---
- To: Laurent Bonnaud <bonnaud@lis.inpg.fr>
- Cc: security@kde.org
- Subject: Re: kword crash when opening kwd with formulas
- From: Dirk Mueller <mueller@kde.org>
- Date: Mon, 11 Dec 2006 15:28:05 +0100
- Message-id: <200612111528.05518.mueller@kde.org>
- In-reply-to: <1165742572.2462.15.camel@localhost>
- References: <1165742572.2462.15.camel@localhost>
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 ---