Permalink
Browse files

Avoid potential recursion problem in msSHPLayerNextShape(). (#5108)

  • Loading branch information...
sdlime committed Jun 25, 2015
1 parent 3de634e commit 95f787aa7100dc5f996655d5936ef0b8c92b6bbf
Showing with 1 addition and 1 deletion.
  1. +1 −1 mapshape.c
@@ -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);

0 comments on commit 95f787a

Please sign in to comment.