Handle indeterminate length FlatGeobuf headers, linestring geometries [#2]

This commit is contained in:
Brandon Liu
2022-03-27 19:13:22 +08:00
parent b350a8dda7
commit 33a9aef758
3 changed files with 30 additions and 17 deletions
+1 -1
View File
@@ -1403,7 +1403,7 @@ int read_input(std::vector<source> &sources, char *fname, int maxzoom, int minzo
sst[i].attribute_types = attribute_types;
}
parse_flatgeobuf(&sst, map, layer, sources[layer].layer);
parse_flatgeobuf(&sst, map, st.st_size, layer, sources[layer].layer);
for (size_t i = 0; i < CPUS; i++) {
dist_sum += dist_sums[i];