Permalink
Browse files

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

  • Loading branch information...
sdlime committed Jun 25, 2015
1 parent 18b510a commit 7efdf9c9e33823b487405b63e571961785b9f29a
Showing with 1 addition and 1 deletion.
  1. +1 −1 mapshape.c
View
@@ -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 7efdf9c

Please sign in to comment.