please test: Xlib/XCB fixes

2010-04-19 Thread Jamey Sharp
Josh and I sorted out a bunch of Xlib bugs this week, especially in support for multi-threaded applications. I'm embarrassed that I hadn't realized the thread support was so bad--but there are so few threaded Xlib apps, and even fewer that are open source. One important fix is in libxcb master.

Re: Merged proto package

2010-04-19 Thread Daniel Stone
On Sat, Apr 17, 2010 at 09:20:45PM -0700, Keith Packard wrote: On Fri, 16 Apr 2010 22:45:02 +0200, olafbuddenha...@gmx.net wrote: On Tue, Apr 06, 2010 at 06:43:22PM -0700, Keith Packard wrote: This isn't a git super-module, Well, why not? I don't think the wire protocol is a place

Re: [PATCH v2] Print git describe output into the log file.

2010-04-19 Thread Daniel Stone
On Fri, Apr 16, 2010 at 11:00:50AM -0700, Dan Nicholson wrote: On Fri, Apr 16, 2010 at 10:32 AM, Gaetan Nadon mems...@videotron.ca wrote: On Fri, 2010-04-16 at 06:31 -0700, Dan Nicholson wrote: It might be nicer, but could get messy when you consider all the corner cases. True, and the

Re: [PATCH] xfree86: dga needs to the master keyboard state (#27573)

2010-04-19 Thread Daniel Stone
On Fri, Apr 16, 2010 at 04:35:22PM +1000, Peter Hutterer wrote: GetPairedDevice() may not always return the keyboard, resulting in a null-pointer derefernce when accessing the XKB state. X.Org Bug 27573 http://bugs.freedesktop.org/show_bug.cgi?id=27573 Signed-off-by: Peter Hutterer

Re: [PATCH resent] configure: introduce --{enable, disable}-syscall-clock

2010-04-19 Thread Daniel Stone
On Fri, Apr 16, 2010 at 03:10:19PM +0300, Tiago Vignatti wrote: Some Linux systems might not want to link against rt and pthread libraries simply to implement monotonic clock (GetTimeInMillis). For those, use a direct syscall instead. This is discouraged if someone doesn't know what's doing.

Re: [PATCH] exa: don't need to check for NULL pointer if we already assumed it has a value

2010-04-19 Thread Daniel Stone
On Sat, Apr 17, 2010 at 08:45:38AM -0700, Dan Nicholson wrote: It seems it would be better to check ps unless you're pretty sure pScreen always has a PictureScreen. Looking at this code showed me another bug. #ifdef RENDER PictureScreenPtrps = GetPictureScreenIfSet(pScreen);

Re: [PATCH] xkb: Fix omissions in geometry initialization #27679

2010-04-19 Thread Daniel Stone
On Sat, Apr 17, 2010 at 09:36:23PM +0200, Dirk Wallenstein wrote: _XkbCopyGeom did not copy all of the data from the source geometry. This resulted in failures when trying to obtain the keymap from a server where the default geometry has not been replaced by a custom configuration.

Re: [PULL] XKB fixes

2010-04-19 Thread Peter Hutterer
On Mon, Apr 19, 2010 at 05:30:48PM +1000, Daniel Stone wrote: On Mon, Apr 19, 2010 at 10:17:08AM +1000, Peter Hutterer wrote: Keith, please pull from my repo below. It contains Benjamin's overflow fix and the xkb cleanup for PointerKeys. Might be good to get Dirk's _XkbCopyGeom fix in with

Re: [PATCH] xfree86: dga needs to the master keyboard state (#27573)

2010-04-19 Thread Julien Cristau
On Fri, Apr 16, 2010 at 16:35:22 +1000, Peter Hutterer wrote: GetPairedDevice() may not always return the keyboard, resulting in a null-pointer derefernce when accessing the XKB state. X.Org Bug 27573 http://bugs.freedesktop.org/show_bug.cgi?id=27573 Ben followed up on the bug and

Re: [PATCH] xfree86: dga needs to the master keyboard state (#27573)

2010-04-19 Thread Peter Hutterer
On Mon, Apr 19, 2010 at 11:26:23AM +0200, Julien Cristau wrote: On Fri, Apr 16, 2010 at 16:35:22 +1000, Peter Hutterer wrote: GetPairedDevice() may not always return the keyboard, resulting in a null-pointer derefernce when accessing the XKB state. X.Org Bug 27573

Re: Live builds (was: Merged proto package)

2010-04-19 Thread Florian Mickler
On Sun, 18 Apr 2010 19:30:31 +0200 Dirk Wallenstein hals...@t-online.de wrote: A full-fledged meta-git repo management tool suite would be nice. Such an application would, for example, be able to: - inform about the state of the modules (dirty, ahead of origin/master, not on master, etc) -

Re: [PATCHv2 1/2] DRI2: Track DRI2 drawables as resources, not privates

2010-04-19 Thread Michel Dänzer
On Fre, 2010-04-09 at 14:18 -0400, Kristian Høgsberg wrote: The main motivation here is to have the resource system clean up the DRI2 drawable automatically so glx doesn't have to. Right now, the glx drawable resource must be destroyed before the X drawable, so that calling

Re: please test: Xlib/XCB fixes

2010-04-19 Thread Simon Thum
Am 19.04.2010 08:33, schrieb Jamey Sharp: Hoping to be Done With Xlib any day now, Jamey I could follow your reasoning and the changes make sense to me. But I don't know the overall system enough to pretend that's a review. Maybe a good gsoc/student project would be to model Xlib/xcb

Re: please test: Xlib/XCB fixes

2010-04-19 Thread Matt Dew
Does you guys have any flowcharts/diagrams/etc of any of the blocks/functions/pieces? I'm trying to round up any and all useful information for any/all of X. thanks, Matt On Mon, Apr 19, 2010 at 7:49 PM, Simon Thum simon.t...@gmx.de wrote: Am 19.04.2010 08:33, schrieb Jamey Sharp: Hoping to

Re: [PATCH v2] Print git describe output into the log file.

2010-04-19 Thread Dan Nicholson
On Mon, Apr 19, 2010 at 12:05 AM, Daniel Stone dan...@fooishbar.org wrote: On Fri, Apr 16, 2010 at 11:00:50AM -0700, Dan Nicholson wrote: On Fri, Apr 16, 2010 at 10:32 AM, Gaetan Nadon mems...@videotron.ca wrote: On Fri, 2010-04-16 at 06:31 -0700, Dan Nicholson wrote: It might be nicer, but

Re: please test: Xlib/XCB fixes

2010-04-19 Thread Brian Paul
Jamey Sharp wrote: Josh and I sorted out a bunch of Xlib bugs this week, especially in support for multi-threaded applications. I'm embarrassed that I hadn't realized the thread support was so bad--but there are so few threaded Xlib apps, and even fewer that are open source. This sounds great.

Re: [PATCH input-evdev 00/10] Configuration upgrades

2010-04-19 Thread Gaetan Nadon
On Mon, 2010-04-19 at 09:58 +1000, Peter Hutterer wrote: On Sat, Apr 17, 2010 at 07:28:00PM -0400, Gaetan Nadon wrote: Patch #1 concept has been reviewed but code is different Patch #7 is a change that has not been reviewed in other patches yet. Other changes have been reviewed in other

[PATCH] RFC: Only match against event[0-9] in udev rules for vmmouse

2010-04-19 Thread Jakob Bornecrantz
It looks like the udev rule was matched against two devices which caused the driver to be loaded twice. We shouldn't match against the other device because it will very seldom send bogus events. Some of the bug this caused was buttons getting stuck. --- tools/69-xorg-vmmouse.rules.in |2 +- 1

Re: [PATCH] RFC: Only match against event[0-9] in udev rules for vmmouse

2010-04-19 Thread Michel Dänzer
On Mon, 2010-04-19 at 15:37 +0100, Jakob Bornecrantz wrote: It looks like the udev rule was matched against two devices which caused the driver to be loaded twice. We shouldn't match against the other device because it will very seldom send bogus events. Some of the bug this caused was

Re: Bell confusion with master vs. slave devices in Xorg 1.7.6

2010-04-19 Thread Alan Coopersmith
Peter Hutterer wrote: Why not have the slave inherit the volume level of the master when it is attached? Careful here - a client may change the bell on just one device and detach it (or implicitly detach with a grab). In this case, the device shouldn't inherit the bell volume from the

Re: Is Xvnc a X exension or X driver?

2010-04-19 Thread Alan Coopersmith
(I've cc'ed xorg-devel, since this is really much more of a developer topic than a user topic.) Zhang, Xing Z wrote: Hi experts: I am looking into code of tigervnc, the Xvnc contains a vnc X server which seems a X driver or extension ( it locates at

[PATCH] unifdef -B -DRENDER to always include RENDER code

2010-04-19 Thread Keith Packard
This patch was created with: git ls-files '*.[ch]' | while read f; do unifdef -B -DRENDER -o $f $f; done Signed-off-by: Keith Packard kei...@keithp.com --- Xext/panoramiX.c |6 -- Xext/panoramiX.h |2 -- exa/exa.c

Re: [PATCH] unifdef -B -DRENDER to always include RENDER code

2010-04-19 Thread Keith Packard
On Mon, 19 Apr 2010 09:53:32 -0700, Keith Packard kei...@keithp.com wrote: This patch was created with: git ls-files '*.[ch]' | while read f; do unifdef -B -DRENDER -o $f $f; done This is not an actual proposal to apply this patch, I just wanted to start discussion on what we could do if

[PATCH xserver] coverity findings v2

2010-04-19 Thread Tiago Vignatti
Hi, I had check all commentaries people gave and reworked accordingly. Let's see if now looks better for you. Besides, the last two patches here no one commented, so I'm resending. Both concern a not reached very old code (so gray hair people are very welcome to comment on :). Thanks, Tiago

[PATCH] xfree86: check for NULL pointer before dereferences it in parser code

2010-04-19 Thread Tiago Vignatti
Seems to be harmless. Meh. Signed-off-by: Tiago Vignatti tiago.vigna...@nokia.com --- hw/xfree86/parser/scan.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/parser/scan.c b/hw/xfree86/parser/scan.c index 8aab0cf..06710d5 100644 ---

[PATCH] exa: don't need to check for NULL pointer if we already assumed it has a value

2010-04-19 Thread Tiago Vignatti
the alternative would be to check ps in the beginning of the function. --- exa/exa.c | 14 ++ 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/exa/exa.c b/exa/exa.c index 590d9a5..b2bd1c5 100644 --- a/exa/exa.c +++ b/exa/exa.c @@ -779,14 +779,12 @@ exaCloseScreen(int

[PATCH] xkb: check for NULL pointer before dereferences it in XkbAddClientResource

2010-04-19 Thread Tiago Vignatti
--- xkb/xkbEvents.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/xkb/xkbEvents.c b/xkb/xkbEvents.c index 33741e9..9755f98 100644 --- a/xkb/xkbEvents.c +++ b/xkb/xkbEvents.c @@ -1041,8 +1041,7 @@ XkbInterestPtrinterest; return

[PATCH] Xi: check for NULL pointer before dereferences it in ListButtonInfo

2010-04-19 Thread Tiago Vignatti
Both dev and dev-button are already used before their checking were being performed. So check on the beginning. Signed-off-by: Tiago Vignatti tiago.vigna...@nokia.com --- Xi/xiquerydevice.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/Xi/xiquerydevice.c

[PATCH] xkb: check for NULL pointer before dereferences it in XkbWriteXKBSymbols

2010-04-19 Thread Tiago Vignatti
just moved the srv assignment to before it's being used. --- xkb/xkbout.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/xkb/xkbout.c b/xkb/xkbout.c index 68ede90..9daac9a 100644 --- a/xkb/xkbout.c +++ b/xkb/xkbout.c @@ -354,7 +354,6 @@ XkbServerMapPtr srv;

[PATCH] xfree86: fix not reached code in fi1236 driver from i2c

2010-04-19 Thread Tiago Vignatti
This issue was introduced in the first dump of the code in 2004. I haven't check what's the correct fix for it so I simply kept the behaviour of someone calling this and removed the unreachable code. Signed-off-by: Tiago Vignatti tiago.vigna...@nokia.com --- hw/xfree86/i2c/fi1236.c |4

[PATCH] xfree86: fix not reached code in tty code

2010-04-19 Thread Tiago Vignatti
CLEARRTS_SUPPORT cannot be triggered at all. Both commit logs and google don't show any clear reference about it, so I'd vote to just delete. Signed-off-by: Tiago Vignatti tiago.vigna...@nokia.com --- hw/xfree86/os-support/shared/posix_tty.c | 13 - 1 files changed, 0

Re: please test: Xlib/XCB fixes

2010-04-19 Thread Jamey Sharp
On Mon, Apr 19, 2010 at 4:49 AM, Simon Thum simon.t...@gmx.de wrote: I could follow your reasoning and the changes make sense to me. But I don't know the overall system enough to pretend that's a review. It's a good data point, anyway. Thanks! Am 19.04.2010 08:33, schrieb Jamey Sharp: Hoping

Re: [PATCH input-evdev 00/10] Configuration upgrades

2010-04-19 Thread Dan Nicholson
On Sat, Apr 17, 2010 at 4:28 PM, Gaetan Nadon mems...@videotron.ca wrote: Patch #1 concept has been reviewed but code is different Patch #7 is a change that has not been reviewed in other patches yet. Other changes have been reviewed in other patches Gaetan Nadon (10):  config: remove AH_TOP

[PATCH util-macros] XORG_GIT_MODULE_VERSION: writes module version in xorg-git-version.h

2010-04-19 Thread Gaetan Nadon
Generates the git module version according to the git describe HEAD If the git module has pending changes, it appends -dirty to the version tag Signed-off-by: Gaetan Nadon mems...@videotron.ca --- xorg-macros.m4.in | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-)

Re: [PATCH input-evdev 00/10] Configuration upgrades

2010-04-19 Thread Gaetan Nadon
On Mon, 2010-04-19 at 11:48 -0700, Dan Nicholson wrote: On Sat, Apr 17, 2010 at 4:28 PM, Gaetan Nadon mems...@videotron.ca wrote: Patch #1 concept has been reviewed but code is different Patch #7 is a change that has not been reviewed in other patches yet. Other changes have been reviewed

Re: [PATCH util-macros] XORG_GIT_MODULE_VERSION: writes module version in xorg-git-version.h

2010-04-19 Thread Dan Nicholson
On Mon, Apr 19, 2010 at 11:52 AM, Gaetan Nadon mems...@videotron.ca wrote: Generates the git module version according to the git describe HEAD If the git module has pending changes, it appends -dirty to the version tag Signed-off-by: Gaetan Nadon mems...@videotron.ca ---  xorg-macros.m4.in |

Re: [PATCH util-macros] XORG_GIT_MODULE_VERSION: writes module version in xorg-git-version.h

2010-04-19 Thread Julien Cristau
On Mon, Apr 19, 2010 at 14:52:55 -0400, Gaetan Nadon wrote: Generates the git module version according to the git describe HEAD If the git module has pending changes, it appends -dirty to the version tag Signed-off-by: Gaetan Nadon mems...@videotron.ca --- xorg-macros.m4.in | 18

Re: [PATCH] unifdef -B -DRENDER to always include RENDER code

2010-04-19 Thread Tiago Vignatti
Keith Packard wrote: On Mon, 19 Apr 2010 09:53:32 -0700, Keith Packard kei...@keithp.com wrote: This patch was created with: git ls-files '*.[ch]' | while read f; do unifdef -B -DRENDER -o $f $f; done This is not an actual proposal to apply this patch, I just wanted to start discussion on

Re: [PATCH] unifdef -B -DRENDER to always include RENDER code

2010-04-19 Thread Alan Coopersmith
I almost asked about why we still had #ifdef RENDER when seeing the discussion on Tiago's patches last week, I'm not sure if there's any point in keeping the #ifdefs any more. diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c index e7dd1d9..0428f0a 100644 --- a/hw/vfb/InitOutput.c +++

Re: [PATCH] unifdef -B -DRENDER to always include RENDER code

2010-04-19 Thread Mark Kettenis
Date: Mon, 19 Apr 2010 14:27:11 -0700 From: Alan Coopersmith alan.coopersm...@oracle.com I almost asked about why we still had #ifdef RENDER when seeing the discussion on Tiago's patches last week, I'm not sure if there's any point in keeping the #ifdefs any more. I believe almost no

Re: X Test Suite Redux

2010-04-19 Thread Aaron Plattner
On Thu, Feb 18, 2010 at 06:07:14AM -0800, Dan Nicholson wrote: A while back Peter asked me about helping him add autotools support after he pulled xtest out of cvs into git. We got that handled pretty quickly, but I decided to spend some time making it actually easy to use. So, I give you the

Re: X Test Suite Redux

2010-04-19 Thread Dan Nicholson
On Mon, Apr 19, 2010 at 2:42 PM, Aaron Plattner aplatt...@nvidia.com wrote: On Thu, Feb 18, 2010 at 06:07:14AM -0800, Dan Nicholson wrote: A while back Peter asked me about helping him add autotools support after he pulled xtest out of cvs into git. We got that handled pretty quickly, but I

Re: [PATCH] unifdef -B -DRENDER to always include RENDER code

2010-04-19 Thread Keith Packard
On Tue, 20 Apr 2010 00:00:39 +0300, Tiago Vignatti vigna...@freedesktop.org wrote: But if we go for it, we're going have an implementation that exceeds the protocol. Is that valid? Sure, there's nothing saying that we have to be able to not provide certain extensions in the sample

Re: [PATCH] unifdef -B -DRENDER to always include RENDER code

2010-04-19 Thread Keith Packard
On Mon, 19 Apr 2010 14:27:11 -0700, Alan Coopersmith alan.coopersm...@oracle.com wrote: Not really part of the unifdef patch, but a second patch to do s/of/off/ in that message would be good. Yeah, as you can imagine, any patch that changes as much as the RENDER stuff should be entirely

Re: [PATCH] unifdef -B -DRENDER to always include RENDER code

2010-04-19 Thread Alan Coopersmith
Keith Packard wrote: On Tue, 20 Apr 2010 00:00:39 +0300, Tiago Vignatti vigna...@freedesktop.org wrote: But if we go for it, we're going have an implementation that exceeds the protocol. Is that valid? Sure, there's nothing saying that we have to be able to not provide certain

Re: Is Xvnc a X exension or X driver?

2010-04-19 Thread Matt Dew
While I'm not interested in writing a manual, I am trying to round up and organize existing docs and info. and I am really interested in any diagrams and such that people might have/know of for Xserver internals or how different pieces interact. If anyone has any docs/diagrams/handscanned

Re: [PATCH] xkb: check for NULL pointer before dereferences it in XkbWriteXKBSymbols

2010-04-19 Thread Alan Coopersmith
Tiago Vignatti wrote: just moved the srv assignment to before it's being used. --- xkb/xkbout.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/xkb/xkbout.c b/xkb/xkbout.c index 68ede90..9daac9a 100644 --- a/xkb/xkbout.c +++ b/xkb/xkbout.c @@ -354,7 +354,6 @@

Re: [PATCH] xfree86: check for NULL pointer before dereferences it in parser code

2010-04-19 Thread Peter Hutterer
On Mon, Apr 19, 2010 at 08:58:02PM +0300, Tiago Vignatti wrote: Seems to be harmless. Meh. Signed-off-by: Tiago Vignatti tiago.vigna...@nokia.com --- hw/xfree86/parser/scan.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/parser/scan.c

Re: [PATCH] Xi: check for NULL pointer before dereferences it in ListButtonInfo

2010-04-19 Thread Peter Hutterer
On Mon, Apr 19, 2010 at 08:58:03PM +0300, Tiago Vignatti wrote: Both dev and dev-button are already used before their checking were being performed. So check on the beginning. Signed-off-by: Tiago Vignatti tiago.vigna...@nokia.com --- Xi/xiquerydevice.c |5 - 1 files changed, 4

Re: [PATCH] dix: check for NULL pointer before dereferences it in DeviceEnterLeaveEvent

2010-04-19 Thread Peter Hutterer
On Mon, Apr 19, 2010 at 08:58:04PM +0300, Tiago Vignatti wrote: mouse is already used before its checking should be performed. So check on the beginning instead. --- dix/events.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/dix/events.c b/dix/events.c

Re: [PATCH] xkb: check for NULL pointer before dereferences it in XkbAddClientResource

2010-04-19 Thread Peter Hutterer
On Mon, Apr 19, 2010 at 08:58:07PM +0300, Tiago Vignatti wrote: --- xkb/xkbEvents.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/xkb/xkbEvents.c b/xkb/xkbEvents.c index 33741e9..9755f98 100644 --- a/xkb/xkbEvents.c +++ b/xkb/xkbEvents.c @@ -1041,8 +1041,7 @@

Re: [PATCH] xfree86: fix not reached code in tty code

2010-04-19 Thread Peter Hutterer
On Mon, Apr 19, 2010 at 08:58:08PM +0300, Tiago Vignatti wrote: CLEARRTS_SUPPORT cannot be triggered at all. Both commit logs and google don't show any clear reference about it, so I'd vote to just delete. man mousedrv I'd leave the else branch there. Signed-off-by: Tiago Vignatti

Re: [PATCH util-macros] XORG_GIT_MODULE_VERSION: writes module version in xorg-git-version.h

2010-04-19 Thread Peter Hutterer
On Mon, Apr 19, 2010 at 11:00:08PM +0200, Julien Cristau wrote: On Mon, Apr 19, 2010 at 14:52:55 -0400, Gaetan Nadon wrote: Generates the git module version according to the git describe HEAD If the git module has pending changes, it appends -dirty to the version tag Signed-off-by:

Re: [PATCH util-macros] XORG_GIT_MODULE_VERSION: writes module version in xorg-git-version.h

2010-04-19 Thread Gaetan Nadon
On Mon, 2010-04-19 at 12:14 -0700, Dan Nicholson wrote: On Mon, Apr 19, 2010 at 11:52 AM, Gaetan Nadon mems...@videotron.ca wrote: Generates the git module version according to the git describe HEAD If the git module has pending changes, it appends -dirty to the version tag

Re: [PATCH input-evdev 00/10] Configuration upgrades

2010-04-19 Thread Peter Hutterer
On Mon, Apr 19, 2010 at 09:28:24AM -0400, Gaetan Nadon wrote: On Mon, 2010-04-19 at 09:58 +1000, Peter Hutterer wrote: On Sat, Apr 17, 2010 at 07:28:00PM -0400, Gaetan Nadon wrote: Patch #1 concept has been reviewed but code is different Patch #7 is a change that has not been reviewed

[PATCH v2 util-macros] XORG_GIT_MODULE_VERSION: writes module version in xorg-git-version.h

2010-04-19 Thread Gaetan Nadon
Generates the git module version according to the git describe HEAD The module version number may be appended with-uncommitted-changes If not building under git, #undef XORG_GIT_VERSION is written Signed-off-by: Gaetan Nadon mems...@videotron.ca --- xorg-macros.m4.in | 20

Re: [PATCH util-macros] XORG_GIT_MODULE_VERSION: writes module version in xorg-git-version.h

2010-04-19 Thread Gaetan Nadon
On Tue, 2010-04-20 at 10:54 +1000, Peter Hutterer wrote: On Mon, Apr 19, 2010 at 11:00:08PM +0200, Julien Cristau wrote: On Mon, Apr 19, 2010 at 14:52:55 -0400, Gaetan Nadon wrote: Generates the git module version according to the git describe HEAD If the git module has pending

Coverity fixes for xf86-input-evdev

2010-04-19 Thread Oliver McFadden
Hi Peter, Most of these fixes are quite minor and related to memory leaks from xf86...StrOption. They fix all Coverity errors in evdev apart from one dead-code error in EvdevUtilButtonEventToButtonNumber which I have intentionally left unmodified (in case that code changes in the future.) Event

[PATCH 2/7] evdev: leaked_storage: EvdevAddAbsClass: Variable mode goes out of scope

2010-04-19 Thread Oliver McFadden
Signed-off-by: Oliver McFadden oliver.mcfad...@nokia.com --- src/evdev.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index c3b44bb..aae9b23 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1235,6 +1235,7 @@ EvdevAddAbsClass(DeviceIntPtr device)

[PATCH 6/7] dragLock: leaked_storage: EvdevDragLockPreInit: Variable option_string goes out of scope

2010-04-19 Thread Oliver McFadden
Signed-off-by: Oliver McFadden oliver.mcfad...@nokia.com --- src/draglock.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/draglock.c b/src/draglock.c index 6157cae..a7ad974 100644 --- a/src/draglock.c +++ b/src/draglock.c @@ -145,6 +145,8 @@

[PATCH 4/7] evdev: leaked_storage: EvdevInitButtonMapping: Variable mapping goes out of scope

2010-04-19 Thread Oliver McFadden
Signed-off-by: Oliver McFadden oliver.mcfad...@nokia.com --- src/evdev.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 9fe952e..6992c68 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1371,15 +1371,16 @@

[PATCH 1/7] evdev: leaked_storage: EvdevPreInit: Variable str goes out of scope

2010-04-19 Thread Oliver McFadden
Signed-off-by: Oliver McFadden oliver.mcfad...@nokia.com --- src/evdev.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index d133870..c3b44bb 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -2071,6 +2071,7 @@ EvdevPreInit(InputDriverPtr drv,

[PATCH 3/7] evdev: var_assign: EvdevCacheCompare: NEGATIVE return value of ioctl assigned to unsigned variable len

2010-04-19 Thread Oliver McFadden
Signed-off-by: Oliver McFadden oliver.mcfad...@nokia.com --- src/evdev.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index aae9b23..9fe952e 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1631,8 +1631,7 @@ static int

[PATCH 7/7] evdev: checked_return: EvdevProbe: Unchecked call

2010-04-19 Thread Oliver McFadden
Called function ioctl whose return value should be checked (checked 10 out of 11 times) Signed-off-by: Oliver McFadden oliver.mcfad...@nokia.com --- src/evdev.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 6992c68..ccea90d 100644

[PATCH 5/7] emuWheel: leaked_storage: EvdevWheelEmuHandleButtonMap: Variable option_string goes out of scope

2010-04-19 Thread Oliver McFadden
Signed-off-by: Oliver McFadden oliver.mcfad...@nokia.com --- src/emuWheel.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/emuWheel.c b/src/emuWheel.c index 3f0dfd4..afafff7 100644 --- a/src/emuWheel.c +++ b/src/emuWheel.c @@ -232,8 +232,8 @@

Re: [PATCH] xfree86: check for NULL pointer before dereferences it in parser code

2010-04-19 Thread Dan Nicholson
On Mon, Apr 19, 2010 at 10:58 AM, Tiago Vignatti tiago.vigna...@nokia.com wrote: Seems to be harmless. Meh. Signed-off-by: Tiago Vignatti tiago.vigna...@nokia.com ---  hw/xfree86/parser/scan.c |    7 +--  1 files changed, 5 insertions(+), 2 deletions(-) diff --git

Re: Coverity fixes for xf86-input-evdev

2010-04-19 Thread Peter Hutterer
On Tue, Apr 20, 2010 at 07:11:15AM +0300, Oliver McFadden wrote: Hi Peter, Most of these fixes are quite minor and related to memory leaks from xf86...StrOption. They fix all Coverity errors in evdev apart from one dead-code error in EvdevUtilButtonEventToButtonNumber which I have