Also fix arithmetic overflow when reading a Geobuf GeometryCollection

This commit is contained in:
Eric Fischer
2017-09-07 13:48:09 -07:00
parent c77c2a2b1e
commit c3d23675d1
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -255,6 +255,9 @@ std::vector<drawvec_type> readGeometry(protozero::pbf_reader &pbf, size_t dim, d
dv.dv = readMultiLine(coords, lengths, dim, e, true);
} else if (type == MULTIPOLYGON) {
dv.dv = readMultiPolygon(coords, lengths, dim, e);
} else {
// GeometryCollection
return ret;
}
dv.type = type / 2 + 1;