Skip to content

Commit

Permalink
Avoid potential recursion problem in msSHPLayerNextShape(). (#5108)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdlime committed Jun 25, 2015
1 parent 18b510a commit 7efdf9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapshape.c
Original file line number Diff line number Diff line change
Expand Up @@ -2688,7 +2688,7 @@ int msSHPLayerNextShape(layerObj *layer, shapeObj *shape)
msSHPReadShape(shpfile->hSHP, i, shape);
if(shape->type == MS_SHAPE_NULL) {
msFreeShape(shape);
msSHPLayerNextShape(layer, shape); /* skip NULL shapes */
return msSHPLayerNextShape(layer, shape); /* skip NULL shapes */
}
shape->numvalues = layer->numitems;
shape->values = msDBFGetValueList(shpfile->hDBF, i, layer->iteminfo, layer->numitems);
Expand Down

0 comments on commit 7efdf9c

Please sign in to comment.