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

Crash when using multi-line strings in an array

    XMLWordPrintable

Details

    Description

      The following will cause a crash -

      Item {
          property variant test: [
              "xx
               xx",
              "xx
               xx" ]
      }
      

      Output:

      ~> qmlscene test.qml
      Qml debugging is enabled. Only use this in a safe environment!
      file:///Users/jmcphers/test.qml:39: Uncaught SyntaxError: Unexpected token ILLEGAL
      Segmentation fault

      The equivalent using string concatenation works correctly -

      Item {
          property variant test: [
              "xx" +
              "xx",
              "xx" +
              "xx" ]
      }
      

      Attachments

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

        Activity

          People

            dajansen Damian Jansen (closed Nokia identity) (Inactive)
            jmcphers Justin McPherson (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes