/ QGIS Public
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an array out of bounds access when committing data (#3807)
This fixes an array out of bounds access when using a layer that consists of a main table with joined in attributes. The provider only tracks the attributes in the main table, but any joined in attributes is also passed to the provider. As the feature attributes is used to govern loop access, there will be an out of bounds access when the first joint attribute is encountered. The fix is borrowed from the postgres provider which stops looping through the passed in feature attributes when the limit of table attributes has been met.
- Loading branch information
Showing 1 changed file with 6 additions and 0 deletions.