[PATCH] backtrace.c: Fix word cast to a pointer

2015-01-06 Thread Vicente Olivert Riera
backtrace.c uses a word size provided by libunwind. In some architectures like MIPS, libunwind makes that word size 64-bit for all variants of the architecture. In the lines #90 and #98, backtrace.c tries to do a cast to a pointer, which fails in all MIPS variants with 32-bit pointers, like

Re: [PATCH v2:libXxf86vm] Discard correct length for old-format replies in XF86VidModeGetGamma

2015-01-06 Thread Matthieu Herrb
On Tue, Jan 06, 2015 at 12:03:37AM -0800, Alan Coopersmith wrote: Regression introduced in libXxf86vm 1.1.3 / commit 284a88e21fc05a63466 Unlikely to be hit in practice since it requires out-of-range privsize or malloc failure while talking to a server using the XFree86 3.x version of the

[PATCH v2:libXxf86vm] Discard correct length for old-format replies in XF86VidModeGetGamma

2015-01-06 Thread Alan Coopersmith
Regression introduced in libXxf86vm 1.1.3 / commit 284a88e21fc05a63466 Unlikely to be hit in practice since it requires out-of-range privsize or malloc failure while talking to a server using the XFree86 3.x version of the protocol. Found by Oracle Parfait 1.5.1: Error: Uninitialised memory (CWE

[PATCH] xwininfo: do not segfault on IO error

2015-01-06 Thread Olivier Fourdan
If the connection to the X server is lost while waiting for the user to select a window interactively, xwininfo segfaults. This is a regression introduced with the port to XCB, because xcb_wait_for_event() can return NULL in case of an IO error and xwininfo does not check for the actual returned

[PATCH] Synchronize capslock in Xnest and Xephyr

2015-01-06 Thread Olivier Fourdan
In Xnest or Xephyr, pressing CapsLock when focus is on another window does not update the state in the nested X server. This is because when synchronizing the lock modifier, sending a keypress or a key release only is not sufficient to toggle the state, unlike regular modifiers, one has to

Re: [PATCH] xwininfo: do not segfault on IO error

2015-01-06 Thread Adam Jackson
On Tue, 2015-01-06 at 11:57 +0100, Olivier Fourdan wrote: If the connection to the X server is lost while waiting for the user to select a window interactively, xwininfo segfaults. This is a regression introduced with the port to XCB, because xcb_wait_for_event() can return NULL in case of

Re: [PATCH:intel-gpu-tools 1/7] Fix #ifdef check for _SC_AVPHYS_PAGES in intel_get_avail_ram_mb()

2015-01-06 Thread Daniel Vetter
On Tue, Dec 23, 2014 at 07:07:08PM -0800, Alan Coopersmith wrote: Check for the sysconf value used here, not the one used in the previous function. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com Thanks for the patches, all merged. Aside: Do you really run all the testcases on

Re: [Intel-gfx] [PATCH:intel-gpu-tools 1/7] Fix #ifdef check for _SC_AVPHYS_PAGES in intel_get_avail_ram_mb()

2015-01-06 Thread randyf
On Mon, 5 Jan 2015, Alan Coopersmith wrote: On 01/ 5/15 08:11 AM, Daniel Vetter wrote: On Tue, Dec 23, 2014 at 07:07:08PM -0800, Alan Coopersmith wrote: Check for the sysconf value used here, not the one used in the previous function. Signed-off-by: Alan Coopersmith

[PATCH] backtrace.c: Fix word cast to a pointer

2015-01-06 Thread Vicente Olivert Riera
backtrace.c uses a word size provided by libunwind. In some architectures like MIPS, libunwind makes that word size 64-bit for all variants of the architecture. In the lines #90 and #98, backtrace.c tries to do a cast to a pointer, which fails in all MIPS variants with 32-bit pointers, like

[PULL] subwindow event fixes, capslock in Xephyr/Xnest

2015-01-06 Thread Peter Hutterer
The following changes since commit b058dec281568d6a9c5b5e230c20eed096cbdc6d: mi: fix accidental x/y coordinate swap (2015-01-05 14:26:45 -0800) are available in the git repository at: git://people.freedesktop.org/~whot/xserver for-keith for you to fetch changes up to

Re: [PATCHv2] dri2: Set vdpau driver name if ddx does not provide any driver name

2015-01-06 Thread Alan Coopersmith
On 01/ 3/15 12:12 PM, Adel Gadllah wrote: Currently when the ddx does not set any driver name we set DRI2 driver but not the VDPAU driver name. The result is that VDPAU drivers will not get found by libvdpau when the modesetting driver is being used. Just assume that the VDPAU driver matches

[PATCH] randr: attempt to fix primary on slave output (v2)

2015-01-06 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com If the user wants to set one of the slave devices as the primary output, we shouldn't fail to do so, we were returning BadMatch which was tripping up gnome-settings-daemon and bad things ensues. Fix all the places we use primaryOutput to work out primaryCrtc

Re: [PATCH] hw: Fix visual colormap_size mixup causing missing visuals.

2015-01-06 Thread Alex Orange
Bumping this. Hopefully the holiday rush has slimmed a bit by now. Alex On Sun, Nov 30, 2014 at 2:38 PM, Alex Orange crazyca...@gmail.com wrote: Please ignore the first patch, got old comment lines left in by accident. Probably forgot to git add. Alex On Sun, Nov 30, 2014 at 2:37 PM, Alex

Re: [PATCHv2] dri2: Set vdpau driver name if ddx does not provide any driver name

2015-01-06 Thread Alex Deucher
On Sat, Jan 3, 2015 at 3:12 PM, Adel Gadllah adel.gadl...@gmail.com wrote: Currently when the ddx does not set any driver name we set DRI2 driver but not the VDPAU driver name. The result is that VDPAU drivers will not get found by libvdpau when the modesetting driver is being used. Just