[Tile-serving] [openstreetmap/osm2pgsql] Undefined behaviour in boost triggered by test code (#1028)
Jochen Topf
notifications at github.com
Fri Dec 13 13:39:31 UTC 2019
These lines
https://github.com/openstreetmap/osm2pgsql/blob/master/tests/test-output-pgsql-int4.cpp#L33-L34
https://github.com/openstreetmap/osm2pgsql/blob/master/tests/test-output-pgsql-int4.cpp#L48-L49
trigger an undefined behaviour in the boost `lexical_cast` function are reported by the clang UB sanitizer:
```
/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:554:51: runtime error: unsigned integer overflow: 0 - 15000 cannot be represented in type 'unsigned int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:554:51 in
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1028
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20191213/ae592b9d/attachment.html>
More information about the Tile-serving
mailing list