summaryrefslogtreecommitdiffstats
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorMa Lin <animalize@users.noreply.github.com>2021-04-30 23:32:49 (GMT)
committerGitHub <noreply@github.com>2021-04-30 23:32:49 (GMT)
commit251ffa9d2b16b091046720628deb6a7906c35d29 (patch)
treeea7e668e1e7c9150adc2a6bae9052c13eb36af4a /Python/Python-ast.c
parente467ec476f624323b8638cf100d1bfbf1d6a21c6 (diff)
downloadcpython-251ffa9d2b16b091046720628deb6a7906c35d29.zip
cpython-251ffa9d2b16b091046720628deb6a7906c35d29.tar.gz
cpython-251ffa9d2b16b091046720628deb6a7906c35d29.tar.bz2
bpo-41486: Fix initial buffer size can't > UINT32_MAX in zlib module (GH-25738)
* Fix initial buffer size can't > UINT32_MAX in zlib module After commit f9bedb630e8a0b7d94e1c7e609b20dfaa2b22231, in 64-bit build, if the initial buffer size > UINT32_MAX, ValueError will be raised. These two functions are affected: 1. zlib.decompress(data, /, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE) 2. zlib.Decompress.flush([length]) This commit re-allows the size > UINT32_MAX. * adds curly braces per PEP 7. * Renames `Buffer_*` to `OutputBuffer_*` for clarity
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions