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 committed by Dane Springmeyer
parent ee8a150e38
commit 90fccfe710

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)