Thomas Barlow
1058a93994
Fix #106696 : Invalid flag combinations used in #PyObject_GetBuffer
...
Code using #PyObject_GetBuffer was combining the `PyBUF_FORMAT` and
`PyBUF_SIMPLE` flags, but the documentation specifies that
`PyBUF_FORMAT` can be |'d to any of the flags except `PyBUF_SIMPLE`
because the latter already implies format `B` (unsigned bytes).
The flags in such cases have been replaced with
`PyBUF_ND | PyBUF_FORMAT`, which has the additional requirement that the
buffer must provide it's `shape` field.
This fixes `memoryview` objects raising a `BufferError` when requested,
due to the invalid combination of flags making them be considered
invalid buffers when they would otherwise be valid.
Ref: !106697
2023-11-09 18:43:05 +11:00
..
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-10-30 21:40:35 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-10-31 21:34:32 +11:00
2023-08-16 00:20:26 +10:00
2023-10-30 21:40:35 +01:00
2023-10-30 21:40:35 +01:00
2023-09-06 00:48:50 +02:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-09-19 15:50:41 +10:00
2023-10-30 21:40:35 +01:00
2023-10-17 19:58:34 +11:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-10-30 21:40:35 +01:00
2023-10-30 21:40:35 +01:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-09-06 00:48:50 +02:00
2023-08-16 00:20:26 +10:00
2023-10-30 21:40:35 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-06 00:48:50 +02:00
2023-08-16 00:20:26 +10:00
2023-10-30 21:40:35 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-25 17:53:11 -04:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-09-06 00:48:50 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-09-20 12:11:33 +10:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-09-05 12:56:41 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-11-09 18:43:05 +11:00
2023-08-21 10:05:45 +10:00
2023-09-18 22:09:19 +10:00
2023-08-16 00:20:26 +10:00
2023-09-06 00:48:50 +02:00
2023-08-16 00:20:26 +10:00
2023-09-14 13:25:24 +10:00
2023-08-16 00:20:26 +10:00
2023-10-30 21:40:35 +01:00
2023-08-16 00:20:26 +10:00
2023-11-07 20:13:20 +01:00
2023-08-16 00:20:26 +10:00