mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
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:
parent
6a015dcd59
commit
38e7b7cce0
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user