mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-04-09 20:11:14 +00:00
Fix buffer overflow. This is a bounding box, not sub-tiles.
This commit is contained in:
parent
7724e2c329
commit
4bb88e228a
4
tile.cc
4
tile.cc
@ -478,9 +478,9 @@ long long write_tile(char **geoms, char *metabase, char *stringpool, unsigned *f
|
||||
for (yo = 0; yo < span; yo++) {
|
||||
int j = xo * span + yo;
|
||||
|
||||
long long bbox2[span * span];
|
||||
long long bbox2[4];
|
||||
int k;
|
||||
for (k = 0; k < span * span; k++) {
|
||||
for (k = 0; k < 4; k++) {
|
||||
bbox2[k] = bbox[k];
|
||||
}
|
||||
if (z != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user