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

Bug in example

    XMLWordPrintable

Details

    • Change-Id: I6f2d4c18e1fb33ee369ebc75f501e524e8e63615

    Description

      bad range checking in:

      QVariant AnimalModel::data(const QModelIndex & index, int role) const {
      if (index.row() < 0 || index.row() > m_animals.count())
      return QVariant();

      Example: AbstractItemModel for QtDeclarative module

      Attachments

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

        Activity

          People

            mvogt Matthew Vogt (closed Nokia identity) (Inactive)
            zygmunt Zygmunt Ptak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes