mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-03-25 13:17:38 +00:00
Fix array bounds error caught by -fsanitize=address
This commit is contained in:
parent
510247c2fb
commit
242a657fc1
2
main.cpp
2
main.cpp
@ -1571,7 +1571,7 @@ int read_input(std::vector<source> &sources, char *fname, int &maxzoom, int minz
|
||||
|
||||
long long progress = -1;
|
||||
long long ip;
|
||||
for (ip = 0; ip < indices; ip++) {
|
||||
for (ip = 1; ip < indices; ip++) {
|
||||
if (map[ip].index != map[ip - 1].index) {
|
||||
count++;
|
||||
sum += log(map[ip].index - map[ip - 1].index);
|
||||
|
Loading…
x
Reference in New Issue
Block a user