Fix crash with very long (>128K) attribute values

This commit is contained in:
Eric Fischer 2017-05-18 14:33:38 -07:00
parent d0980e29d0
commit eb8ab1dd58
5 changed files with 29 additions and 2 deletions

View File

@ -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

View File

@ -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;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
#define VERSION "tippecanoe v1.18.1\n"
#define VERSION "tippecanoe v1.18.2\n"