10.2.0 (2024-01-02)
Security
ImageFont.getmask: Applied ImageFont.MAX_STRING_LENGTH
To protect against potential DOS attacks when using arbitrary strings as text input,
Pillow will now raise a ValueError if the number of characters passed into
PIL.ImageFont.ImageFont.getmask() is over a certain limit,
PIL.ImageFont.MAX_STRING_LENGTH.
This threshold can be changed by setting PIL.ImageFont.MAX_STRING_LENGTH. It
can be disabled by setting .