summaryrefslogtreecommitdiff
path: root/cursor
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2021-05-02 21:35:23 +0200
committerTobias Stoeckmann <tobias@stoeckmann.org>2021-05-02 21:35:23 +0200
commited55438366e93d70867e3ba6b80978673e536fc0 (patch)
treeb05abcba2fc4e2f6b6b76c59d8c491629f173dea /cursor
parent0aebb5b94d6c9ba5e5b1440cb57060d9063e202d (diff)
downloadwayland-ed55438366e93d70867e3ba6b80978673e536fc0.tar.gz
cursor: fix CVE-2013-2003
The libXcursor fix for CVE-2013-2003 has never been imported into wayland, leaving it vulnerable to it. Changing the argument type to an unsigned type is an effective merge of Ilja Van Sprundel's commit in libXcursor. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'cursor')
-rw-r--r--cursor/xcursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cursor/xcursor.c b/cursor/xcursor.c
index 3b35f1c..0506680 100644
--- a/cursor/xcursor.c
+++ b/cursor/xcursor.c
@@ -300,7 +300,7 @@ _XcursorFileHeaderDestroy (XcursorFileHeader *fileHeader)
}
static XcursorFileHeader *
-_XcursorFileHeaderCreate (int ntoc)
+_XcursorFileHeaderCreate (XcursorUInt ntoc)
{
XcursorFileHeader *fileHeader;