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

QRemoteObjectHost crashes when using hostUrl method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 5.15
    • 5.14.2
    • Remote Objects
    • None

    Description

      When you create a QRemoteObjectHost with an IP adress that does not belong to the computer you are running the application, you get an internal QSocketError. Now when you use hostUrl() it crashes.

       

      auto pHost = new QRemoteObjectHost("tcp://99.99.99.99:12345");

      pHost->hostUrl();

       

      Example:

      #include <QtWidgets/QApplication>
      #include <QtRemoteObjects/QRemoteObjectHost>
      
      int main(int argc, char* argv[])
      {
        QApplication a(argc, argv);
        auto pHost = new QRemoteObjectHost("tcp://99.99.99.99:12345"); // use an ip address that does not belong to your adapters
        pHost->hostUrl();
        return a.exec();
      } 
       
      

      Attachments

        1. illegaladdresscrash.tar.gz
          0.7 kB
          Olivier De Cannière
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bstottle Brett Stottlemyer
            schnieder Christian schnueder
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes