[New-bugs-announce] [issue38540] Possible leaks in PyArg_Parse for "es#" and "et#"

Serhiy Storchaka report at bugs.python.org
Mon Oct 21 02:20:30 EDT 2019


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

There are possible leaks in PyArg_Parse and similar functions for format units "es#" and "et#". Macros STORE_SIZE and (since 3.8) FETCH_SIZE can leave the function despite there is an own reference to an encoded string (s). The leak is only possible when PY_SSIZE_T_CLEAN is not defined.

----------
components: Interpreter Core
messages: 355022
nosy: inada.naoki, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Possible leaks in PyArg_Parse for "es#" and "et#"
type: resource usage
versions: Python 2.7, Python 3.7, Python 3.8, Python 3.9

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


More information about the New-bugs-announce mailing list