diff --git a/CHANGELOG.md b/CHANGELOG.md index b57aa47..1bd023b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.26.4 + +* Array bounds bug fix in binary to decimal conversion library + ## 1.26.3 * Guard against impossible coordinates when decoding tilesets diff --git a/milo/dtoa_milo.h b/milo/dtoa_milo.h index d6821ed..02c8c08 100644 --- a/milo/dtoa_milo.h +++ b/milo/dtoa_milo.h @@ -284,7 +284,8 @@ inline void DigitGen(const DiyFp& W, const DiyFp& Mp, uint64_t delta, std::strin kappa--; if (p2 < delta) { *K += kappa; - GrisuRound(buffer, *len, delta, p2, one.f, wp_w.f * kPow10[-kappa]); + int index = -static_cast(kappa); + GrisuRound(buffer, *len, delta, p2, one.f, wp_w.f * (index < 9 ? kPow10[-static_cast(kappa)] : 0)); return; } } diff --git a/version.hpp b/version.hpp index f45cace..fb26719 100644 --- a/version.hpp +++ b/version.hpp @@ -1,6 +1,6 @@ #ifndef VERSION_HPP #define VERSION_HPP -#define VERSION "tippecanoe v1.26.3\n" +#define VERSION "tippecanoe v1.26.4\n" #endif