mirror of
https://github.com/ultrajson/ultrajson.git
synced 2024-11-26 10:23:45 +01:00
1876c02e0f
Due to a bug in PyPy [1], PyObject_GetBuffer() fails to detect non C contiguous inputs. Allowing ujson.loads() to run on non-contiguous buffers such as a strided NumPy array would lead to mayhem. Approximate the intention of PyObject_GetBuffer() by explicitly checking that the input is within the set of common bytes-like objects known to be unconditionally C contiguous. - [1]: https://foss.heptapod.net/pypy/pypy/-/issues/3872 |
||
---|---|---|
.. | ||
JSONtoObj.c | ||
objToJSON.c | ||
ujson.c | ||
ujson.h | ||
version_template.h |