diff options
author | Stefan Krah <skrah@bytereef.org> | 2015-01-29 13:27:23 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2015-01-29 13:27:23 (GMT) |
commit | fa5d6a5ff3ca247d9c2eaf51853ff39c98c09f4a (patch) | |
tree | 1811bdf701fbeb5e9709624ede624d1bbaa9b677 /Include | |
parent | 2934262fd36c35843c01b96657047625ce2e3cf6 (diff) | |
download | cpython-fa5d6a5ff3ca247d9c2eaf51853ff39c98c09f4a.zip cpython-fa5d6a5ff3ca247d9c2eaf51853ff39c98c09f4a.tar.gz cpython-fa5d6a5ff3ca247d9c2eaf51853ff39c98c09f4a.tar.bz2 |
Issue #22668: Ensure that format strings survive slicing after casting.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/memoryobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/memoryobject.h b/Include/memoryobject.h index c2e1194..382ca92 100644 --- a/Include/memoryobject.h +++ b/Include/memoryobject.h @@ -45,7 +45,7 @@ typedef struct { } _PyManagedBufferObject; -/* static storage used for casting between formats */ +/* deprecated, removed in 3.5 */ #define _Py_MEMORYVIEW_MAX_FORMAT 3 /* must be >= 3 */ /* memoryview state flags */ @@ -62,7 +62,7 @@ typedef struct { int flags; /* state flags */ Py_ssize_t exports; /* number of buffer re-exports */ Py_buffer view; /* private copy of the exporter's view */ - char format[_Py_MEMORYVIEW_MAX_FORMAT]; /* used for casting */ + char format[_Py_MEMORYVIEW_MAX_FORMAT]; /* deprecated, removed in 3.5 */ PyObject *weakreflist; Py_ssize_t ob_array[1]; /* shape, strides, suboffsets */ } PyMemoryViewObject; |