Diffusion Krita 039e853525b0

Refuse loading palette files with >4096 columns

Authored by tpaulssen on Jun 7 2019, 11:13 AM.

Description

Refuse loading palette files with >4096 columns

Attempting to set the number of columns will
immediately start allocating QMap instances for every column.

For maliciously crafted files, this can take a long time and
waste a whole lot of memory, forcing the
user to kill krita or waiting
for the operating system to OOM-kill it.

Details

Committed
tpaulssenJun 7 2019, 11:13 AM
Parents
R37:eb61160966dd: Fix a crash when creating a text shape
Branches
Unknown
Tags
Unknown
References
refs/keep-around/039e853525b0e07eb1e07950fc5793341fbba3bb