From 3ad8a919d989d38eae3eea2b52c173e5c650126f Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Tue, 30 Sep 2014 16:37:09 -0700 Subject: [PATCH] Crash if the geometry is corrupted --- tile.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tile.cc b/tile.cc index 248afe5..3efaa88 100644 --- a/tile.cc +++ b/tile.cc @@ -150,6 +150,9 @@ int to_feature(drawvec &geom, mapnik::vector::tile_feature *feature) { } } else if (op == VT_CLOSEPATH) { length++; + } else { + fprintf(stderr, "\nInternal error: corrupted geometry\n"); + exit(EXIT_FAILURE); } }