[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konsole-devel
Subject:    [Konsole-devel] [Bug 202293] XFree bug in Qt message processing
From:       Octavian <octavian.voicu () gmail ! com>
Date:       2009-08-03 0:11:02
Message-ID: 20090803001102.5F30A17FC6 () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=202293





--- Comment #4 from Octavian <octavian voicu gmail com>  2009-08-03 02:10:55 ---
I think I found the cause of the bug. Look in QX11Data::xdndHandleEnter. There
is only one XFree call so it doesn't matter if the line numbers don't match:
http://qt.gitorious.org/qt/qt/blobs/5aed3db0a4084f470769ad4b965001f17b878c79/src/gui/kernel/qdnd_x11.cpp#line814


The bug could be triggered if the call to XGetWindowProperty fails. In that
case retval would remain uninitialized, and although there is no SEGV (most
likely the uninitialized value points to some valid memory), the call to XFree
fails with a "double free or corruption (out)". There is a simple fix for this
I guess: initialize retval to NULL before the call and make sure data is not
accessed if it's NULL.

Should I report it on the Qt bug tracker?

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
konsole-devel mailing list
konsole-devel@kde.org
https://mail.kde.org/mailman/listinfo/konsole-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic