diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2018-11-06 14:40:41 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-11-06 14:40:41 +0100 |
commit | de0a032d8ebd05999a702f304b7eb58ea189f14a (patch) | |
tree | 96fd3640a9c26ee571688990305eb2de35b136a7 /include/rootston/input.h | |
parent | 2bf482e90f04dd7e402b37cb1d6c4d7fa958887c (diff) |
xcursor: Fix heap overflows when parsing malicious files
It is possible to trigger heap overflows due to an integer overflow
while parsing images.
The integer overflow occurs because the chosen limit 0x10000 for
dimensions is too large for 32 bit systems, because each pixel takes
4 bytes. Properly chosen values allow an overflow which in turn will
lead to less allocated memory than needed for subsequent reads.
See also:
https://cgit.freedesktop.org/xorg/lib/libXcursor/commit/?id=4794b5dd34688158fb51a2943032569d3780c4b8
https://gitlab.freedesktop.org/wayland/wayland/commit/5d201df72f3d4f4cb8b8f75f980169b03507da38
Diffstat (limited to 'include/rootston/input.h')
0 files changed, 0 insertions, 0 deletions