Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-99056

FPE on unknown adreess with ASAN during drag and drop

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.15
    • GUI: Drag and Drop
    • None
    • Linux/X11

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              srutledg Shawn Rutledge
              j.kreuzberger Joerg Kreuzberger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes