diff --git a/CHANGELOG.md b/CHANGELOG.md index d5190db2..4f865ed9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.6.3 + +* Fix crash in tile-join caused by wrong-way comparison + ## 2.6.2 * Stop adding features to a tile if it can't possibly work, to limit memory use diff --git a/tile-join.cpp b/tile-join.cpp index 3f6d12c6..a9aedcff 100644 --- a/tile-join.cpp +++ b/tile-join.cpp @@ -601,7 +601,7 @@ void handle_strategies(const unsigned char *s, std::vector *st) { } else if (v->type != JSON_NUMBER) { fprintf(stderr, "Value %zu of %zu is not a number: %s\n", j, i, s); } else { - if (i <= st->size()) { + if (i >= st->size()) { st->resize(i + 1); } diff --git a/version.hpp b/version.hpp index d51291fb..9907ca38 100644 --- a/version.hpp +++ b/version.hpp @@ -1,6 +1,6 @@ #ifndef VERSION_HPP #define VERSION_HPP -#define VERSION "v2.6.2" +#define VERSION "v2.6.3" #endif