mapbox / mapnik-vector-tile

Mapnik implemention of Mapbox Vector Tile specification
BSD 3-Clause "New" or "Revised" License
553 stars 117 forks source link

Zero height and width possible when reading from image #239

Closed flippmoke closed 7 years ago

flippmoke commented 7 years ago

Currently it is possible for the width and height of an image during reading to be zero. This occurs because x_off or y_off will be equal to end_x or end_y. This causes a failure and an exception on the read call. We should change it so that we always have an image width and height of at least 1.