summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-10-14Remove "register" type qualifier from variable declarationsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-14XineramaQueryScreens: fix -Wsign-compare warningAlan Coopersmith
Xinerama.c: In function ‘XineramaQueryScreens’: Xinerama.c:308:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < rep.number; i++) { ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-24libXinerama: Set number of screens to 0 on errorTobias Stoeckmann
The documentation of XineramaQueryScreens states that number is always set to the amount of screens in the returned array, but if the communication with the X server fails, NULL is returned without modifying number. At least dwm relies on the fact that number is set to 0 on error, i.e. when NULL is returned. As a NULL pointer contains 0 elements and the documentation states that number contains the amount of elements of the returned array, I think this should be fixed inside libXinerama. Reviewed-by: Adam Jackson <ajax@redhat.com>
2013-11-22Remove fallback for _XEatDataWords, require libX11 1.6 for itMichael Joost
_XEatDataWords was orignally introduced with the May 2013 security patches, and in order to ease the process of delivering those, fallback versions of _XEatDataWords were included in the X extension library patches so they could be applied to older versions that didn't have libX11 1.6 yet. Now that we're past that hurdle, we can drop the fallbacks and just require libX11 1.6 for building new versions of the extension libraries. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-05-04integer overflow in XineramaQueryScreens() [CVE-2013-1985]Alan Coopersmith
If the reported number of screens is 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-04Use _XEatDataWords to avoid overflow of _XEatData calculationsAlan Coopersmith
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-11-10Fix gcc -Wwrite-strings warningAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-16Strip trailing whitespaceAlan Coopersmith
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>
2010-10-06Purge cvs tags.Jesse Adkins
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-07Purge macros NEED_EVENTS and NEED_REPLIESFernando Carrijo
Signed-off-by: Fernando Carrijo <fcarrijo@yahoo.com.br> Acked-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-02-16config: move CWARNFLAGS from configure.ac to Makefile.amGaetan Nadon
Compiler warning flags should be explicitly set in the makefile rather than being merged with other packages compiler flags. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2009-01-29Janitor: ansification, make distcheck, compiler warnings.Paulo Cesar Pereira de Andrade
2008-05-19Add Xinerama.h and panoramiXext.h to includedir.Peter Hutterer
Were previously part of xineramaproto, but they really belong here. For a history of these files please refer to git://anongit.freedesktop.org/git/xorg/proto/xineramaproto
2008-05-19Rename parameters to clarify QueryVersion/QueryExtension.Peter Hutterer
These parameters are not treated as input. Rename them to make the inner workings slightly more obvious. X.Org Bug 14511 <http://bugs.freedesktop.org/show_bug.cgi?id=14511>
2008-02-24Bug #13660: XineramaQueryScreens() always modifies the 'number' outparameter.Adam Jackson
This makes the code match the man page.
2007-03-01Remove unneeded #include of <stdio.h>Alan Coopersmith
2007-02-15Clear sparse warnings & errorAlan Coopersmith
Xinerama.c:56:5: warning: incorrect type in initializer (incompatible argument 1 (different types)) Xinerama.c:68:8: error: symbol 'close_display' redeclared with different type (originally declared at Xinerama.c:48) - incompatible argument 1 (different types) Xinerama.c:283:5: warning: Using plain integer as NULL pointer
2007-02-15Add support for source code checkers such as sparse & lintAlan Coopersmith
2006-07-13renamed: .cvsignore -> .gitignoreAlan Coopersmith
2005-12-03Add check and cflags for malloc(0) returning NULL.Kevin E Martin
2005-08-03Do PKG_CHECK_MODULES on a unique token instead of on "DEP", so builds withAdam Jackson
a global configure cache don't get confused.
2005-07-16Set soversion to 1.0.0 using -version-number.Daniel Stone
2005-07-12Change version to 1.1.0 and soversion to 1.0.0.Daniel Stone
2005-07-09Add .cvsignore files Switch _la_CFLAGS for AM_CFLAGS to clean up directoryKeith Packard
2005-06-21lib/XScrnSaver/configure.acAlexander Gottwald
lib/XScrnSaver/src/Makefile.am lib/Xfontcache/configure.ac lib/Xfontcache/src/Makefile.am lib/Xinerama/configure.ac lib/Xinerama/src/Makefile.am lib/Xtst/configure.ac lib/Xv/configure.ac lib/XvMC/configure.ac lib/dmx/configure.ac Add missing xext.pc and xextproto.pc Add DEP_CFLAGS to src/Makefile.am
2005-06-10util/modular/modularizelibrary.sh: use rm -f instead of rm in one placeSøren Sandmann Pedersen
util/modular/addbuild.sh: Make it much faster by adding all the files at once lib/Xinerama: check in the build system
2004-04-23Merging XORG-CURRENT into trunksco_port_update-baserel-0-6-1lg3d-rel-0-7-0lg3d-rel-0-6-2lg3d-baseXORG-6_8_99_903XORG-6_8_99_902XORG-6_8_99_901XORG-6_8_99_900XORG-6_8_99_9XORG-6_8_99_8XORG-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_16XORG-6_8_99_15XORG-6_8_99_14XORG-6_8_99_13XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10XORG-6_8_99_1XORG-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_1XACE-SELINUX-MERGEEgbert Eich
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0Egbert Eich
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich
2003-11-14Initial revisionKaleb Keithley