Still need to increment pos counter in shapeindex even when the geometry is null, otherwise reads are possible beyond the end of file.

This commit is contained in:
Matt Amos 2012-02-10 15:21:02 +00:00
parent 6a015dcd59
commit 38e7b7cce0

View file

@ -165,6 +165,9 @@ int main (int argc,char** argv)
box2d<double> item_ext;
if (shape_type==shape_io::shape_null)
{
// still need to increment pos, or the pos counter
// won't indicate EOF until too late.
pos+=4+content_length;
continue;
}
else if (shape_type==shape_io::shape_point)