- 23 Jan, 2015 1 commit
-
-
Adam Jackson authored
The CVE fix in: commit 97015a07 Author: Alan Coopersmith <alan.coopersmith@oracle.com> Date: Wed Jan 22 22:37:15 2014 -0800 dix: integer overflow in RegionSizeof() [CVE-2014-8092 3/4] offended the C++ demons: ../../include/regionstr.h:147:45: error: invalid conversion from 'void*' to 'pixman_region16_data_t* {aka pixman_region16_data*}' [-fpermissive] Normally this isn't a problem, because around here we have the sense and common decency to not use C++, but this does make tigervnc fail to build, which is a little rude of us. Signed-off-by:
Adam Jackson <ajax@redhat.com> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- 09 Dec, 2014 1 commit
-
-
Alan Coopersmith authored
RegionSizeof contains several integer overflows if a large length value is passed in. Once we fix it to return 0 on overflow, we also have to fix the callers to handle this error condition v2: Fixed limit calculation in RegionSizeof as pointed out by jcristau. Reported-by:
Ilja Van Sprundel <ivansprundel@ioactive.com> Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by:
Julien Cristau <jcristau@debian.org>
-
- 12 Nov, 2014 1 commit
-
-
Peter Hutterer authored
/usr/include/xorg/regionstr.h:130:36: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] return (sizeof(RegDataRec) + ((n) * sizeof(BoxRec))); ^ ~ Really only just pushes the problem to the caller, but maybe that motivates someone to fix it. Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 31 Oct, 2013 1 commit
-
-
Keith Packard authored
This allocates a new region structure and copies a source region into it in a single API rather than forcing the caller to do both steps themselves. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Adam Jackson <ajax@redhat.com>
-
- 21 Mar, 2012 1 commit
-
-
Keith Packard authored
This is strictly the application of the script 'x-indent-all.sh' from util/modular. Compared to the patch that Daniel posted in January, I've added a few indent flags: -bap -psl -T PrivatePtr -T pmWait -T _XFUNCPROTOBEGIN -T _XFUNCPROTOEND -T _X_EXPORT The typedefs were needed to make the output of sdksyms.sh match the previous output, otherwise, the code is formatted badly enough that sdksyms.sh generates incorrect output. The generated code was compared with the previous version and found to be essentially identical -- "assert" line numbers and BUILD_TIME were the only differences found. The comparison was done with this script: dir1=$1 dir2=$2 for dir in $dir1 $dir2; do (cd $dir && find . -name '*.o' | while read file; do dir=`dirname $file` base=`basename $file .o` dump=$dir/$base.dump objdump -d $file > $dump done) done find $dir1 -name '*.dump' | while read dump; do otherdump=`echo $dump | sed "s;$dir1;$dir2;"` diff -u $dump $otherdump done Signed-off-by:
Keith Packard <keithp@keithp.com> Acked-by:
Daniel Stone <daniel@fooishbar.org> Acked-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 23 Apr, 2011 1 commit
-
-
Søren Sandmann Pedersen authored
The interface to RegionInit(): RegionInit (RegionPtr pReg, BoxPtr rect, int size); is very confusing because it doesn't take a list of boxes, it takes *one* box, but if that box is NULL, it initializes an empty region with 'size' rectangles preallocated. Most callers of this function were correctly passing either NULL or just one box, but there were three confused cases, where the code seems to expect a region to be created from a list of boxes. This patch adds a new function RegionInitBoxes() and fixes those instances to call that instead. And yes, the pixman function to initialize a region from a list of boxes is called init_rects() because pixman is also awesome. V2: Make RegionInitBoxes() return a Bool indicating whether the call succeeded, and fix the callers to check this return value. Reviewed-by:
Keith Packard <keithp@keithp.com> Signed-off-by:
Søren Sandmann <ssp@redhat.com>
-
- 01 Mar, 2011 1 commit
-
-
Søren Sandmann Pedersen authored
Nothing uses it. Reviewed-by:
Adam Jackson <ajax@redhat.com> Signed-off-by:
Søren Sandmann Pedersen <ssp@redhat.com>
-
- 06 Jun, 2010 4 commits
-
-
Keith Packard authored
This makes the region code changes source compatible with existing code, although none of them are used within the server source itself. Reviewed-by:
Jamey Sharp <jamey@minilop.net> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
Keith Packard authored
This makes all of the previous macros into inline functions and also turns all of the direct calls to pixman region code into inline functions as well. Reviewed-by:
Jamey Sharp <jamey@minilop.net> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
Keith Packard authored
This is a combination of a huge mechanical patch and a few small fixups required to finish the job. They were reviewed separately, but because the server does not build without both pieces, I've merged them together at this time. The mechanical changes were performed by running the included 'fix-region' script over the whole tree: $ git ls-files | grep -v '^fix-' | xargs ./fix-region And then, the white space errors in the resulting patch were fixed using the provided fix-patch-whitespace script. $ sh ./fix-patch-whitespace Thanks to Jamey Sharp for the mighty fine sed-generating sed script. The hand-done changes involve removing functions from dix/region.c that duplicate inline functions in include/regionstr.h, along with their declarations in regionstr.h, mi.h and mispans.h. Reviewed-by:
Jamey Sharp <jamey@minilop.net> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
Keith Packard authored
This prepares the file to be moved from mi to dix. This patch was done mechanically with the included scripts 'fix-miregion' run over the entire X server and 'fix-miregion-private' run over include/regionstr.h and mi/miregion.c. Reviewed-by:
Jamey Sharp <jamey@minilop.net> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- 12 May, 2010 1 commit
-
-
Misha Gusarov authored
The only remaining X-functions used in server are XNF*, the rest is converted to plain alloc/calloc/realloc/free/strdup. X* functions are still exported from server and x* macros are still defined in header file, so both ABI and API are not affected by this change. Signed-off-by:
Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 03 Dec, 2008 1 commit
-
-
Paulo Cesar Pereira de Andrade authored
Save in a few special cases, _X_EXPORT should not be used in C source files. Instead, it should be used in headers, and the proper C source include that header. Some special cases are symbols that need to be shared between modules, but not expected to be used by external drivers, and symbols that are accessible via LoaderSymbol/dlopen. This patch also adds conditionally some new sdk header files, depending on extensions enabled. These files were added to match pattern for other extensions/modules, that is, have the headers "deciding" symbol visibility in the sdk. These headers are: o Xext/panoramiXsrv.h, Xext/panoramiX.h o fbpict.h (unconditionally) o vidmodeproc.h o mioverlay.h (unconditionally, used only by xaa) o xfixes.h (unconditionally, symbols required by dri2) LoaderSymbol and similar functions now don't have different prototypes, in loaderProcs.h and xf86Module.h, so that both headers can be included, without the need of defining IN_LOADER. xf86NewInputDevice() device prototype readded to xf86Xinput.h, but not exported (and with a comment about it).
-
- 17 Jul, 2008 1 commit
-
-
Daniel Stone authored
Remove a whole bunch of code that was never built, be it entire files or just dead ifdefs.
-
- 11 Mar, 2008 1 commit
-
-
Kristian Høgsberg authored
Evaluating the address of a BoxRec as a boolean gives this warning: i830_driver.c:2317: warning: the address of 'ScreenBox' will always evaluate as 'true' which is pretty annoying. This patch compares the address to NULL to avoid the pointer->bool conversion and gets rid of the warning. Seems like a lame hack, but the warning is worse.
-
- 15 May, 2007 2 commits
-
-
Soren Sandmann Pedersen authored
-
Soren Sandmann Pedersen authored
-
- 08 Nov, 2006 1 commit
-
-
Daniel Stone authored
Fix up prototypes for PrintChildren and PrintWindowTree in the dix. Make miPrintRegion be unconditionally defined, and move the prototype into regionstr.h. Change a bunch of ScreenPtr pScreen = foo; to ScreenPtr pScreen; pScreen = foo; in window.c, so we avoid unused variable references (as inline REGION_* doesn't reference pScreen).
-
- 21 Jul, 2006 1 commit
-
-
Adam Jackson authored
-
- 28 Mar, 2006 1 commit
-
-
Adam Jackson authored
-
- 24 Aug, 2005 1 commit
-
-
Daniel Stone authored
-
- 03 Jul, 2005 1 commit
-
-
Daniel Stone authored
Add XSERV_t, TRANS_SERVER, TRANS_REOPEN to quash warnings. Add #include <dix-config.h> or <xorg-config.h>, as appropriate, to all source files in the xserver/xorg tree, predicated on defines of HAVE_{DIX,XORG}_CONFIG_H. Change all Xfont includes to <X11/fonts/foo.h>.
-
- 01 Jul, 2005 1 commit
-
-
Daniel Stone authored
-
- 25 Jun, 2005 1 commit
-
-
Zack Rusin authored
-
- 29 Jul, 2004 1 commit
-
-
Stuart Kreitman authored
https://freedesktop.org/bugzilla/show_bug.cgi?id=859 Modified Files: cursorstr.h dix.h dixstruct.h regionstr.h window.h
-
- 04 May, 2004 1 commit
-
-
Eamon Walsh authored
-
- 23 Apr, 2004 1 commit
-
-
Egbert Eich authored
-
- 25 Mar, 2004 2 commits
-
-
Stuart Kreitman authored
-
Stuart Kreitman authored
-
- 14 Mar, 2004 1 commit
-
-
Egbert Eich authored
-
- 05 Mar, 2004 1 commit
-
-
Egbert Eich authored
Reverted darwin/bundle/**/Credits.rtf to XFree86 versions to avoid future conflicts on ASCII but not humal readable files. (There should probably be separate CreditsXorg.rtf files) (Egbert Eich).
-
- 03 Mar, 2004 1 commit
-
-
Egbert Eich authored
-
- 26 Feb, 2004 2 commits
-
-
Egbert Eich authored
-
Egbert Eich authored
-
- 20 Dec, 2003 1 commit
-
-
Kaleb Keithley Keithley authored
-
- 19 Dec, 2003 1 commit
-
-
Kaleb Keithley Keithley authored
-
- 06 Dec, 2003 1 commit
-
-
Kaleb Keithley Keithley authored
-
- 04 Dec, 2003 1 commit
-
-
Kaleb Keithley Keithley authored
-
- 30 Nov, 2003 1 commit
-
-
Kaleb Keithley Keithley authored
-
- 29 Nov, 2003 1 commit
-
-
Kaleb Keithley Keithley authored
-