New submission from Alexey Izbyshev <izbys...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue32869>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to