[New-bugs-announce] [issue8850] Remove "w" format of PyParse_ParseTuple()

STINNER Victor report at bugs.python.org
Sat May 29 04:24:20 CEST 2010

New submission from STINNER Victor <victor.stinner at haypocalc.com>:

"w" format is dangerous because it doesn't give the size of the buffer: the caller may write outside the buffer (buffer overflow).

"w*" and "w#" formats are fine.

It looks like "w" format is not used in trunk nor py3k (only w# and w*).

components: Interpreter Core
messages: 106702
nosy: haypo
priority: normal
severity: normal
status: open
title: Remove "w" format of PyParse_ParseTuple()
versions: Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list