From 900a05fbfc0a9b146da3c1358b08c455ddaebd19 Mon Sep 17 00:00:00 2001 From: Blake Thompson Date: Mon, 18 Dec 2017 16:02:43 -0600 Subject: Prevent out of memory error from close paths with high command count --- src/mbgl/tile/vector_tile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbgl/tile/vector_tile.cpp b/src/mbgl/tile/vector_tile.cpp index f6f8de72d1..1b8c268d07 100644 --- a/src/mbgl/tile/vector_tile.cpp +++ b/src/mbgl/tile/vector_tile.cpp @@ -245,7 +245,7 @@ GeometryCollection VectorTileFeature::getGeometries() const { if (!line->empty()) { line->push_back((*line)[0]); } - + length = 0; } else { throw std::runtime_error("unknown command"); } -- cgit v1.2.1