[Tile-serving] [openstreetmap/osm2pgsql] Fix parsing problems in style file reader (PR #1592)
Jochen Topf
notifications at github.com
Tue Dec 14 14:13:50 UTC 2021
Some variables were not initialized correctly when parsing a style file,
which lead to some surprising behaviour with flags of one config line
re-used by the next if the flags field of that line was empty.
This could also have lead to buffer overflows in the first line being
parsed.
This commit also adds some more tests for the parsing code.
See #1590
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/osm2pgsql/pull/1592
-- Commit Summary --
* Fix parsing problems in style file reader
-- File Changes --
M src/taginfo.cpp (10)
M tests/CMakeLists.txt (1)
A tests/style/comments.style (3)
A tests/style/data-types.style (4)
A tests/style/empty.style (0)
A tests/style/invalid-data-type.style (2)
A tests/style/invalid-osm-type.style (2)
A tests/style/missing.style (5)
A tests/style/node.style (1)
A tests/style/valid.style (12)
A tests/style/way-area.style (3)
A tests/test-output-pgsql-style-file.cpp (231)
-- Patch Links --
https://github.com/openstreetmap/osm2pgsql/pull/1592.patch
https://github.com/openstreetmap/osm2pgsql/pull/1592.diff
--
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/pull/1592
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20211214/f86d13b5/attachment.htm>
More information about the Tile-serving
mailing list