diff options
author | Jochen Topf <jochen@topf.org> | 2013-10-07 14:37:45 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-10-07 14:37:45 +0200 |
commit | f84a44f998063fdf457f91e950940112bbc1bc6e (patch) | |
tree | bd58661f2c7f3d799e1c48d778c91968f03e3d20 /tagstats/statistics_handler.hpp | |
parent | d7330666d1eb8ceb2a362d2434d46b777cbbd0bf (diff) | |
download | taginfo-f84a44f998063fdf457f91e950940112bbc1bc6e.tar taginfo-f84a44f998063fdf457f91e950940112bbc1bc6e.tar.gz |
Fix a bug with nodes outside bbox
If there are nodes with locations outside the bounding box we are interested in
in the input osm file and we are generating the geodistribution for ways images,
tagstats could segfault. In this case the node location wasn't stored in the
m_storage, so when reading the it back, either you get an unintialized value
or a segfault. (This also depends on the type of storage used.)
Thanks to @lonvia for help debugging this.
The solution is to store "MAXINT" as a marker and make sure it doesn't end up
in the GeoDistribution.
Diffstat (limited to 'tagstats/statistics_handler.hpp')
0 files changed, 0 insertions, 0 deletions