Go to file
Alan Coopersmith 043c175865 Clean up memory better when GetVisualInfo fails in ProcDbeGetVisualInfo
Use calloc to initialize pScrVisInfo array so we don't have to check
which ones were already initialized when freeing them all.

On failure, set rc if necessary, and jump to code at end that already
frees all the necessary allocations and return rc.

Fixes parfait reported error:
Error: Memory leak (CWE 401)
   Memory leak of pointer 'pScrVisInfo' allocated with malloc((count * 16))
        at line 724 of dbe/dbe.c in function 'ProcDbeGetVisualInfo'.
          'pScrVisInfo' allocated at line 693 with malloc((count * 16)).
          pScrVisInfo leaks when rc != 0 at line 710
              and j >= i at line 716.

[ This bug was found by the Parfait 0.3.7 bug checking tool.
  For more information see http://labs.oracle.com/projects/parfait/ ]

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-05-02 20:38:16 -07:00
Xext Xext: Silence warnings when building with clang 2011-04-25 10:45:34 -07:00
Xi Xi: remove duplicated includes 2011-04-24 19:46:05 -07:00
composite Revert "composite: Don't backfill non-bg-None windows" 2011-04-15 12:55:48 -04:00
config config: handle device change event properly 2011-03-24 09:51:09 +10:00
damageext damage: use DamageReportDamage for the initial borderClip damage report 2011-04-13 18:59:09 -07:00
dbe Clean up memory better when GetVisualInfo fails in ProcDbeGetVisualInfo 2011-05-02 20:38:16 -07:00
dix dix: remove duplicated includes 2011-04-24 19:46:06 -07:00
doc Move Xinput server API documentation from libXi to doc/xml 2011-05-01 10:19:35 -07:00
exa Add RegionInitBoxes(), and fix some buggy callers of RegionInit(). 2011-04-22 21:39:31 -04:00
fb Merge remote-tracking branch 'jeremyhu/master' 2011-04-27 12:01:56 -07:00
glx Merge remote-tracking branch 'jturney/remove-opengl-spec-download' 2011-04-29 09:59:49 -07:00
hw Make xorg.conf.example rule compatible with Solaris make 2011-05-01 10:19:35 -07:00
include Merge remote-tracking branch 'jeremyhu/master' 2011-04-27 12:01:56 -07:00
m4 glx: Silence warnings when building with clang 2011-04-25 18:56:56 -07:00
mi mi: fix memory leak in miZeroLine 2011-04-04 15:47:58 +03:00
miext rootless: Fix a typo in RootlessGlyphs which resulted in a garbage value 2011-04-25 18:57:01 -07:00
os os: Silence warnings when building with clang 2011-04-25 10:45:34 -07:00
randr Send events that were missing from RRSelectInput 2011-04-13 19:04:32 -07:00
record Only free pContext once when AddResource fails in ProcRecordCreateContext 2011-05-02 20:38:03 -07:00
render Merge remote-tracking branch 'jeremyhu/master' 2011-04-27 12:01:56 -07:00
test test/xi2: remove duplicated include 2011-04-25 10:45:34 -07:00
xfixes xorg: remove unused pointer values all over the server 2011-04-04 15:41:13 +03:00
xkb xkb: remove duplicated include 2011-04-25 10:45:34 -07:00
.gitignore .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
COPYING Add asprintf() implementation for platforms without it 2010-12-07 11:10:35 -08:00
Makefile.am remove dolt 2010-09-30 17:44:59 -07:00
README packaging: provide a default README file #24206 2010-01-27 14:00:17 -08:00
autogen.sh autogen.sh: Pass --force to autoreconf 2008-07-22 16:55:26 +03:00
configure.ac Merge remote-tracking branch 'jturney/remove-opengl-spec-download' 2011-04-29 09:59:49 -07:00
fix-miregion Change region implementation names to eliminate the 'mi' prefix 2010-06-05 17:47:32 -07:00
fix-miregion-private Change region implementation names to eliminate the 'mi' prefix 2010-06-05 17:47:32 -07:00
fix-patch-whitespace Rename region macros to eliminate screen argument 2010-06-05 18:59:00 -07:00
fix-region Rename region macros to eliminate screen argument 2010-06-05 18:59:00 -07:00
manpages.am XQuartz: Rename launchd-id-prefix to bundle-id-prefix 2011-04-25 18:57:04 -07:00
xorg-server.m4 macros: use PKG_CONFIG variable rather than executable name 2010-01-07 12:57:23 -08:00
xorg-server.pc.in config: declare xserver private dependencies in xorg-server.pc 2010-06-22 11:34:47 -07:00

README

					X Server

The X server accepts requests from client applications to create windows,
which are (normally rectangular) "virtual screens" that the client program
can draw into.

Windows are then composed on the actual screen by the X server
(or by a separate composite manager) as directed by the window manager,
which usually communicates with the user via graphical controls such as buttons
and draggable titlebars and borders.

For a comprehensive overview of X Server and X Window System, consult the
following article:
http://en.wikipedia.org/wiki/X_server

All questions regarding this software should be directed at the
Xorg mailing list:

        http://lists.freedesktop.org/mailman/listinfo/xorg

Please submit bug reports to the Xorg bugzilla:

        https://bugs.freedesktop.org/enter_bug.cgi?product=xorg

The master development code repository can be found at:

        git://anongit.freedesktop.org/git/xorg/xserver

        http://cgit.freedesktop.org/xorg/xserver

For patch submission instructions, see:

	http://www.x.org/wiki/Development/Documentation/SubmittingPatches

For more information on the git code manager, see:

        http://wiki.x.org/wiki/GitPage