paulmach / orb

Types and utilities for working with 2d geometry in Golang
MIT License
892 stars 104 forks source link

encoding/mvt: verify tile coord does not overflow for z > 20 #74

Closed paulmach closed 2 years ago

paulmach commented 2 years ago

fixes https://github.com/paulmach/orb/issues/71

Due to the use of uint32 types, there is an overflow when going from zoom > 20 tiles to the z+12 tile coord space. That space could be 33+ bits, so need a bigger type.