[Tile-serving] [osm2pgsql-dev/osm2pgsql] Wildcard match fixes (PR #2321)
Jochen Topf
notifications at github.com
Sat Apr 19 18:26:42 UTC 2025
Two or more consecutive * characters were not handled. A fix was on the web site this code comes from.
Before calling wildMatch recursively with "str + 1", the code did not check whether *str was zero, in which case the "str + 1" is illegal.
This also changes the names of the function parameters which were not consistent in .hpp and .cpp files.
Also: Rename wildMatch to wild_match for consistency with our naming scheme.
You can view, comment on, or merge this pull request online at:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2321
-- Commit Summary --
* Fix two bugs in wildcard match
* Rename wildMatch() to wild_match()
-- File Changes --
M src/tagtransform-c.cpp (2)
M src/wildcmp.cpp (27)
M src/wildcmp.hpp (2)
M tests/test-wildcard-match.cpp (49)
-- Patch Links --
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2321.patch
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2321.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2321
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/pull/2321 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20250419/e2a03793/attachment.htm>
More information about the Tile-serving
mailing list