mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-01 08:47:57 +00:00
Fix crash with very long (>128K) attribute values
This commit is contained in:
parent
d0980e29d0
commit
eb8ab1dd58
@ -1,3 +1,7 @@
|
||||
## 1.18.2
|
||||
|
||||
* Fix crash with very long (>128K) attribute values
|
||||
|
||||
## 1.18.1
|
||||
|
||||
* Only warn once about invalid polygons in tippecanoe-decode
|
||||
|
@ -53,7 +53,7 @@ int memfile_write(struct memfile *file, void *s, long long len) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
file->len += INCREMENT;
|
||||
file->len += (len + INCREMENT + 1) / INCREMENT * INCREMENT;
|
||||
|
||||
if (ftruncate(file->fd, file->len) != 0) {
|
||||
return -1;
|
||||
|
18
tests/longattr/out/-z0.json
Normal file
18
tests/longattr/out/-z0.json
Normal file
File diff suppressed because one or more lines are too long
5
tests/longattr/sherlock.json
Normal file
5
tests/longattr/sherlock.json
Normal file
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
#define VERSION "tippecanoe v1.18.1\n"
|
||||
#define VERSION "tippecanoe v1.18.2\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user