Crash if the geometry is corrupted

This commit is contained in:
Eric Fischer 2014-09-30 16:37:09 -07:00
parent c32b0207f2
commit 3ad8a919d9

View File

@ -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);
}
}