From 0acdeef525c3acbc2e02be7ebe4ae32a93aa20ae Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Mon, 22 Oct 2018 13:26:53 -0700 Subject: [PATCH] Fix null pointer crash when looking for feature extent in filter output --- CHANGELOG.md | 5 +++++ plugin.cpp | 2 +- version.hpp | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ecea678..8ef0dab0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.32.1 + +* Fix null pointer crash when reading filter output that does not + tag features with their extent + ## 1.32.0 * Fix a bug that allowed coalescing of features with mismatched attributes diff --git a/plugin.cpp b/plugin.cpp index b1f54132..d416299d 100644 --- a/plugin.cpp +++ b/plugin.cpp @@ -419,7 +419,7 @@ serial_feature parse_feature(json_pull *jp, int z, unsigned x, unsigned y, std:: } json_object *extent = json_hash_get(tippecanoe, "extent"); - if (extent != NULL && sequence->type == JSON_NUMBER) { + if (extent != NULL && extent->type == JSON_NUMBER) { sf.extent = extent->number; } diff --git a/version.hpp b/version.hpp index 5589f67b..bff73004 100644 --- a/version.hpp +++ b/version.hpp @@ -1,6 +1,6 @@ #ifndef VERSION_HPP #define VERSION_HPP -#define VERSION "v1.32.0" +#define VERSION "v1.32.1" #endif