This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: va_end twice in PyUnicode_FromFormatV
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.7, Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, python-dev, serhiy.storchaka, vstinner, xiang.zhang
Priority: normal Keywords: patch

Created on 2016-10-11 16:19 by xiang.zhang, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
PyUnicode_FromFormatV.patch xiang.zhang, 2016-10-11 16:19 review
Messages (2)
msg278496 - (view) Author: Xiang Zhang (xiang.zhang) * (Python committer) Date: 2016-10-11 16:19
vargs2 could be va_end()ed twice in PyUnicode_FromFormatV when format contains non-ascii characters. Once va_end()ed, vargs2 is undefined. So this could lead to undefined behaviour.
msg278517 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-10-12 06:01
New changeset 6a6ac890db78 by Benjamin Peterson in branch '3.6':
va_end vargs2 once (closes #28417)
https://hg.python.org/cpython/rev/6a6ac890db78

New changeset 439427ffbba1 by Benjamin Peterson in branch 'default':
merge 3.6 (#28417)
https://hg.python.org/cpython/rev/439427ffbba1
History
Date User Action Args
2022-04-11 14:58:38adminsetgithub: 72603
2016-10-12 06:01:23python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg278517

resolution: fixed
stage: patch review -> resolved
2016-10-11 16:19:38xiang.zhangcreate