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

QAxServerBase::exception used uninitialized

    XMLWordPrintable

    Details

    • Platform/s:
      Windows
    • Commits:
      03eea4d922a8e85b9cef1ed5a021638bca9dd849 (qt/qtactiveqt/5.14)

      Description

      Commit 20f6c67 ("Introduce member initialization") has

      @@ -1118,16 +1103,6 @@ void QAxServerBase::init()
      (...)
      -    exception = 0;
      

      but does not add an initializer. From the rest of the code, it is never initialized before being used, as far as I can see.

      Background and notes:

      • I ran into a crash with a self-compiled QAxServer.lib from tag v5.14.0. Adding the "= nullptr" initializer fixes it for me.
      • The issue should affect all versions into which the mentioned commit flows (as far as I can see, the issue is still there in branch dev as I'm writing this, which is at commit 0ad6a783) – if I'm reading git log --oneline right, these are the following tags: v5.12.5, v5.13.1, v5.13.2, v5.14.0, v5.14.0-alpha1, v5.14.0-beta1, v5.14.0-beta2, v5.14.0-beta3, v5.14.0-rc1, v5.14.0-rc2.

      EDIT: Striked through statement based on a thinko.

        Attachments

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

          Activity

            People

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            pkut Philipp Kutin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes