We'll need a way to parse regex patterns in a programmatic way (convert to NFA?). From here we can analyze patterns in re calls and check for catastrophic behavior. The prevention document above lists a few initial behaviors to search for.
The text was updated successfully, but these errors were encountered:
Some Python examples with catastrophic backtracking:
We'll need a way to parse regex patterns in a programmatic way (convert to NFA?). From here we can analyze patterns in
re
calls and check for catastrophic behavior. The prevention document above lists a few initial behaviors to search for.The text was updated successfully, but these errors were encountered: