[issue41715] REDoS in c_analyzer

yeting li report at bugs.python.org
Fri Sep 4 09:24:06 EDT 2020


yeting li <liyt at ios.ac.cn> added the comment:

I think we can replace \w*[a-zA-Z]\w* with (_\d*)+([a-zA-Z]([_\d])*)+

This is an equivalent fix and the fixed regex is safe.

Does that sound right to you?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41715>
_______________________________________


More information about the Python-bugs-list mailing list