D17325: Fix leak in kemoticons

Kevin Funk noreply at phabricator.kde.org
Mon Dec 3 07:28:44 GMT 2018


kfunk created this revision.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
kfunk requested review of this revision.

REVISION SUMMARY
  ASAN trace:
  Indirect leak of 64 byte(s) in 2 object(s) allocated from:
  
    #0 0x52a000 in operator new(unsigned long) (/home/kfunk/devel/install/kf5/bin/kmail+0x52a000)
    #1 0x7fbac897e192 in QList<KEmoticonsProvider::Emoticon>::node_construct(QList<KEmoticonsProvider::Emoticon>::Node*, KEmoticonsProvider::Emoticon const&) /home/kfunk/devel/build/qt5.11/qtbase/include/QtCore/../../../../../src/qt5.11/qtbase/src/corelib/tools/qlist.h:435:65
    #2 0x7fbac897d184 in QList<KEmoticonsProvider::Emoticon>::append(KEmoticonsProvider::Emoticon const&) /home/kfunk/devel/build/qt5.11/qtbase/include/QtCore/../../../../../src/qt5.11/qtbase/src/corelib/tools/qlist.h:584:13
    #3 0x7fbac897c59c in KEmoticonsProvider::addIndexItem(QString const&, QStringList const&) /home/kfunk/devel/src/kf5/kemoticons/src/core/kemoticonsprovider.cpp:162:39
    #4 0x7fba8a15f7b5 in KdeEmoticons::loadTheme(QString const&) /home/kfunk/devel/src/kf5/kemoticons/src/providers/kde/kde_emoticons.cpp:183:13
    #5 0x7fbac896ceb7 in KEmoticonsPrivate::loadTheme(QString const&)::$_6::operator()(QString const&, QString const&, KEmoticonsProvider*) const /home/kfunk/devel/src/kf5/kemoticons/src/core/kemoticons.cpp:126:19
    #6 0x7fbac896cca1 in KEmoticonsPrivate::loadTheme(QString const&) /home/kfunk/devel/src/kf5/kemoticons/src/core/kemoticons.cpp:151:24
    #7 0x7fbac896d24f in KEmoticons::theme(QString const&) const /home/kfunk/devel/src/kf5/kemoticons/src/core/kemoticons.cpp:181:15
    #8 0x7fbac896d1ab in KEmoticons::theme() const /home/kfunk/devel/src/kf5/kemoticons/src/core/kemoticons.cpp:171:12
    #9 0x7fba8a2e25bb in KTextToHTMLEmoticons::parseEmoticons(QString const&, bool, QStringList const&) /home/kfunk/devel/src/kf5/kemoticons/src/integrationplugin/ktexttohtml.cpp:43:24
    ...

REPOSITORY
  R301 KEmoticons

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D17325

AFFECTED FILES
  src/core/kemoticonstheme.cpp

To: kfunk
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20181203/f7a69222/attachment.html>


More information about the Kde-frameworks-devel mailing list