[Tile-serving] [openstreetmap/osm2pgsql] Fix overflow in fmt lib in middle test (PR #1658)
Jochen Topf
notifications at github.com
Thu Mar 17 07:52:52 UTC 2022
Compiling with UB sanitizer shows an overflow in the fmt library triggered by our code:
fmt/format-inl.h:1984:56: runtime error: unsigned integer overflow: 100000000 * 9876243 cannot be represented in type 'unsigned int'
This change fixes that.
And actually tests that locations read back are the same as original
ones.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/osm2pgsql/pull/1658
-- Commit Summary --
* Fix overflow in fmt lib in middle test
-- File Changes --
M tests/test-middle.cpp (9)
-- Patch Links --
https://github.com/openstreetmap/osm2pgsql/pull/1658.patch
https://github.com/openstreetmap/osm2pgsql/pull/1658.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1658
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/1658 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220317/1342836d/attachment.htm>
More information about the Tile-serving
mailing list