[Tile-serving] [osm2pgsql] Foot conversion goes out of range (#156)
Paul Norman
notifications at github.com
Fri Jun 13 14:09:49 UTC 2014
[Within the real conversion](https://github.com/openstreetmap/osm2pgsql/blob/b325f197bb4a6bdded74ecd59fea147fb36bb24a/output-pgsql.c#L330) we have this code
```c
if ((tmpstr[slen-2]=='f') && (tmpstr[slen-1]=='t')) {
from*=0.3048;
}
sprintf(sql, "%f", from);
```
For small values (e.g. a way_area of 4) ``slen-2`` is negative, checking a value outside the string.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/156
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20140613/c34f3c4a/attachment.html>
More information about the Tile-serving
mailing list