You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In AntPathMatcher.Java the method matchStrings and doMatch would take a long time for some particular patterns.
e.g., matchStrings would take long for a pattern like "a*?*?*?*?*?*?*?*?b*...c" due to its inefficient logic in handling the match between the first and the last asterisks.
We are working on the Algorithmic Complexity Denial-of-Service problem and detected a performance bug from your code.
In AntPathMatcher.Java the method
matchStrings
anddoMatch
would take a long time for some particular patterns.e.g.,
matchStrings
would take long for a pattern like "a*?*?*?*?*?*?*?*?b*...c" due to its inefficient logic in handling the match between the first and the last asterisks.We suggest you to update AntPathMatcher.Java following the recent implementation in spring-framework for fixing this problem.
The text was updated successfully, but these errors were encountered: