Incorrect Regular Expression Ranges
Onyx2406 opened this issue · comments
In the file theano/gof/cmodule.py, there are overly broad or overlapping ranges in the regular expressions used in the re.findall and re.search functions. These could lead to unintended matches that could disrupt the execution of the code or potentially even create security vulnerabilities.
Steps to Reproduce
The bug is located in the code block starting at line 2395 in theano/gof/cmodule.py. The exact regular expressions causing the issue are:
-l["."-_a-zA-Z0-9]* in the re.findall function
Expected Behavior
The regular expressions should not have overly broad or overlapping ranges. They should be clear and unambiguous and match only the expected characters.