[issue17016] _sre: avoid relying on pointer overflow

Matthew Barnett report at bugs.python.org
Wed Jan 23 04:03:08 CET 2013


Matthew Barnett added the comment:

Lines 1000 and 1084 will be a problem only if you're near the top of the address space. This is because:

1. ctx->pattern[1] will always be <= ctx->pattern[2].

2. A value of 65535 in ctx->pattern[2] means unlimited, even though SRE_CODE is now UCS4.

See also issue #13169.

If the 'unlimited' value is raised then fixing those lines will become more urgent.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17016>
_______________________________________


More information about the Python-bugs-list mailing list