summaryrefslogtreecommitdiff
path: root/src/Cursor.c
AgeCommit message (Collapse)AuthorFilesLines
2023-02-25Remove "All rights reserved" from Oracle copyright noticesAlan Coopersmith1-1/+1
Oracle no longer includes this term in our copyright & license notices. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-19Handle 6 of 9 -Wsign-conversion warnings from clangAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-19Handle 60 of 60 -Wimplicit-int-conversion warnings from clangAlan Coopersmith1-15/+15
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-19Handle 63 of 63 -Wshorten-64-to-32 warnings from clangAlan Coopersmith1-14/+15
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-19Quiet -Wconditional-uninitialized warnings from clangAlan Coopersmith1-1/+1
I believe these were false positives, as the variables were initialized unless the image = NULL -> if (!image) return NULL code path was followed, but this makes clang stop warning. Cursor.c:144:8: warning: variable 'nbytes' may be uninitialized when used here [-Wconditional-uninitialized] if(nbytes > nread) ^~~~~~ Cursor.c:80:21: note: initialize the variable 'nbytes' to silence this warning size_t nbytes , nread ; ^ = 0 Cursor.c:144:17: warning: variable 'nread' may be uninitialized when used here [-Wconditional-uninitialized] if(nbytes > nread) ^~~~~ Cursor.c:80:29: note: initialize the variable 'nread' to silence this warning size_t nbytes , nread ; ^ = 0 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-19Variable scope reduction as recommended by cppcheckAlan Coopersmith1-1/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-19Remove unnecessary casts from malloc & free callsAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-05-03integer overflow in XFixesGetCursorImage() [CVE-2013-1983]Alan Coopersmith1-12/+18
If the reported cursor dimensions or name length are too large, the calculations to allocate memory for them may overflow, leaving us writing beyond the bounds of the allocation. Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-05-03Use _XEatDataWords to avoid overflow of _XEatData calculationsAlan Coopersmith1-2/+2
rep.length is a CARD32, so rep.length << 2 could overflow in 32-bit builds Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-16Strip trailing whitespaceAlan Coopersmith1-1/+1
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-03-08libXfixes v5: Pointer barrierslibXfixes-5.0Adam Jackson1-0/+60
v2: Use int * for device list, consistent with libXi. v3: Update copyright year. Reviewed-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2010-06-08Sun's copyrights now belong to OracleAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-01-14Update Sun license notices to current X.Org standard formAlan Coopersmith1-18/+19
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2010-01-14Purge CVS/RCS id tagsAlan Coopersmith1-1/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-01-29Janitor: Correct make distcheck and gcc/sparse warnings.Paulo Cesar Pereira de Andrade1-6/+6
2006-09-01Bug #4902: _XRead32() expects a signed long pointer on 64 bit systems.Tilman Sauerbeck1-1/+1
2006-03-13Part 2 of 3 (Other parts are in proto and xserver) Composite Version 0.3:Deron Johnson1-0/+56
CompositeGetOverlayWindow, CompositeReleaseOverlayWindow Xfixes Version 4.0: XFixesHideCursor, XFixesShowCursor
2005-05-17Conditionally include config.h in xc/lib/Xdamage and xc/lib/XfixesXORG-6_8_99_9XORG-6_8_99_8XORG-6_8_99_13XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10Søren Sandmann Pedersen1-0/+3
2004-12-04Encoding of numerous files changed to UTF-8sco_port_update-baseXORG-6_8_99_7XORG-6_8_99_6XORG-6_8_99_5XORG-6_8_99_4XORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_1Markus Kuhn1-1/+1
2004-07-31Bring in Xfixes, Xdamage, and Xcomposite userland from xserver CVS:rel-0-6-1lg3d-rel-0-7-0lg3d-rel-0-6-2lg3d-baseXORG-6_8_2XORG-6_8_1_904XORG-6_8_1_903XORG-6_8_1_902XORG-6_8_1_901XORG-6_8_1XORG-6_8_0XORG-6_7_99_904XORG-6_7_99_903XORG-6_7_99_902XORG-6_7_99_901XORG-6_7_99_2XORG-6_7_99_1XORG-6_8-branchEric Anholt1-0/+217
- Update Xfixes headers to protocol major version 3. - Add composite headers. - Add libXfixes, libXdamage, and libXcomposite. - Add imake glue for new libraries, but leave Composite off by default until issues are resolved.