Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.15
-
None
Description
Performing Drag and Drop Operations on a QTreeWidget leads to ASAN errors
==30997==ERROR: AddressSanitizer: FPE on unknown address 0x7f625369386a (pc 0x7f625369386a bp 0x612000001fc0 sp 0x7ffc49917db0 T0) #0 0x7f6253693869 in QBasicDrag::startDrag() qt/qtbase/src/gui/kernel/qsimpledrag.cpp:228 #1 0x7f624df86313 in QXcbDrag::startDrag() qt/qtbase/src/plugins/platforms/xcb/qxcbdrag.cpp:201 #2 0x7f625369270f in QBasicDrag::drag(QDrag*) qt/qtbase/src/gui/kernel/qsimpledrag.cpp:204 #3 0x7f625368fd36 in QDragManager::drag(QDrag*) qt/qtbase/src/gui/kernel/qdnd.cpp:117
void QBasicDrag::startDrag() { QPoint pos; #ifndef QT_NO_CURSOR pos = QCursor::pos(); 228: if (pos.x() == int(qInf()))
The cast to int is causing the issue. Don't know what should be tested here, maybe pos.isNull()?
Attachments
Issue Links
- duplicates
-
QTBUG-52472 Undefined Behaviour in qsimpledrag.cpp line 207
- Closed