SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72153 0 0 Python

gh-101178: Fix possible integer overflow in Ascii85 encoder with wrapcol=1 (GH-144778)

It could happen if the size of the input is more than 4/5 of sys.maxsize
(only feasible on 32-bit platforms).

Also simplify the integer overflow checks in the Base64 encoder, and
harmonize them with the code for Ascii85 and Base85.
S
Serhiy Storchaka committed
b32c830d444c85421bd2c0c7af494c9d85485a29
Parent: fd04005
Committed by GitHub <noreply@github.com> on 2/24/2026, 9:40:24 AM