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

Index types are messy in V4 objects and arrays

    XMLWordPrintable

Details

    Description

      We have a colorful mix of int, uint, qint64, qsizetype and double there and we constantly convert between them. Also, ECMAScript has opinions on this. This has bitten us before and is in no way safe against overflows.

      See for example the various QV4::Object::get() methods, QV4::Sequence, and QV4::ArrayPrototype. Mind that many list accesses go through plain QV4::Object::get() with uint indices. Only some lists are JS arrays, but all of them should follow array semantics.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes