[PULL: xserver master] misc. bug fixes cleanups, including CVE-2013-4396

2013-10-14 Thread Alan Coopersmith
to 73b2660d7273d175d279d22f8ca0c3932a14ff1c: Avoid use-after-free in dix/dixfonts.c: doImageText() [CVE-2013-4396] (2013-10-14 17:56:44 -0700) Alan Coopersmith (4): Skip damage calls if DamageCreate fails in exa functions DMX

Re: [PATCH] Fix hw/xfree86/common/compiler.h for mips64

2013-10-11 Thread Alan Coopersmith
, and thus fail to compile. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel

[PATCH] Avoid use-after-free in dix/dixfonts.c: doImageText() [CVE-2013-4396]

2013-10-08 Thread Alan Coopersmith
-by: Pedro Ribeiro ped...@gmail.com Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com Reviewed-by: Julien Cristau jcris...@debian.org --- dix/dixfonts.c |5 + 1 file changed, 5 insertions(+) diff --git a/dix/dixfonts.c b/dix/dixfonts.c index feb765d..2e34d37 100644 --- a/dix/dixfonts.c

Re: [BUG] broken build: build.sh / libevdev

2013-10-07 Thread Alan Coopersmith
. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org

Re: [PATCH] Close non-keyboard devices on DPMS off

2013-10-06 Thread Alan Coopersmith
MatchIsPointer on Option CloseOnDPMS on EndSection and those who are using desktops instead of battery-powered devices can simply remove it. Mechanism in the code, policy in the config. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering

Re: [PATCH:libXdmcp 3/4] Ensure ARRAYofARRAY8 pointers are initialized to NULL

2013-09-30 Thread Alan Coopersmith
is failing because a random structure containing a pointer was calloc'ed. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org

Re: [PATCH libX11] makekeys: don't need to use target-specific CFLAGS

2013-09-29 Thread Alan Coopersmith
= \ -I$(top_srcdir)/include CC = @CC_FOR_BUILD@ Reviewed-by: Alan Coopersmith alan.coopersm...@oracle.com -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg

Re: [PATCH:libXdmcp 3/4] Ensure ARRAYofARRAY8 pointers are initialized to NULL

2013-09-28 Thread Alan Coopersmith
such systems X was ever ported to? Of the ones listed on http://c-faq.com/null/machexamp.html, Cray is the closest to anything I've heard of X being ported to, and I'm not sure which model it was, but it was broken since at least X11R6. -- -Alan Coopersmith- alan.coopersm

[PATCH:libXdmcp 1/4] Add unit tests for Array allocation functions

2013-09-27 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- .gitignore |1 + Makefile.am |2 +- configure.ac | 10 ++--- test/Array.c | 62 ++ test/Makefile.am | 13 5 files changed, 84

[PATCH:libXdmcp 4/4] Also reject requests to allocate negative sized amounts of memory

2013-09-27 Thread Alan Coopersmith
Since the API is defined with size as a signed int, deal with it. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- Array.c | 16 test/Array.c |4 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Array.c b/Array.c index cb57d89

[PATCH:libXdmcp 3/4] Ensure ARRAYofARRAY8 pointers are initialized to NULL

2013-09-27 Thread Alan Coopersmith
Use calloc for the array of pointers to ensure pointers are cleared out so we don't try to free garbage if XdmcpDisposeARRAYofARRAY8 is called before the caller sets them to valid pointers. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- Array.c | 19

[PATCH:libXdmcp 2/4] Ensure ARRAY* structs are zero'ed out when oversize values are passed

2013-09-27 Thread Alan Coopersmith
Previous fix missed a case in which we returned failure, but didn't fill in the data pointer size values. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- Array.c | 44 1 file changed, 16 insertions(+), 28 deletions(-) diff --git

Re: [PATCH makedepend] Replace obsolete AM_CONFIG_HEADER with AC_CONFIG_HEADERS

2013-09-26 Thread Alan Coopersmith
-config.h]) Is your tree out of date? That fix was pushed earlier this year: http://cgit.freedesktop.org/xorg/util/makedepend/commit/?id=01238aa25c3bb1e0c909f63dd3bc97c48bd8bf6d -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http

Re: [PATCH app-rstart] error: couldn't open directory 'm4': No such file or directory #67196

