mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Fix array bounds error caught by -fsanitize=address
This commit is contained in:
@@ -1571,7 +1571,7 @@ int read_input(std::vector<source> &sources, char *fname, int &maxzoom, int minz
|
|||||||
|
|
||||||
long long progress = -1;
|
long long progress = -1;
|
||||||
long long ip;
|
long long ip;
|
||||||
for (ip = 0; ip < indices; ip++) {
|
for (ip = 1; ip < indices; ip++) {
|
||||||
if (map[ip].index != map[ip - 1].index) {
|
if (map[ip].index != map[ip - 1].index) {
|
||||||
count++;
|
count++;
|
||||||
sum += log(map[ip].index - map[ip - 1].index);
|
sum += log(map[ip].index - map[ip - 1].index);
|
||||||
|
|||||||
Reference in New Issue
Block a user