Diffusion Krita 290a89821901

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, 12:41 PM
Parents
R37:eb61160966dd: Fix a crash when creating a text shape
Branches
Unknown
Tags
Unknown
References
refs/keep-around/290a89821901ce47f6bac0220b39307d58f798ef