Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
4.8.0
-
None
-
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