2013-09-25 Thread Alan Coopersmith
], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [rstart]) AC_CONFIG_SRCDIR([Makefile.am]) -AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_HEADERS(config.h) # Initialize Automake With the commit comment fixed, Reviewed-by: Alan Coopersmith alan.coopersm...@oracle.com -- -Alan

Re: [PATCH] Remove XAA

2013-09-23 Thread Alan Coopersmith
On 09/22/13 09:27 AM, Matthieu Herrb wrote: On Sun, Sep 22, 2013 at 08:59:42AM -0700, Alan Coopersmith wrote: On 09/21/13 07:49 AM, devz...@web.de wrote: Deliberately breaking drivers without giving people a chance to fix them isn't fair. Because of the current development model of Xorg

Re: [PATCH libXaw 2/2] Makefile: use AM_V_GEN and AM_V_at to implement automake silent rules

2013-09-23 Thread Alan Coopersmith
)/libXaw.7.@LIBEXT@ + $(AM_V_at)rm -f $(DESTDIR)$(libdir)/libXaw.7.@LIBEXT@ else - -rm -f $(DESTDIR)$(libdir)/libXaw.@LIBEXT@.7 + $(AM_V_at)rm -f $(DESTDIR)$(libdir)/libXaw.@LIBEXT@.7 endif endif Reviewed-by: Alan Coopersmith alan.coopersm...@oracle.com -- -Alan

Re: [PATCH] Remove XAA

2013-09-23 Thread Alan Coopersmith
On 09/23/13 01:04 PM, Mark Kettenis wrote: Date: Mon, 23 Sep 2013 09:11:26 -0700 From: Alan Coopersmith alan.coopersm...@oracle.com On 09/22/13 09:27 AM, Matthieu Herrb wrote: On Sun, Sep 22, 2013 at 08:59:42AM -0700, Alan Coopersmith wrote: On 09/21/13 07:49 AM, devz...@web.de wrote

Re: [PATCH libXt] Use $(MKDIR_P) in Makefile.am for better code portability

2013-09-22 Thread Alan Coopersmith
On 09/22/13 06:20 AM, Gaetan Nadon wrote: On 13-09-21 01:48 PM, Alan Coopersmith wrote: On 09/21/13 09:58 AM, Gaetan Nadon wrote: Signed-off-by: Gaetan Nadon mems...@videotron.ca --- src/Makefile.am |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b

Re: [PATCH] Remove XAA

2013-09-22 Thread Alan Coopersmith
to a year and a half old e-mail. People have had plenty of chance to fix the drivers they still use now, and most of the ones people use have been fixed. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc

Re: [PATCH libXt] Use $(MKDIR_P) in Makefile.am for better code portability

2013-09-21 Thread Alan Coopersmith
to configure.ac or xorg-macros, or does automake automatically call it already? -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org

Re: [PATCH modular] build.sh: sync-up with changes made in xorg.modules

2013-09-19 Thread Alan Coopersmith
xf86-video-mach64 build driver xf86-video-mga +build driver xf86-video-modesetting build driver xf86-video-neomagic build driver xf86-video-nv build driver xf86-video-rendition Reviewed-by: Alan Coopersmith alan.coopersm...@oracle.com -- -Alan Coopersmith

Re: [REPOST PATCH xauth] Don't crash when running past the end of the chain

2013-09-18 Thread Alan Coopersmith
://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org

[PATCH] Update GLX dependencies now that DRI DRI2 are builtins, not modules

2013-09-17 Thread Alan Coopersmith
--- hw/xfree86/dixmods/Makefile.am |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/dixmods/Makefile.am b/hw/xfree86/dixmods/Makefile.am index 9933bc8..3c43640 100644 --- a/hw/xfree86/dixmods/Makefile.am +++ b/hw/xfree86/dixmods/Makefile.am @@ -32,7 +32,7 @@

Re: [PATCH] libXt: don't use target flags to build makestrs #69241

2013-09-16 Thread Alan Coopersmith
the binary makestrs. Does the resulting makestrs work? It needs to have the right flags for generating the code for the target platform. (This code really really really wasn't designed for cross-compiling, and I'm constantly surprised cross-compiling even appears to work.) -- -Alan

Re: Remove declaration-after-statement C warning

2013-09-12 Thread Alan Coopersmith
forbids mixed declarations and code [-Wdeclaration-after-statement] Remove the lines after the loop and gcc is as happy as a clam, so I'm okay having the warning in our default CFLAGS, as it still lets me have this C99 syntax addition. -- -Alan Coopersmith- alan.coopersm

Re: Remove declaration-after-statement C warning

2013-09-11 Thread Alan Coopersmith
now that it's no longer a hard requirement for OpenBSD's ports? -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org development Archives

Re: [PATCH 2/3] damageext: Add damageext.h to sources

2013-09-11 Thread Alan Coopersmith
delete it? -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info

Re: Remove declaration-after-statement C warning

2013-09-11 Thread Alan Coopersmith
On 09/11/13 08:52 PM, Daniel Stone wrote: Hi, On 11 September 2013 17:31, Mark Kettenis mark.kette...@xs4all.nl wrote: From: Alan Coopersmith alan.coopersm...@oracle.com Pushing the patch is easy - determining if it's our consensus to change the X.Org coding style to allow this is the hard

[PATCH:x11proto] Remove WORD64, MUSTCOPY, and other CRAY leftovers

2013-09-07 Thread Alan Coopersmith
Leaves behind several no-op macros for compatibility with existing code that uses them. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- Xmd.h| 81 ++ Xproto.h | 13 -- 2 files changed, 18 insertions

Re: [PATCH libICE] Use arc4random when available to produce the auth cookie.

2013-09-06 Thread Alan Coopersmith
declarations in #ifndef HAVE_ARC4RANDOM_BUF? -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org development Archives: http

Re: [libICE patch v2] Use arc4random when available to produce the auth cookie.

2013-09-06 Thread Alan Coopersmith
On 09/ 5/13 11:43 PM, Matthieu Herrb wrote: arc4random() and associated functions can be found in libbsd on GNU/Linux systems. Signed-off-by: Matthieu Herrb matthieu.he...@laas.fr Thanks for revising it, Reviewed-by: Alan Coopersmith alan.coopersm...@oracle.com -- -Alan Coopersmith

Re: Odd XBell(3) inconsistancy

2013-09-05 Thread Alan Coopersmith
else the latter? Nope - those go into two different servers. The first is only if you're running Xdmx, the second is if you're running Xorg. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc

[PATCH] DMX glxproxy: Don't allocate copy data just to free it unused

2013-09-05 Thread Alan Coopersmith
to the client. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- hw/dmx/glxProxy/glxsingle.c | 30 +- hw/dmx/glxProxy/glxvendor.c | 30 +- 2 files changed, 34 insertions(+), 26 deletions(-) diff --git a/hw/dmx/glxProxy/glxsingle.c b

Re: [PATCH xserver] was: Re: Two long-standing server bugs

2013-09-04 Thread Alan Coopersmith
; } if (src-drawable.width != msk-drawable.width || src-drawable.height != msk-drawable.height || msk-drawable.depth != 1) return BadMatch; } else msk = NULL; -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle

Re: [PATCH:xdm] Show compile time options in Debug output

2013-09-04 Thread Alan Coopersmith
being worthwhile, as it would be far more complex than this simple solution. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org

[PATCH:xdm] Show compile time options in Debug output

2013-09-03 Thread Alan Coopersmith
When debugging, helps figure out which options the distro or builder chose to enable or disable. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- xdm/dm.c | 43 ++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/xdm/dm.c b

[PATCH] Skip damage calls if DamageCreate fails in exa functions

2013-09-03 Thread Alan Coopersmith
calls to DamageCreate. [ This bug was found by the Parfait 1.3.0 bug checking tool. http://labs.oracle.com/pls/apex/f?p=labs:49:P49_PROJECT_ID:13 ] Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- exa/exa_migration_mixed.c | 11 +++ exa/exa_mixed.c | 11

[PATCH:bigreqsproto] Fix length of padding in server reply

2013-09-03 Thread Alan Coopersmith
Length of 20 with unspecified contents was accidentally split into a length of 2 and contents of 0 in the docbook conversion. Verified against old spec in http://www.x.org/docs/Xext/bigreq.pdf Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- specs/bigreq.xml |4 ++-- 1 file

Re: Two long-standing server bugs

2013-09-01 Thread Alan Coopersmith
of them have it yet. Version numbers are also often shown in our man pages in the header or footer, and of course in our source tarball names and the configure scripts in them.) -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http

Re: [PATCH] Use the right variable names for the compiler flags in XORG_TESTSET_CFLAGS

2013-08-26 Thread Alan Coopersmith
On 08/26/13 02:33 AM, Sedat Dilek wrote: On Sun, Aug 25, 2013 at 7:51 PM, Alan Coopersmith alan.coopersm...@oracle.com wrote: On 08/25/13 07:04 AM, Sedat Dilek wrote: [ CC Alan C. ] Looking at [1], this patch was not pushed. Any reason speaking against it? I thought someone else had

Re: [PATCH] Use the right variable names for the compiler flags in XORG_TESTSET_CFLAGS

2013-08-25 Thread Alan Coopersmith
the last release to make it worth spending 5 minutes to roll out new tarballs. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org

Re: [PATCH xdm] Fix format string for systems where time_t is 64 bits long.

2013-08-18 Thread Alan Coopersmith
)now, (long long)d-lastReserv, d-reservTries, d-reservAttempts, crash ? crash : ); Reviewed-by: Alan Coopersmith alan.coopersm...@oracle.com -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering

[PATCH:libX11] Fix overflow checks in _XkbReadKeySyms when key_sym_map is already created

2013-08-17 Thread Alan Coopersmith
for ensuring our key_sym_map accesses are in range. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com Reported-by: Barry Kauler bkau...@gmail.com Tested-by: Barry Kauler bkau...@gmail.com --- src/xkb/XKBGetMap.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git

Re: [PATCH xload] Fix one last warning about usage() format string.

2013-08-17 Thread Alan Coopersmith
be greater than low-mark); } if (i = argc) { set_font_cache(dpy, himark, lowmark, balance); Guess I missed this due to not building with FONTCACHE support. Reviewed-by: Alan Coopersmith alan.coopersm...@oracle.com

Re: [PATCH imake] Replace fprintf with fputs

2013-08-17 Thread Alan Coopersmith
); +fputs (command, inFile); len = pclose (fp); remove (aout); Reviewed-by: Alan Coopersmith alan.coopersm...@oracle.com -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc

Re: [PATCH imake] Replace fprintf with fputs

2013-08-17 Thread Alan Coopersmith
efficient by not having to parse the string, and clearing a warning about the format string so it's easier to find the real issues in our code base. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc

Re: [PATCH:libX11 14/22] Constify lc_name argument to _XlcLocaleDirName() _XlcLocaleLibDirName()

2013-08-16 Thread Alan Coopersmith
On 08/12/13 07:07 AM, walter harms wrote: +if (_XlcLocaleLibDirName(lc_lib_dir, BUFSIZE, lc_name) == (char*)NULL) return (XLCd)NULL; == (char*)NULL ?? why not == NULL ? Mainly because I wasn't looking at that side and didn't notice. Fixed now. -- -Alan Coopersmith

[PATCH:kbproto 2/2] Drop WORD64 (Cray) support

2013-08-16 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- XKBstr.h |6 -- 1 file changed, 6 deletions(-) diff --git a/XKBstr.h b/XKBstr.h index 1146908..3449bda 100644 --- a/XKBstr.h +++ b/XKBstr.h @@ -31,13 +31,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. #define

[PATCH:kbproto 1/2] Add comments about sizes of dynamically allocated arrays

2013-08-16 Thread Alan Coopersmith
or not. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- XKBgeom.h |5 + XKBstr.h | 21 + 2 files changed, 26 insertions(+) diff --git a/XKBgeom.h b/XKBgeom.h index f603852..cef78fa 100644 --- a/XKBgeom.h +++ b/XKBgeom.h @@ -95,6 +95,11 @@ typedef struct

Re: Present extension name alternatives

2013-08-13 Thread Alan Coopersmith
picture/introduction for those who haven't been closely following DRI3000 development. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org

Re: Present extension name alternatives

2013-08-13 Thread Alan Coopersmith
/Presentation_Manager -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http

Re: Present extension name alternatives

2013-08-13 Thread Alan Coopersmith
On 08/13/13 02:47 PM, Keith Packard wrote: Alan Coopersmith alan.coopersm...@oracle.com writes: Can you remind me what it actually does? I see several posts on your blog describing various features, but didn't see a big picture/introduction for those who haven't been closely following DRI3000

[PATCH:libX11 01/22] Fix file leak on malloc error in XlcDL.c:resolve_object()

2013-08-12 Thread Alan Coopersmith
-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/xlibi18n/XlcDL.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xlibi18n/XlcDL.c b/src/xlibi18n/XlcDL.c index 75e193c..79e8a2f 100644 --- a/src/xlibi18n/XlcDL.c +++ b/src/xlibi18n/XlcDL.c @@ -216,7 +216,8 @@ Limit

[PATCH:libX11 02/22] lcfile: skip over any null entries in args list

2013-08-12 Thread Alan Coopersmith
instead of on every reference. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/xlibi18n/lcFile.c | 35 +++ 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/src/xlibi18n/lcFile.c b/src/xlibi18n/lcFile.c index 61a14e7..03ece75

[PATCH:libX11 00/22] libX11 cleanup series, v2

2013-08-12 Thread Alan Coopersmith
to resolve these, and some things are hard to unsee. Perhaps one of these days I'll learn my lesson and ignore the warnings from the compilers static analyzers that end up sending me down these ratholes, but I may just be a little too OCD-like to quit cold turkey. Alan Coopersmith (22): Fix

[PATCH:libX11 03/22] xlibi18n: convert sprintf calls to snprintf

2013-08-12 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com Reviewed-by: Matthieu Herrb matthieu.he...@laas.fr --- src/xlibi18n/XlcDL.c |7 +- src/xlibi18n/lcDynamic.c |4 ++-- src/xlibi18n/lcFile.c| 31 +++-- src/xlibi18n/lcGeneric.c | 58

[PATCH:libX11 04/22] ximcp/imRm.c: convert sprintf calls to snprintf

2013-08-12 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com Reviewed-by: Matthieu Herrb matthieu.he...@laas.fr --- modules/im/ximcp/imRm.c | 44 ++-- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/modules/im/ximcp/imRm.c b/modules/im

[PATCH:libX11 05/22] omGeneric.c: convert sprintf calls to snprintf

2013-08-12 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com Reviewed-by: Matthieu Herrb matthieu.he...@laas.fr --- modules/om/generic/omGeneric.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/modules/om/generic/omGeneric.c b/modules/om/generic

[PATCH:libX11 07/22] lcDB.c: ensure buffer size is updated correctly if realloc fails

2013-08-12 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/xlibi18n/lcDB.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xlibi18n/lcDB.c b/src/xlibi18n/lcDB.c index 97b22ac..5048122 100644 --- a/src/xlibi18n/lcDB.c +++ b/src/xlibi18n/lcDB.c @@ -210,11

[PATCH:libX11 06/22] Avoid memory leak/corruption if realloc fails in XlcDL.c:resolve_object()

2013-08-12 Thread Alan Coopersmith
Previously, if realloc failed to increase the size, we'd still record that we had allocated the larger size, but the pointer to it would be NULL, causing future calls to be broken, and the previous allocation to be lost/leaked. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src

[PATCH:libX11 08/22] Avoid memory leak/corruption if realloc fails in imLcPrs.c:parseline()

2013-08-12 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- modules/im/ximcp/imLcPrs.c | 35 +-- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/modules/im/ximcp/imLcPrs.c b/modules/im/ximcp/imLcPrs.c index f3627a0..34cfcad 100644

[PATCH:libX11 09/22] Avoid memory leak/corruption if realloc fails in Xregion.h:MEMCHECK macro

2013-08-12 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- include/X11/Xregion.h |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/X11/Xregion.h b/include/X11/Xregion.h index c25d70b..cf10f86 100644 --- a/include/X11/Xregion.h +++ b/include/X11/Xregion.h

[PATCH:libX11 11/22] miRegionOp(): ensure region size is not updated if realloc fails

2013-08-12 Thread Alan Coopersmith
, but if it does, might as well keep the correct value for the number of allocated rectangles, so we don't try to grow it unnecessarily later if adding to the region. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/Region.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions

[PATCH:libX11 12/22] Delete unused XKB_INSURE_SIZE macro from XKBlibint.h

2013-08-12 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com Reviewed-by: Matthieu Herrb matthieu.he...@laas.fr --- src/xkb/XKBlibint.h |6 -- 1 file changed, 6 deletions(-) diff --git a/src/xkb/XKBlibint.h b/src/xkb/XKBlibint.h index 7b41c3b..6c85558 100644 --- a/src/xkb/XKBlibint.h

[PATCH:libX11 15/22] Fix const handling in XSetLocaleModifiers

2013-08-12 Thread Alan Coopersmith
[-Wcast-qual] lcWrap.c:91:25: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] lcWrap.c:93:12: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com

[PATCH:libX11 13/22] init_om: remove unneeded extra copy of string to local buffer

2013-08-12 Thread Alan Coopersmith
a gcc const-cast warning in the process). Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com Reviewed-by: Matthieu Herrb matthieu.he...@laas.fr --- src/xlibi18n/XDefaultOMIF.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/xlibi18n

[PATCH:libX11 14/22] Constify lc_name argument to _XlcLocaleDirName() _XlcLocaleLibDirName()

2013-08-12 Thread Alan Coopersmith
pointer target type [-Wcast-qual] Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/xlibi18n/XlcDL.c |6 ++-- src/xlibi18n/XlcPubI.h |4 +-- src/xlibi18n/lcFile.c | 86 +--- 3 files changed, 35 insertions(+), 61 deletions

[PATCH:libX11 16/22] xlibi18n: Fix a bunch of const cast warnings

2013-08-12 Thread Alan Coopersmith
Add const qualifiers to casts where needed, remove other casts that are no longer needed. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/xlibi18n/lcCT.c | 10 +- src/xlibi18n/lcPublic.c |3 ++- src/xlibi18n/mbWrap.c | 12 +--- src/xlibi18n

[PATCH:libX11 18/22] xlibi18n: fix argsize argument to _XlcParsePath

2013-08-12 Thread Alan Coopersmith
:P49_PROJECT_ID:13 ] Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/xlibi18n/lcFile.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xlibi18n/lcFile.c b/src/xlibi18n/lcFile.c index 6b0e4c9..bf89084 100644 --- a/src/xlibi18n/lcFile.c +++ b/src

[PATCH:libX11 20/22] Don't cast sizeof() results to unsigned when passing to Xmalloc/Xcalloc

2013-08-12 Thread Alan Coopersmith
sizeof() returns size_t, malloc() calloc() expect sizes in size_t, don't strip down to unsigned int and re-expand unnecessarily. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/xcms/CCC.c|5 ++--- src/xcms/cmsCmap.c|5 ++--- src/xcms/cmsInt.c |4

[PATCH:libX11 21/22] Remove unnecessary casts of pointers to (char *) in calls to Xfree()

2013-08-12 Thread Alan Coopersmith
Left one cast behind that is necessary to change from const char * to char * in src/xlibi18n/lcCharSet.c. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- modules/im/ximcp/imDefIm.c |4 +-- modules/im/ximcp/imLcIm.c |2 +- modules/im/ximcp/imThaiIm.c |2 +- modules

[PATCH:libX11 22/22] Remove long unused src/udcInf.c

2013-08-12 Thread Alan Coopersmith
I can find no record of what this file was for. Neither the X11R6.8.2 monolith Imakefile nor any modular release Makefile.am have ever built it and nothing else references it. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- configure.ac|2 - src/Makefile.am |5 - src

Re: [PATCH libXfont] Make serverGeneration unsigned

2013-08-12 Thread Alan Coopersmith
On 08/12/13 09:40 AM, Julien Cristau wrote: Makes the definition match other declarations, and xserver's definition. Debian bug#689439 Reported-by: Michael Tautschnig m...@debian.org Signed-off-by: Julien Cristau jcris...@debian.org Reviewed-by: Alan Coopersmith alan.coopersm...@oracle.com

Re: [PATCH:libX11 04/12] ximcp/imRm.c: convert sprintf calls to snprintf

2013-08-11 Thread Alan Coopersmith
asprintf() but rejected it since it wouldn't work well there.) -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org development Archives

Re: [PATCH:libX11 02/12] xlibi18n: convert sprintf calls to snprintf

2013-08-11 Thread Alan Coopersmith
On 08/11/13 02:46 AM, Matthieu Herrb wrote: On Sat, Aug 10, 2013 at 01:54:59PM -0700, Alan Coopersmith wrote: Previous code seemed to assume that printf(%s, NULL) would result in a 0-length string, not (null) or similar, but since there's no point looking for files in (null)/filepath

Re: [PATCH:libX11 03/12] udcInf.c: convert sprintf calls to snprintf

2013-08-11 Thread Alan Coopersmith
a removal patch instead. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel

Re: [PATCH:libX11 07/12] Avoid memory leak/corruption if realloc fails in Xregion.h:MEMCHECK macro

2013-08-11 Thread Alan Coopersmith
On 08/11/13 03:37 AM, Matthieu Herrb wrote: On Sat, Aug 10, 2013 at 01:55:04PM -0700, Alan Coopersmith wrote: Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com I'm wondering here if firstrect() shouldn't be free()'d when Xrealloc fails. I can't tell from reading the code what

Re: [PATCH:libX11 09/12] Region.c: ensure region size is updated correctly if realloc fails

2013-08-11 Thread Alan Coopersmith
On 08/11/13 05:21 AM, Matthieu Herrb wrote: On Sat, Aug 10, 2013 at 01:55:06PM -0700, Alan Coopersmith wrote: Don't want later users of the function to think there's more or less memory allocated than there really is. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com For this one

Re: [PATCH:libX11 08/12] Avoid memory leak/corruption if realloc fails in imLcPrs.c:parseline()

2013-08-11 Thread Alan Coopersmith
On 08/11/13 03:30 AM, Matthieu Herrb wrote: On Sat, Aug 10, 2013 at 01:55:05PM -0700, Alan Coopersmith wrote: Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com Here (and in patch 06) I'm quite sure that the old b-mb (resp. b-wc) should be free()'d on the error path, since we're

Re: [PATCH:libX11 08/12] Avoid memory leak/corruption if realloc fails in imLcPrs.c:parseline()

2013-08-11 Thread Alan Coopersmith
On 08/11/13 08:10 PM, Alan Coopersmith wrote: In patch 6, since it's a static variable it's easier to track down and see the callers currently don't check for error, but it looks like they won't actually dereference the pointer unless the count is greater than zero, so I'll rework that one now

[PATCH:libX11 02/12] xlibi18n: convert sprintf calls to snprintf

2013-08-10 Thread Alan Coopersmith
Previous code seemed to assume that printf(%s, NULL) would result in a 0-length string, not (null) or similar, but since there's no point looking for files in (null)/filepath..., instead we just skip over NULL entries in search paths when generating file names. Signed-off-by: Alan Coopersmith

[PATCH:libX11 04/12] ximcp/imRm.c: convert sprintf calls to snprintf

2013-08-10 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- modules/im/ximcp/imRm.c | 44 ++-- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/modules/im/ximcp/imRm.c b/modules/im/ximcp/imRm.c index dd0b99e..4c46252 100644

[PATCH:libX11 05/12] omGeneric.c: convert sprintf calls to snprintf

2013-08-10 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- modules/om/generic/omGeneric.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/modules/om/generic/omGeneric.c b/modules/om/generic/omGeneric.c index ae43283..1a4f971 100644 --- a/modules

[PATCH:libX11 06/12] Avoid memory leak/corruption if realloc fails in XlcDL.c:resolve_object()

2013-08-10 Thread Alan Coopersmith
Previously, if realloc failed to increase the size, we'd still record that we had allocated the larger size, but the pointer to it would be NULL, causing future calls to be broken, and the previous allocation to be lost/leaked. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src

[PATCH:libX11 03/12] udcInf.c: convert sprintf calls to snprintf

2013-08-10 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/udcInf.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/udcInf.c b/src/udcInf.c index 9ecf156..faec421 100644 --- a/src/udcInf.c +++ b/src/udcInf.c @@ -131,7 +131,7 @@ int

[PATCH:libX11 10/12] lcDB.c: ensure buffer size is updated correctly if realloc fails

2013-08-10 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/xlibi18n/lcDB.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xlibi18n/lcDB.c b/src/xlibi18n/lcDB.c index 97b22ac..5048122 100644 --- a/src/xlibi18n/lcDB.c +++ b/src/xlibi18n/lcDB.c @@ -210,11

[PATCH:libX11 09/12] Region.c: ensure region size is updated correctly if realloc fails

2013-08-10 Thread Alan Coopersmith
Don't want later users of the function to think there's more or less memory allocated than there really is. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/Region.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Region.c b/src/Region.c index

[PATCH:libX11 07/12] Avoid memory leak/corruption if realloc fails in Xregion.h:MEMCHECK macro

2013-08-10 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- include/X11/Xregion.h |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/X11/Xregion.h b/include/X11/Xregion.h index c25d70b..cf10f86 100644 --- a/include/X11/Xregion.h +++ b/include/X11/Xregion.h

[PATCH:libX11 01/12] Fix file leak on malloc error in XlcDL.c:resolve_object()

2013-08-10 Thread Alan Coopersmith
-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/xlibi18n/XlcDL.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xlibi18n/XlcDL.c b/src/xlibi18n/XlcDL.c index 75e193c..79e8a2f 100644 --- a/src/xlibi18n/XlcDL.c +++ b/src/xlibi18n/XlcDL.c @@ -216,7 +216,8 @@ Limit

[PATCH:libX11 08/12] Avoid memory leak/corruption if realloc fails in imLcPrs.c:parseline()

2013-08-10 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- modules/im/ximcp/imLcPrs.c | 35 +-- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/modules/im/ximcp/imLcPrs.c b/modules/im/ximcp/imLcPrs.c index f3627a0..34cfcad 100644

[PATCH:libX11 12/12] init_om: remove unneeded extra copy of string to local buffer

2013-08-10 Thread Alan Coopersmith
a gcc const-cast warning in the process). Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/xlibi18n/XDefaultOMIF.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/xlibi18n/XDefaultOMIF.c b/src/xlibi18n/XDefaultOMIF.c index b1dc66d

[PATCH:libX11 11/12] Delete unused XKB_INSURE_SIZE macro from XKBlibint.h

2013-08-10 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- src/xkb/XKBlibint.h |6 -- 1 file changed, 6 deletions(-) diff --git a/src/xkb/XKBlibint.h b/src/xkb/XKBlibint.h index 7b41c3b..6c85558 100644 --- a/src/xkb/XKBlibint.h +++ b/src/xkb/XKBlibint.h @@ -106,12 +106,6 @@ typedef

Re: [PATCH:libXdmcp] Use arc4random when available to produce the XDM-AUTHENTICATION1 key

2013-08-08 Thread Alan Coopersmith
On 08/ 4/13 01:53 AM, Matthieu Herrb wrote: arc4random() and associated functions can be found in libbsd on GNU/Linux systems. Signed-off-by: Matthieu Herrb matthieu.he...@laas.fr Reviewed-by: Alan Coopersmith alan.coopersm...@oracle.com -- -Alan Coopersmith

Re: Fix bogus timestamp generated by XIM (https://bugs.freedesktop.org/show_bug.cgi?id=39367)

2013-08-07 Thread Alan Coopersmith
understands it. I'll probably just push your patch when I have some spare time as it looks reasonable enough, and putting it in is the only way we'll ever get it tested to find out if it makes things better or breaks something else. -- -Alan Coopersmith- alan.coopersm

Re: Fix bogus timestamp generated by XIM (https://bugs.freedesktop.org/show_bug.cgi?id=39367)

2013-08-07 Thread Alan Coopersmith
-- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman

Re: License of Adobe Utopia fonts

2013-08-05 Thread Alan Coopersmith
case). -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http

Re: Re: [PATCH] Use the right variable names for the compiler flags in XORG_TESTSET_CFLAGS

2013-08-05 Thread Alan Coopersmith
to a release yet. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http

Re: [PATCH] xfree86: de-duplicate some AM_CPPFLAGS

2013-08-05 Thread Alan Coopersmith
) -AM_CPPFLAGS = $(XORG_INCS) libint10_la_SOURCES = stub.c xf86int10module.c endif Reviewed-by: Alan Coopersmith alan.coopersm...@oracle.com -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc

[PATCH] Allow disabling XFree86-DGA, DRI, VidModeExtension extensions

2013-08-05 Thread Alan Coopersmith
Code to recognize these in extension enable/disable options was wrapped in #ifdef XorgLoader, but that's not defined when building miinitext.c since the great module merge of 1.13. Change to an #ifdef that is defined. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com Reviewed

Re: [PATCH] Replace INCLUDES with AM_CPPFLAGS

2013-08-05 Thread Alan Coopersmith
, but not yet annoyed me enough to do something about it. Thanks for taking care of these. Reviewed-by: Alan Coopersmith alan.coopersm...@oracle.com -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc

<    6   7   8   9   10   11   12   13   14   15   >