New submission from Serhiy Storchaka:

PyObject_AsCharBuffer(), PyObject_AsReadBuffer() and PyObject_AsWriteBuffer() 
release the buffer right after acquiring and return a pointer to released 
buffer. This is not safe and could cause issues sooner or later. These 
functions shouldn't be used in the stdlib at all.

----------
assignee: serhiy.storchaka
components: Extension Modules, Interpreter Core
messages: 231323
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: Don't use PyObject_As*Buffer() functions
type: resource usage
versions: Python 3.4, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22896>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to