crash adding features to OGR layers if any attribute index is missing in the layer #15939
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Data Provider
Related to specific vector, raster or mesh data providers
Author Name: Giuseppe Sucameli (@brushtyler)
Original Redmine Issue: 6791
Affected QGIS version: master
Redmine category:data_provider
Assignee: Giuseppe Sucameli
Here's the snippet to reproduce it.
Ok, the crash depends on the wrong attribute map key which is a string instead of the integer index of the field, I know.
But this cause bindings convert the string to -1 which is passed as attribute index to the OGR library...
The text was updated successfully, but these errors were encountered: