Uninit vars in KHTML
George Staikos
staikos at kde.org
Thu Sep 11 19:08:00 BST 2003
Something in selection in KHTML is using uninit variables now:
Offending code:
#ifndef KHTML_NO_SELECTION
// delete selection in case start and end position are at the same point
if(d->m_selectionStart == d->m_selectionEnd && d->m_startOffset ==
d->m_endOffset) {
#ifndef KHTML_NO_CARET
Valgrind log:
==7684== Conditional jump or move depends on uninitialised value(s)
==7684== at 0x4ADA59EB:
KHTMLPart::khtmlMouseReleaseEvent(khtml::MouseReleaseEvent*)
(khtml_part.cpp:5313)
==7684== by 0x4ADA3915: KHTMLPart::customEvent(QCustomEvent*)
(khtml_part.cpp:4842)
==7684== by 0x40E65999: QObject::event(QEvent*) (in /opt/qt-copy/lib/
libqt-mt.so.3.2.1)
==7684== by 0x40E039DC: QApplication::internalNotify(QObject*, QEvent*)
(in /opt/qt-copy/lib/libqt-mt.so.3.2.1)
==7684==
==7684== Conditional jump or move depends on uninitialised value(s)
==7684== at 0x4ADA5A51:
KHTMLPart::khtmlMouseReleaseEvent(khtml::MouseReleaseEvent*)
(khtml_part.cpp:5329)
==7684== by 0x4ADA3915: KHTMLPart::customEvent(QCustomEvent*)
(khtml_part.cpp:4842)
==7684== by 0x40E65999: QObject::event(QEvent*) (in /opt/qt-copy/lib/
libqt-mt.so.3.2.1)
==7684== by 0x40E039DC: QApplication::internalNotify(QObject*, QEvent*)
(in /opt/qt-copy/lib/libqt-mt.so.3.2.1)
--
George Staikos
KDE Developer http://www.kde.org/
Staikos Computing Services Inc. http://www.staikos.net/
More information about the kfm-devel
mailing list