[issue24602] SRE_SEARCH Integer Underflow

2015-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This was fixed in issue18684. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24602] SRE_SEARCH Integer Underflow

2015-07-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +pitrou, serhiy.storchaka stage: -> patch review ___ Python tracker ___ ___

[issue24602] SRE_SEARCH Integer Underflow

2015-07-09 Thread JohnLeitch
JohnLeitch added the comment: Attaching repro. -- Added file: http://bugs.python.org/file39889/SRE_SEARCH_Integer_Underflow.py ___ Python tracker ___

[issue24602] SRE_SEARCH Integer Underflow

2015-07-09 Thread JohnLeitch
JohnLeitch added the comment: Attaching proposed patch for unit tests to cover this issue. -- Added file: http://bugs.python.org/file39888/test_re.py.patch ___ Python tracker ___

[issue24602] SRE_SEARCH Integer Underflow

2015-07-09 Thread JohnLeitch
New submission from JohnLeitch: The Python 2.7 regular expression module suffers from an integer underflow in the SRE_SEARCH function of _sre.c, which leads to a buffer over-read condition. The issue is caused by unchecked subtraction performed while handling SR_OP_INFO blocks: if (patter