Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed outdated limits documentation #5253

Merged
merged 1 commit into from Feb 8, 2021
Merged

Conversation

radarhere
Copy link
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.

None yet

2 participants