boostorg / property_tree

Boost.org property_tree module
http://boost.org/libs/property_tree
55 stars 92 forks source link

File path in regular expression pattern may fail depending on actual path #92

Closed s13n closed 10 months ago

s13n commented 3 years ago

In test/CMakeLists.txt line 12, a Regex pattern is being constructed from a variable that holds a system-dependent file path. If that path contains characters that are special in a Regex pattern, a failure results.

Example: A path containing plus signs '+'

Bottom line: Don't construct a Regex pattern from unknown text.

ashtum commented 10 months ago

Fixed in https://github.com/boostorg/property_tree/commit/3209276068bec51410bb2c439df090bbbe3320f0.