Please sign in to comment.
QgsExpression::referencedAttributeIndexes(): only report valid indices
If the expression was referencing a non-existing field, -1 was returned in the result set, which caused later crashed in various providers, including the Spatialite, Postgres, etc..., due to tried to dereference mFields.at(-1) Discarding invalid indices is what is also done in QgsFeatureRequest::OrderBy::usedAttributeIndices() Fixes #33878
- Loading branch information
Showing with 19 additions and 2 deletions.
BIN +2 KB (100%) tests/testdata/provider/spatialite.db
Binary file not shown.