Fix wrong-way comparison that was causing buffer overflow crash in tile-join (#14)

* Fix wrong-way comparison that was causing buffer overflow in tile-join

* Update changelog
This commit is contained in:
Erica Fischer
2022-09-27 09:15:54 -07:00
committed by GitHub
parent af1a7ed7ae
commit 3086838a10
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -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
+1 -1
View File
@@ -601,7 +601,7 @@ void handle_strategies(const unsigned char *s, std::vector<strategy> *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);
}
+1 -1
View File
@@ -1,6 +1,6 @@
#ifndef VERSION_HPP
#define VERSION_HPP
#define VERSION "v2.6.2"
#define VERSION "v2.6.3"
#endif