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

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

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS, Linux/X11
    • 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

        For Gerrit Dashboard: QTBUG-78486
        # Subject Branch Project Status CR V

        Activity

          People

            ulherman Ulf Hermann
            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