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

MSVC 2017: free/realloc on non heap address when Qt is built statically

XMLWordPrintable

      1) memory free on non heap address (d->sharedNull())
      QVector::append()
      qt\5.8.0\src\qtbase\src\corelib\tools\qvector.h
      2) memory realloc on non heap address (QListData::shared_null)
      QListData::realloc_grow(int growth)
      qt\5.8.0\src\qtbase\src\corelib\tools\qlist.cpp

      Attachment: qvector.h + qlist.cpp
      Hot Fix marked with // Hans

      Here addionally Snipping Tool Images, from my Debugging Session witch the Callstack with the static Instance initialization.

        1. qlist.cpp
          61 kB
          Johann Brantsch
        2. qvector.h
          33 kB
          Johann Brantsch
        3. QListData_realloc_grow_CallStack.PNG
          58 kB
          Johann Brantsch
        4. Vector_append_Callstack.PNG
          66 kB
          Johann Brantsch
        5. qtbug59570.zip
          1 kB
          Friedemann Kleint
        6. qtbug59570_stack.txt
          4 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            hans_qt_bugreport Johann Brantsch
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes