[issue32869] Incorrect dst buffer size for MultiByteToWideChar in _Py_fopen_obj

Alexey Izbyshev report at bugs.python.org
Sun Feb 18 11:58:54 EST 2018


New submission from Alexey Izbyshev <izbyshev at ispras.ru>:

MultiByteToWideChar expects the destination buffer size to be given in wide characters, not bytes.

This is currently not a real issue since _Py_fopen_obj is only used internally with mode being a short constant string in all call sites I've found.

----------
components: IO, Windows
messages: 312314
nosy: izbyshev, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
priority: normal
severity: normal
status: open
title: Incorrect dst buffer size for MultiByteToWideChar in _Py_fopen_obj
type: enhancement
versions: Python 3.6, Python 3.7

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


More information about the Python-bugs-list mailing list