Skip to content

Conversation

@joto
Copy link
Collaborator

@joto joto commented Apr 19, 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.

joto added 2 commits April 19, 2025 20:10
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.
To use our normal naming convention.
@lonvia lonvia merged commit 663d3b4 into osm2pgsql-dev:master Apr 22, 2025
43 of 44 checks passed
@joto joto deleted the wildcard-match-fixes branch April 22, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants