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

Reports of misaligned loads with asan on AArch64 / xcb

    XMLWordPrintable

Details

    • Linux/X11
    • 6ac40faa8 (dev), d05f5a503 (6.9), c95cb1e42 (6.8), c77d7e711 (tqtc/lts-6.5), 4f3e13dfc (tqtc/lts-5.15)

    Description

      The ASAN report:

      /home/jcelerier/libs/qt5/qtbase/src/plugins/platforms/xcb/qxcbdrag.cpp:1054:9: runtime error: load of misaligned address 0x504002eea79c for type 'const unsigned long', which requires 8 byte alignment

      The code:

          const unsigned long *l = (const unsigned long *)event->data.data32; 

      Most likely this just needs to be memcpy'd or std::bit_cast if that's available in Qt nowadays

      Attachments

        For Gerrit Dashboard: QTBUG-127517
        # Subject Branch Project Status CR V

        Activity

          People

            mmutz Marc Mutz
            jcelerier Jean-Michaël Celerier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: