[New-bugs-announce] [issue23691] re.finditer iterator is not reentrant, but doesn't protect against nested calls to __next__

Evgeny Kapun report at bugs.python.org
Tue Mar 17 18:17:06 CET 2015


New submission from Evgeny Kapun:

Iterator returned by re.finditer includes a SRE_STATE value, which is not designed to be used concurrently. However, it is possible to call __next__ on such iterator while another such call is in progress, e.g. from a signal handler. This may result in corruption of SRE_STATE structure.

----------
components: Regular Expressions
messages: 238323
nosy: abacabadabacaba, ezio.melotti, mrabarnett
priority: normal
severity: normal
status: open
title: re.finditer iterator is not reentrant, but doesn't protect against nested calls to __next__
type: crash
versions: Python 3.4

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


More information about the New-bugs-announce mailing list