Skip to content

Removed outdated limits documentation#5253

Merged
hugovk merged 1 commit intopython-pillow:masterfrom
radarhere:limits
Feb 8, 2021
Merged

Removed outdated limits documentation#5253
hugovk merged 1 commit intopython-pillow:masterfrom
radarhere:limits

Conversation

@radarhere
Copy link
Copy Markdown
Member

https://github.com/python-pillow/Pillow/blob/master/docs/reference/limits.rst

  • Any call to internal python size functions for buffers or strings are currently returned as int32, not py_ssize_t. This limits the maximum buffer to 2GB for operations like frombytes and frombuffer.

  • This also limits the size of buffers converted using a decoder. (decode.c:127)

#3791 replaced ints with py_ssize_t, so this is no longer correct.

For clarity, 'decode.c:127' was

Pillow/decode.c

Line 127 in 937199e

if (!PyArg_ParseTuple(args, PY_ARG_BYTES_LENGTH, &buffer, &bufsize))
at the time.

@hugovk hugovk merged commit f118a21 into python-pillow:master Feb 8, 2021
@radarhere radarhere deleted the limits branch February 8, 2021 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants