diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2022-08-09 16:10:40 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2022-08-09 16:21:48 +0100 |
commit | b659038e4296534c2e068de9bce8d9e17fbe58b4 (patch) | |
tree | bd2babfc2a4b1a0e8db68eb85511646186fe83aa /tests/animation.c | |
parent | 8ad828c2782355c1747c62b3700bdc052e12e241 (diff) | |
download | gdk-pixbuf-b659038e4296534c2e068de9bce8d9e17fbe58b4.tar.gz |
jpeg: Limit the memory size when loading image data
Specially crafted JPEG images may lead to a crash when their size is too
large; in the most benign of cases, the OS might terminate the process
after it tries to allocate all the memory in the world.
We can tell libjpeg to limit the size of the memory pool when loading,
to avoid this kind of result. For the time being, 100 MB seems like a
good threshold.
Original patch by: Sam Ezeh <sam.z.ezeh@gmail.com>
Fixes: #205
Diffstat (limited to 'tests/animation.c')
0 files changed, 0 insertions, 0 deletions