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 UrlResolver.java, the method resolveUrl would hang for specific input.
The while loop at line 348 would not terminate when slashIndex < 0 (e.g., path = a/../) or "..".equals(pathSegment.substring(slashIndex)) (e.g. path = ../../), since the key variable path remains unchanged under these conditions.
The text was updated successfully, but these errors were encountered:
Hi, we are working on the Algorithmic Complexity Denial-of-Service problem.
Our bug detection tool detected a performance bug from your code.
In UrlResolver.java, the method
resolveUrl
would hang for specific input.The while loop at line
348
would not terminate whenslashIndex < 0
(e.g., path = a/../) or"..".equals(pathSegment.substring(slashIndex))
(e.g. path = ../../), since the key variablepath
remains unchanged under these conditions.The text was updated successfully, but these errors were encountered: