mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +02:00
Fix buffer overflow. This is a bounding box, not sub-tiles.
This commit is contained in:
@@ -478,9 +478,9 @@ long long write_tile(char **geoms, char *metabase, char *stringpool, unsigned *f
|
|||||||
for (yo = 0; yo < span; yo++) {
|
for (yo = 0; yo < span; yo++) {
|
||||||
int j = xo * span + yo;
|
int j = xo * span + yo;
|
||||||
|
|
||||||
long long bbox2[span * span];
|
long long bbox2[4];
|
||||||
int k;
|
int k;
|
||||||
for (k = 0; k < span * span; k++) {
|
for (k = 0; k < 4; k++) {
|
||||||
bbox2[k] = bbox[k];
|
bbox2[k] = bbox[k];
|
||||||
}
|
}
|
||||||
if (z != 0) {
|
if (z != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user