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

Calling a function with 14 parameters in QML leads to a SEGFAULT

    XMLWordPrintable

    Details

    • Platform/s:
      iOS/tvOS/watchOS, Linux/X11
    • Commits:
      00ae3b2323e9b138b0b43f301ec9da9407c66600

      Description

      When I call a function with 14 parameters in QML I get a segfault in:

      qv4stackframe_p.h line 190:

      memset(jsFrame->args + argc, 0, (nRegisters - argc)*sizeof(Value));

      nRegisters is 11 and argc is 14, so the third parameters yields -3*sizeof(Value) which is converted to size_t.

      I guess the memset should only be done in case argc<nRegisters?

        Attachments

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

          Activity

            People

            Assignee:
            ulherman Ulf Hermann
            Reporter:
            c.e Christian Eltges
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes