New submission from Serhiy Storchaka:
Argument Clinic doesn't initialize Py_buffer parameters. It generates cleanup
code:
/* Cleanup for data */
if (data.buf)
PyBuffer_Release(&data);
And if PyArg_ParseTuple() is failed, the buf attribute can contains arbitrary
(non-NULL) data. This causes crash in PyBuffer_Release(). See issue20133 for
working example.
----------
components: Build
files: spammodule.c
messages: 207433
nosy: larry, serhiy.storchaka
priority: release blocker
severity: normal
status: open
title: Argument Clinic: Py_buffer parameters are not initialized
type: crash
versions: Python 3.4
Added file: http://bugs.python.org/file33326/spammodule.c
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue20142>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com