mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Added decompression bomb check to ImageFont.getmask()
This commit is contained in:
parent
d6fd4c978e
commit
af026fdd3c
|
@ -150,6 +150,7 @@ class ImageFont:
|
|||
:py:mod:`PIL.Image.core` interface module.
|
||||
"""
|
||||
_string_length_check(text)
|
||||
Image._decompression_bomb_check(self.font.getsize(text))
|
||||
return self.font.getmask(text, mode)
|
||||
|
||||
def getbbox(self, text, *args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue
Block a user